{"at":"2026-11-23T04:38:23.206Z","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-23T04:38:24.106Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T04:38:24.256Z","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-23T04:38:25.119Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"API contract testing for OpenAPI 3.x, Swagger 2.0, GraphQL (SDL or introspection JSON), gRPC/protobuf (.proto), AsyncAPI 2.x/3.x and SOAP/WSDL 1.1; the format is detected automatically. Specs are project paths or git refs like origin/main:openapi.yaml. Operations are named 'GET /orders/{id}', 'QUERY order', 'RPC pkg.Service/Method', 'EMITS order.created' / 'RECEIVES order.cancel', or 'SOAP Port/Operation'. Use diff_contracts / assess_impact before merging a change, check_deployed_contract to compare a running service with the spec, check_live_conformance for HTTP responses, and generate_api_tests for REST tests. Results are deterministic. Put tokens in headers as ${ENV:NAME}, never literally.","protocolVersion":"2025-11-25","serverInfo":{"name":"k11-api-contract-qa","version":"0.1.0"}}}}
{"at":"2026-11-23T04:38:25.119Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T04:38:25.119Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T04:38:25.121Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"List the operations in a contract (OpenAPI, Swagger, GraphQL, .proto, AsyncAPI or WSDL; a project path or\n<git-ref>:<path>). Also tells you the detected format.","inputSchema":{"properties":{"spec":{"title":"Spec","type":"string"}},"required":["spec"],"title":"list_operationsArguments","type":"object"},"name":"list_operations","title":"List operations"},{"description":"Compare two versions of a contract (any supported format) and classify every change as breaking or\ncompatible, with the rule, field path, before/after and severity.\nExample: base_spec='origin/main:openapi.yaml', head_spec='openapi.yaml'.","inputSchema":{"properties":{"base_spec":{"title":"Base Spec","type":"string"},"breaking_only":{"default":false,"title":"Breaking Only","type":"boolean"},"head_spec":{"title":"Head Spec","type":"string"}},"required":["base_spec","head_spec"],"title":"diff_contractsArguments","type":"object"},"name":"diff_contracts","title":"Diff contracts"},{"description":"Which known consumers a spec change breaks, and why (field-level when consumers list the fields they\nread/send). Verdict: breaking | breaking_no_known_consumers | compatible; needs_human when 2+ consumers or a\nhigh-criticality consumer break. Consumers come from .qa-mcp/consumers.yaml.","inputSchema":{"properties":{"base_spec":{"title":"Base Spec","type":"string"},"consumers_file":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Consumers File"},"head_spec":{"title":"Head Spec","type":"string"},"write_report":{"default":false,"title":"Write Report","type":"boolean"}},"required":["base_spec","head_spec"],"title":"assess_impactArguments","type":"object"},"name":"assess_impact","title":"Assess impact on consumers"},{"description":"Scan a consumer service's source code (inside the project) for calls to the provider, with file and line\nas evidence, and draft its consumers.yaml entry. HTTP paths, GraphQL query documents (exact fields read),\ngRPC stub calls, SOAP client calls, and AsyncAPI topic names.","inputSchema":{"properties":{"consumer_dir":{"title":"Consumer Dir","type":"string"},"consumer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Consumer Name"},"spec":{"title":"Spec","type":"string"}},"required":["consumer_dir","spec"],"title":"discover_consumer_usageArguments","type":"object"},"name":"discover_consumer_usage","title":"Discover consumer usage"},{"description":"Call a running endpoint (e.g. endpoint='GET /orders/{id}', path_params={'id': '1001'}) and check status,\ncontent type and the JSON body against the spec's response schema. Header values may use ${ENV:NAME}.","inputSchema":{"properties":{"base_url":{"title":"Base Url","type":"string"},"body":{"anyOf":[{},{"type":"null"}],"default":null,"title":"Body"},"endpoint":{"title":"Endpoint","type":"string"},"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Headers"},"path_params":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Path Params"},"query":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Query"},"spec":{"title":"Spec","type":"string"}},"required":["spec","base_url","endpoint"],"title":"check_live_conformanceArguments","type":"object"},"name":"check_live_conformance","title":"Check live conformance"},{"description":"Compare what a running service publishes with the spec file: GraphQL introspection (url = the GraphQL\nendpoint), a WSDL URL (e.g. http://host/orders?wsdl), or a published OpenAPI/Swagger/AsyncAPI document\n(e.g. http://host/v3/api-docs). Verdict: matches | drift | incompatible. gRPC is not supported (needs\nreflection). Header values may use ${ENV:NAME}.","inputSchema":{"properties":{"headers":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Headers"},"spec":{"title":"Spec","type":"string"},"url":{"title":"Url","type":"string"}},"required":["spec","url"],"title":"check_deployed_contractArguments","type":"object"},"name":"check_deployed_contract","title":"Check deployed contract"},{"description":"Generate contract tests (status + JSON schema) for some or all endpoints: pytest + httpx, or Java REST\nAssured (JUnit 5). Returns the files; write them with write_test.","inputSchema":{"properties":{"endpoints":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"default":null,"title":"Endpoints"},"framework":{"default":"pytest","enum":["pytest","rest-assured"],"title":"Framework","type":"string"},"java_package":{"default":"contract","title":"Java Package","type":"string"},"spec":{"title":"Spec","type":"string"}},"required":["spec"],"title":"generate_api_testsArguments","type":"object"},"name":"generate_api_tests","title":"Generate API tests"},{"description":"Write a generated file under tests/ or src/test/ only. Won't overwrite unless asked.","inputSchema":{"properties":{"content":{"title":"Content","type":"string"},"overwrite":{"default":false,"title":"Overwrite","type":"boolean"},"path":{"title":"Path","type":"string"}},"required":["path","content"],"title":"write_testArguments","type":"object"},"name":"write_test","title":"Write test file"}]}}}
