Mcp Streaming Msk Bedrock — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mcp Streaming Msk Bedrock (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A working demo of Streaming MCP (Model Context Protocol) on AWS — pushing real-time context to a Bedrock-powered AI agent using Amazon MSK, WebSockets, and IAM authorization.
Based on mcp-streaming-demo, adapted to use managed AWS services.
log_simulator.py → Amazon MSK (app-logs) → streaming_mcp_server.py → bedrock_agent.py
↕ WebSocket ↕
subscribe / get_anomalies Bedrock Claude
(invoke_model)
Lambda (Action Group) ← Bedrock Agent (managed) → MSK| File | Description |
|---|---|
src/streaming_mcp_server.py | Core server — MSK consumer (IAM auth) + WebSocket push |
src/bedrock_agent.py | AI agent — subscribes to stream, invokes Bedrock for analysis |
src/log_simulator.py | Produces realistic log events to MSK |
src/mock_kafka.py | Patches for local dev without IAM auth |
lambda/handler.py | Bedrock Agent Action Group Lambda |
lambda/api_schema.json | OpenAPI schema for action group |
infra/template.yaml | CloudFormation — MSK Serverless + Bedrock Agent + Lambda |
docker-compose.yml | Local Kafka for development |
# 1. Start local Kafka
docker compose up -d
# 2. Install dependencies
pip install -r requirements.txt
# 3. Start server (local mode)
MSK_BOOTSTRAP=localhost:9092 python src/streaming_mcp_server.py
# 4. Start log simulator (separate terminal)
MSK_BOOTSTRAP=localhost:9092 python src/log_simulator.py
# 5. Start Bedrock agent (separate terminal)
python src/bedrock_agent.py# 1. Deploy infrastructure
aws cloudformation deploy \
--template-file infra/template.yaml \
--stack-name mcp-streaming-demo \
--parameter-overrides VpcId=vpc-xxx SubnetIds=subnet-aaa,subnet-bbb \
--capabilities CAPABILITY_NAMED_IAM
# 2. Get MSK bootstrap servers
aws kafka get-bootstrap-brokers --cluster-arn <ClusterArn from outputs>
# 3. Store bootstrap in SSM (used by Lambda)
aws ssm put-parameter --name /mcp-demo/msk-bootstrap --value "<bootstrap-servers>" --type String
# 4. Run server and simulator with MSK endpoint
export MSK_BOOTSTRAP="<bootstrap-servers>"
python src/streaming_mcp_server.py
python src/log_simulator.py
python src/bedrock_agent.py| Original | This Version |
|---|---|
| Local Kafka (Docker) | Amazon MSK Serverless |
| Custom Python agent | Bedrock Agent + direct invoke_model client |
| No auth | IAM OAUTHBEARER (MSK) + IAM roles (Bedrock) |
| Manual remediation mapping | Claude-powered root cause analysis |
| docker-compose only | CloudFormation IaC |
# Local
docker compose down -v
# AWS
aws cloudformation delete-stack --stack-name mcp-streaming-demo~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.