Thank you for your interest in contributing to the Model Context Protocol specification! This document outlines how to contribute to this project.
The following software is required to work on the spec:
- Node.js 20 or above
- TypeScript
- TypeScript JSON Schema (for generating JSON schema)
- Hugo (optional, for docs)
- Go (optional, for docs)
- nvm (optional, for managing Node versions)
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR-USERNAME/specification.git
cd specification
- Install dependencies:
nvm install # install correct Node version
npm install # install dependencies
Note that schema changes are made to schema.ts
. schema.json
is generated from schema.ts
using npm run validate:schema
.
- Create a new branch:
git checkout -b feature/your-feature-name
- Make your changes
- Validate your changes:
npm run validate:schema # validate schema
npm run generate:json # generate JSON schema
- Run docs locally (optional):
npm run serve:docs
- Push your changes to your fork
- Submit a pull request to the main repository
- Follow the pull request template
- Wait for review
This project follows a Code of Conduct. Please review it in CODE_OF_CONDUCT.md.
If you have questions, please create an issue in the repository.
By contributing, you agree that your contributions will be licensed under the MIT License.
Please review our Security Policy for reporting security issues.