{"at":"2026-11-23T01:38:09.744Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T01:38:10.167Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T01:38:10.268Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T01:38:10.676Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{}},"protocolVersion":"2025-11-25","serverInfo":{"name":"emfirge","version":"0.2.1"}}}}
{"at":"2026-11-23T01:38:10.676Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T01:38:10.676Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T01:38:10.679Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Returns the AWS CloudFormation deploy URL for setting up the read-only IAM role. Call this when the user does not have a role ARN yet, or if emfirge_scan returns 403. CRITICAL: After calling this tool, paste the deploy URL verbatim in your reply to the user. Many MCP clients (Claude Code, Codex CLI, Kiro CLI) hide tool output by default, so saying 'click the link above' will leave the user with nothing to click.","inputSchema":{"properties":{},"type":"object"},"name":"emfirge_setup_help"},{"description":"Scan an AWS account for security risks. Returns risk score (0-100), finding counts, and an analysis_id for the other tools. Resource IDs are tokenized by default.","inputSchema":{"properties":{"region":{"description":"AWS region to scan (e.g., us-east-1, ap-south-1, eu-west-1, eu-central-1, ap-southeast-2). REQUIRED — there is no default. Most AWS resources are region-specific, so scanning the wrong region returns 0 findings even on a busy account and makes the user think they're clean when they aren't. If the user gave a role ARN but no region, ASK them which region to scan before calling this tool. Do not guess.","type":"string"},"role_arn":{"description":"AWS IAM role ARN to assume. Must trust Emfirge's account with ExternalId 'aws-risk-agent'. If the user doesn't have one, call emfirge_setup_help first.","type":"string"}},"required":["role_arn","region"],"type":"object"},"name":"emfirge_scan"},{"description":"Get the full findings list for a previous scan, optionally filtered by severity (Critical/Moderate/Low). Each finding has rule_id, issue, recommendation, attack_path, blast_radius, MITRE mapping.","inputSchema":{"properties":{"analysis_id":{"description":"Analysis ID returned by emfirge_scan","type":"string"},"severity":{"description":"Filter findings by severity. Omit to get all.","enum":["Critical","Moderate","Low"],"type":"string"}},"required":["analysis_id"],"type":"object"},"name":"emfirge_get_findings"},{"description":"Get attack paths from the internet to internal resources. Shows pivot routes from public-facing resources to crown jewels. Also returns chokepoint and orphaned resources.","inputSchema":{"properties":{"analysis_id":{"description":"Analysis ID returned by emfirge_scan","type":"string"}},"required":["analysis_id"],"type":"object"},"name":"emfirge_attack_paths"},{"description":"Simulate fixing a finding without applying changes. Clones the infra, applies the rule's mutation, rebuilds the graph, re-runs all rules, returns score delta + which other findings get resolved.","inputSchema":{"properties":{"analysis_id":{"description":"Analysis ID returned by emfirge_scan","type":"string"},"resource_id":{"description":"AWS resource ID (sg-..., i-..., arn:...) OR a token from a previous response (SG_001). Tokens are auto-expanded.","type":"string"},"rule_id":{"description":"Rule ID like EMFIRGE-EC2-002 (or short form EC2-002)","type":"string"}},"required":["rule_id","resource_id","analysis_id"],"type":"object"},"name":"emfirge_verify_fix"},{"description":"Get CIS AWS Foundations 1.5 or SOC 2 compliance status. Returns per-control pass/fail with the findings that triggered each failure.","inputSchema":{"properties":{"analysis_id":{"description":"Analysis ID returned by emfirge_scan","type":"string"},"framework":{"description":"Framework to filter by. Omit to get all.","enum":["cis-aws-1.5","soc2"],"type":"string"}},"required":["analysis_id"],"type":"object"},"name":"emfirge_check_compliance"},{"description":"Walk a full kill chain end-to-end against the infrastructure graph. Given a natural-language scenario or 'what if' query, returns verdict + severity + every stage of the attack (entry → pivot → impact) + blast radius + follow-up moves. Read-only — no AWS changes.","inputSchema":{"properties":{"analysis_id":{"description":"Analysis ID returned by emfirge_scan","type":"string"},"query":{"description":"Natural-language query about the infra. Examples: 'what gets exposed if SG_001 opens port 80', 'show the worst attack path'. Tokens like SG_001 are auto-expanded.","type":"string"}},"required":["query","analysis_id"],"type":"object"},"name":"emfirge_simulate_breach"}]}}}
