DonArtkins

mcp-contract-testing

"Contract tests for the Griot MCP server: assert each tool's JSON schema and behavior with a mocked GraphQL client; MCP Inspector smoke run."

DonArtkins 0 Updated 4d ago
GitHub

Install

npx skillscat add donartkins/griot/mcp-contract-testing

Install via the SkillsCat registry.

SKILL.md

MCP Contract Testing Skill

Approach

  • Each tool = pure function (graphqlClient, input) -> output; unit-test the JSON contract with a mocked client.
  • Assert input/output schemas (zod) match the root integration-contracts.md tool table.

Runs

cd mcp && npm test
npx @modelcontextprotocol/inspector node src/server.ts   # manual smoke

Rules

  • No network LLM in tests; service token mocked.
  • Keep contract tests green in CI (test-mcp job).

Categories