This repository contains the MCP specification, documentation, and blog.
docs/- Mintlify site (npm run serve:docs)docs/docs/- guides and tutorialsdocs/specification/- MCP specification (more formal, versioned)
blog/- Hugo blog (npm run serve:blog)
Specifications use date-based versioning (YYYY-MM-DD), not semantic versioning:
schema/[YYYY-MM-DD]/anddocs/specification/[YYYY-MM-DD]/- released versionsschema/draft/anddocs/specification/draft/- in-progress work
TypeScript files are the source of truth for the protocol schema:
- Edit:
schema/[version]/schema.ts - Generate JSON + docs:
npm run generate:schema - This creates both
schema/[version]/schema.jsonand the Schema Reference document indocs/specification/[version]/schema.mdx
Always regenerate after editing schema files.
JSON examples live in schema/[version]/examples/[TypeName]/:
- Directory name = schema type (e.g.,
Tool/,Resource/) - Files validate against their directory's type:
Tool/example-name.json→ Tool schema - Referenced in
schema.tsvia@includeCodeJSDoc tags
npm run serve:docs # Local Mintlify docs server
npm run serve:blog # Local Hugo blog server
npm run generate:schema # Generate JSON schemas + MDX from TypeScript
npm run check:docs # Check formatting and links
npm run check # Run all checks