Skip to content

RFC-090: official stdio MCP server - #182

Merged
nightmoose merged 1 commit into
mainfrom
nightly-maintenance-2026-08-23-rfc090
Aug 23, 2026
Merged

RFC-090: official stdio MCP server#182
nightmoose merged 1 commit into
mainfrom
nightly-maintenance-2026-08-23-rfc090

Conversation

@nightmoose

Copy link
Copy Markdown
Owner

Summary

  • Official MCP server at mcp/ (@contractgate/mcp-server): stdio, TypeScript, thin HTTP client of the existing gateway. No validation-engine changes.
  • Tools: infer_contract, validate_events (dry-run default true), deploy_contract, get_quarantine, list_contracts. Prompt: integrate-contractgate.
  • Auth is CONTRACTGATE_API_KEY / optional CONTRACTGATE_BASE_URL (same as CLI + playbook).
  • Docs: docs/mcp-reference.md served raw at /mcp-reference.md; linked from llms.txt, playbook §0, README snippet, docs card, agent-rule presets. Drift gate covers cited routes.
  • CI job: mcp typecheck + unit tests + tsc.

Stacked on #181 (llm-surface). Merge that first, then this.

Until @contractgate/mcp-server is on npm, hosts should run from a clone: cd mcp && npm install && npm run build, then node <repo>/mcp/dist/index.js.

Test plan

  • cd mcp && npm test (12/12)
  • cargo test --test llm_docs_test
  • CI green on this PR
  • Host smoke: Cursor/Claude Desktop with local node mcp/dist/index.js + CONTRACTGATE_API_KEY

Thin TypeScript MCP package wrapping existing gateway routes: infer,
dry-run validate, deploy, quarantine, list. No validation-engine changes.

Stdio only. Auth via CONTRACTGATE_API_KEY. Docs at docs/mcp-reference.md,
served raw at /mcp-reference.md. Drift gate covers cited routes.
@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
contractgate Ready Ready Preview Aug 23, 2026 10:27pm

Request Review

@nightmoose
nightmoose changed the base branch from nightly-maintenance-2026-08-23-llm-surface to main August 23, 2026 22:35
@nightmoose
nightmoose merged commit 1913e23 into main Aug 23, 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