"Contract tests for the Griot MCP server: assert each tool's JSON schema and behavior with a mocked GraphQL client; MCP Inspector smoke run."
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.mdtool table.
Runs
cd mcp && npm test
npx @modelcontextprotocol/inspector node src/server.ts # manual smokeRules
- No network LLM in tests; service token mocked.
- Keep contract tests green in CI (
test-mcpjob).