Skip to content

Adopt mcpcontracts.json and the v0.7.0 CLI commands - #5

Merged
lukekania merged 4 commits into
mainfrom
feat/project-config
Jul 13, 2026
Merged

Adopt mcpcontracts.json and the v0.7.0 CLI commands#5
lukekania merged 4 commits into
mainfrom
feat/project-config

Conversation

@lukekania

Copy link
Copy Markdown
Member

Summary

Companion to mcp-contracts/mcp-contracts#65 (v0.7.0 — Developer Experience):

  • Adds mcpcontracts.json pointing at the contacts server from mcp.json and the committed baseline, so the mcpdiff commands run with zero flags.
  • README documents the new flow (mcpdiff check, check --watch, update; check --url for the HTTP variant) instead of the deprecated baseline verify / ci / watch / diff --live spellings.
  • Fixes a pre-existing bug in server.js's HTTP mode: a single stateless StreamableHTTPServerTransport was shared across requests, so any client after the first exchange got a 500. Each request now gets its own server + transport pair (the documented stateless pattern). Tool definitions are byte-identical — the contract hash is unchanged and mcpdiff check still passes against the committed baseline.

Verification

  • Own test suite: 4/4 passing
  • Zero-flag check / update / check --watch / test (57/57) against the live server, including from subdirectories
  • HTTP mode now serves repeated clients (check --url twice + snapshot --url)

⚠️ Merge after @mcp-contracts/* 0.7.0 is published to npm — the README's npx mcpdiff check/update/init commands resolve to the published CLI, which doesn't have the new verbs until then.

@github-actions

Copy link
Copy Markdown

MCP Contract Diff

contacts-server 2.0.02.0.0

No changes detected. ✅

@lukekania
lukekania merged commit 089d38c into main Jul 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant