Listed from the MCP registry; nobody on Odel publishes it.
Which services an API change breaks and why: OpenAPI, GraphQL, gRPC, AsyncAPI, SOAP.
Runs on your machine from its package; the steps are below.
At most: creates or changes data: records, files, settings.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx k11-api-contract-qa-mcp
MCP client config
{
"mcpServers": {
"k11-api-contract-qa": {
"command": "uvx",
"args": [
"k11-api-contract-qa-mcp"
]
}
}
}Know which services an API change breaks before you merge it, and why. REST, GraphQL, gRPC, events and SOAP.
A pull request renames a field or tightens a request body. Its own tests pass. Three other services break in production. Spec-diff tools can tell you a change is "breaking", but not who it breaks, so teams either ignore the warnings or block every change. This MCP server answers the real question:
$refs, nested fields and array items, with the rule each change broke.?wsdl, /v3/api-docs) with your spec file.contract-ci: a pull-request comment that lists every affected consumer and the reason.Deterministic rules, no LLM calls, the same result every run. Works with Claude Code (as a plugin with /check-api-change and /api-contract-tests), Claude Desktop and any MCP client. Listed in the official MCP Registry as io.github.K11-Software-Solutions/api-contract-qa.
In the demo, Order Service v2 changes total from a number to a string, drops customer.email, adds a required channel to POST /orders and removes DELETE /orders/{id}. Four services consume it. contract-ci posted:
API contract check: 🔴 Breaking for known consumers
Order Service:
main→ this PR. 11 changes, 6 breaking (worst: critical); 4 known consumers, 3 affected.Needs a person before merge: 3 consumers break (threshold 2); high-criticality consumers break: notification-svc, billing-svc, checkout-web.
Consumer Owner Criticality Breaking change Why it affects them billing-svc @team-billing critical GET /orders/{id}: Response field 'total' changed type from number to stringreads 'total' checkout-web @team-web high POST /orders: New required request field 'channel'doesn't send the now-required 'channel' notification-svc @team-notify high GET /orders/{id}: Response field 'customer.email' was removedreads 'customer.email' Breaking, no known consumer:
DELETE /orders/{orderId}was removed, plus two response changes onPOST /ordersthat checkout-web doesn't read.
analytics-svc calls GET /orders too, but it reads only id and status, so it isn't flagged.
The format is detected automatically from the file. Every format goes through the same rules, consumer impact, report and contract-ci, plus rules specific to it.
| Format | Operations are named | Format-specific rules | Deployed drift check |
|---|---|---|---|
| OpenAPI 3.x | GET /orders/{id} | parameters, request bodies, success responses, auth | GET the published document |
| Swagger 2.0 | GET /api/orders/{id} | converted to OpenAPI 3 on load (body/formData, definitions, basePath) | GET the published document |
| GraphQL (SDL or introspection JSON) | QUERY order, MUTATION createOrder | removing any argument breaks (unknown arguments are errors); non-null → nullable breaks readers | introspection query |
gRPC / protobuf (.proto, imports followed) | RPC shop.v1.OrderService/GetOrder | field number changed or reused, field renamed (wire-safe but breaks JSON and generated code), removed numbers not reserved, streaming changed, message replaced | not yet (needs server reflection) |
| AsyncAPI 2.x / 3.x | EMITS order.created, RECEIVES order.cancel | emitted messages follow reader rules; received messages follow writer rules | GET the published document |
| SOAP / WSDL 1.1 | SOAP OrderPort/GetOrder | XSD minOccurs/maxOccurs/nillable, enumerations, extension; SOAPAction and binding style; strict about unknown elements | GET ...?wsdl |
Consumer discovery finds HTTP paths, GraphQL query documents (exact fields read), gRPC stub calls, SOAP client calls (zeep, JAX-WS, .NET) and AsyncAPI topic names. Live response checks and test generation are for REST (OpenAPI and Swagger).
| Tool | What it does |
|---|---|
list_operations | Lists a contract's operations and its detected format. |
diff_contracts | Classifies every change between two versions of a contract: rule, field path, before/after, severity. |
assess_impact | Which consumers a change breaks and why; the verdict and whether a person should decide. Optionally writes the report. |
discover_consumer_usage | Finds a consumer's calls to your API in its source code and drafts its consumers.yaml entry. |
check_deployed_contract | Compares what a running service publishes with the spec: matches, drift or incompatible. |
check_live_conformance | Calls a running REST endpoint and checks the response against the spec. Header values can use ${ENV:NAME}. |
generate_api_tests | REST contract tests (status + JSON schema) for pytest + httpx or REST Assured. |
write_test | Writes generated files under tests/ or src/test/ only, never overwriting unless asked. |
Specs are files in the project or git refs: origin/main:openapi.yaml, origin/main:proto/orders.proto (imports are read from the same ref).
All K11 QA tools keep their settings, baselines and reports in
.qa-mcp/. What each file is for, and what to commit.
.qa-mcp/consumers.yaml:
consumers:
- name: billing-svc
repo: acme/billing-svc
owner: "@team-billing"
criticality: critical # critical | high | medium | low
uses:
- endpoint: GET /orders/{id}
reads: [id, total, currency] # leave out to mean "any field"
- name: checkout-web
owner: "@team-web"
criticality: high
uses:
- endpoint: POST /orders
sends: [customerId, items]
reads: [id]
Endpoints use the operation names from the table above (QUERY order, RPC shop.v1.OrderService/GetOrder, EMITS order.created, …). Field lists are what make the verdict precise. Without them, any breaking change on an endpoint counts against everyone who calls it. Start with discover_consumer_usage on each consumer's code, then add the fields.
k11-api-contract-qa-mcp contract-ci --spec openapi.yaml --base origin/main
It compares the spec in the pull request with origin/main, writes contract-report.md (the PR comment) and contract-report.json, sets GitHub Actions outputs (verdict, breaking, consumers_affected, needs_human, report) and exits non-zero according to --fail-on:
--fail-on | Fails when |
|---|---|
breaking (default) | a known consumer breaks |
needs-human | 2+ consumers or a critical/high one break |
any-breaking | any breaking change, used or not |
never | report only |
Copy docs/contract-check.yml to .github/workflows/ to comment on every pull request that touches the spec.
Requires Python 3.10+.
Needs uv:
/plugin marketplace add K11-Software-Solutions/k11techlab-api-contract-qa-mcp
/plugin install api-contract-qa@k11-api-contract-qa
claude mcp add api-contract-qa -- uvx k11-api-contract-qa-mcp
{
"mcpServers": {
"api-contract-qa": {
"command": "uvx",
"args": ["k11-api-contract-qa-mcp"],
"env": { "QA_MCP_ROOT": "/path/to/your/service" }
}
}
}
Or pip install k11-api-contract-qa-mcp.
cd demo/order-service
k11-api-contract-qa-mcp contract-ci --spec openapi.yaml --base-spec openapi.v1.yaml
python server.py --port 8080 # v2 implementation with one deliberate contract bug
Then ask Claude to check_live_conformance on GET /orders/{id} with id 1001. It finds that total is still sent as a number.
demo/formats/ has a v1 and v2 contract for each other format (Swagger 2.0, GraphQL, protobuf with an import, AsyncAPI 2.x → 3.x, WSDL) and a small consumer for each, for example:
k11-api-contract-qa-mcp contract-ci --spec demo/formats/graphql/schema.graphql --base-spec demo/formats/graphql/schema.v1.graphql --fail-on never
These apply to every format (with each format's names for inputs and outputs):
| Rule | Breaking? |
|---|---|
| Endpoint removed | yes (critical) |
| Response field removed, type changed, became nullable, no longer guaranteed | yes |
| Success response or JSON media type removed | yes |
| New required request field / parameter, field or parameter became required | yes |
| Request enum value removed, request field newly restricted to an enum | yes |
| New authentication requirement | yes (critical) |
| Required request field removed (any removed input for GraphQL and SOAP) | yes |
| New endpoint, optional field or parameter; response enum value added | no (enum additions flagged for exhaustive switches) |
| Path parameter renamed, endpoint deprecated | no |
| protobuf: field number changed, message replaced, streaming changed | yes |
| protobuf: field renamed with the same number | yes (medium: wire-safe, breaks JSON and generated code) |
The rules extend the K11 research on cross-repository contract testing and change impact analysis (IJECS, 2026), whose reference system is k11techlab-microservice-qa-system. This server adds $ref, nested and array-item rules, field-level consumer matching and five more contract formats.
Attribution and licensing. k11 API Contract QA is a new, independent implementation. It reuses the design of the reference system (its breaking-change taxonomy, severity levels and the rule that two or more broken consumers need a person's decision), not its code, and it has no dependency on that repository. The reference system is Apache-2.0 licensed; this project is MIT licensed. Both are by Kavita Jadhav / K11 Software Solutions LLC.
| Spec diff tools (e.g. oasdiff) | Consumer-driven contracts (e.g. Pact) | k11 API Contract QA | |
|---|---|---|---|
| Knows who breaks | No | Yes | Yes, field-level |
| Setup per consumer | None | Contract tests in every consumer | One YAML entry; discovery drafts it |
| Explains why | Rule only | Failing interaction | Rule, field, and what the consumer reads or sends |
| Formats | Usually one | HTTP and messages | OpenAPI, Swagger, GraphQL, gRPC, AsyncAPI, SOAP |
| Usable by an AI agent | No | No | Yes, over MCP |
git show, never a shell.write_test writes only under tests/ or src/test/, and won't overwrite without asking.${ENV:NAME}) and never echoed.python -m venv .venv && .venv/Scripts/pip install -e ".[dev]" # bin/pip on macOS/Linux
pytest # rules for all formats, consumer impact, discovery, drift, conformance, generated tests, contract-ci, MCP (38)
Built by K11 Software Solutions. Part of the K11 Tech Lab agentic QA series, alongside Playwright QA, Selenium QA and LLM Assure. MIT licensed.