Skip to content

Commit b793f29

Browse files
committed
merge upstream/main, make lastModified a Unix epoch timestamp
2 parents e0458d7 + 42273f1 commit b793f29

File tree

166 files changed

+31816
-1943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+31816
-1943
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
package-lock.json linguist-generated=true
2+
schema/*/schema.json linguist-generated=true

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: actions/setup-node@v2
14+
- uses: actions/setup-node@v4
1515
with:
1616
node-version: 20
1717
cache: npm

.github/workflows/markdown-format.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,25 @@ on:
44
push:
55
paths:
66
- '**/*.md'
7+
- '**/*.mdx'
78
pull_request:
89
paths:
910
- '**/*.md'
11+
- '**/*.mdx'
1012

1113
jobs:
1214
format:
1315
runs-on: ubuntu-latest
1416
steps:
1517
- uses: actions/checkout@v4
16-
18+
1719
- name: Setup Node.js
1820
uses: actions/setup-node@v4
1921
with:
2022
node-version: '20'
21-
23+
2224
- name: Install dependencies
2325
run: npm ci
24-
26+
2527
- name: Check markdown formatting
26-
run: npm run format:check
28+
run: npm run format:check

.github/workflows/site.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

CONTRIBUTING.md

Lines changed: 54 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ The following software is required to work on the spec:
1010
- Node.js 20 or above
1111
- TypeScript
1212
- TypeScript JSON Schema (for generating JSON schema)
13-
- [Hugo](https://gohugo.io/) (optional, for docs)
14-
- Go (optional, for docs)
13+
- [Mintlify](https://mintlify.com/) (optional, for docs)
1514
- nvm (optional, for managing Node versions)
1615

1716
## Getting Started
@@ -20,8 +19,8 @@ The following software is required to work on the spec:
2019
2. Clone your fork:
2120

2221
```bash
23-
git clone https://github.com/YOUR-USERNAME/specification.git
24-
cd specification
22+
git clone https://github.com/YOUR-USERNAME/modelcontextprotocol.git
23+
cd modelcontextprotocol
2524
```
2625

2726
3. Install dependencies:
@@ -33,8 +32,9 @@ npm install # install dependencies
3332

3433
## Making Changes
3534

36-
Note that schema changes are made to `schema.ts`. `schema.json` is generated from
37-
`schema.ts` using `npm run validate:schema`.
35+
Note that schema changes are made to `schema.ts`, and `schema.json` is generated from
36+
`schema.ts`. You should validate your `schema.ts` changes first and then generate the
37+
`schema.json`.
3838

3939
1. Create a new branch:
4040

@@ -47,15 +47,61 @@ git checkout -b feature/your-feature-name
4747

4848
```bash
4949
npm run validate:schema # validate schema
50-
npm run generate:json # generate JSON schema
5150
```
5251

53-
4. Run docs locally (optional):
52+
4. Generate the `schema.json`:
53+
54+
```bash
55+
npm run generate:json # generate JSON schema
56+
```
57+
58+
5. Run docs locally (optional):
5459

5560
```bash
5661
npm run serve:docs
5762
```
5863

64+
6. Format/lint your changes:
65+
66+
```bash
67+
npm run format:check # check formatting
68+
npm run format # apply formatting
69+
```
70+
71+
### Documentation Guidelines
72+
73+
When contributing to the documentation:
74+
75+
- Keep content clear, concise, and technically accurate
76+
- Follow the existing file structure and naming conventions
77+
- Include code examples where appropriate
78+
- Use proper MDX formatting and components
79+
- Test all links and code samples
80+
- You may run `npm run check-links` to look for broken internal links.
81+
- Use appropriate headings: "When to use", "Steps", and "Tips" for tutorials
82+
- Place new pages in appropriate sections (concepts, tutorials, etc.)
83+
- Update `docs.json` when adding new pages
84+
- Follow existing file naming conventions (`kebab-case.mdx`)
85+
- Include proper frontmatter in MDX files
86+
87+
### Specification Proposal Guidelines
88+
89+
#### Principles of MCP
90+
91+
1. **Simple + Minimal**: It is much easier to add things to a specification than it is to
92+
remove them. To maintain simplicity, we keep a high bar for adding new concepts and
93+
primitives as each addition requires maintenance and compatibility consideration.
94+
2. **Concrete**: Specification changes need to be based on specific implementation
95+
challenges and not on speculative ideas.
96+
97+
### Stages of a specification proposal
98+
99+
1. **Define**: Explore the problem space, validate that other MCP users face a similar
100+
issue, and then clearly define the problem.
101+
2. **Prototype**: Build an example solution to the problem and demonstrate its practical
102+
application.
103+
3. **Write**: Based on the prototype, write a specification proposal.
104+
59105
## Submitting Changes
60106

61107
1. Push your changes to your fork

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Anthropic, PBC
3+
Copyright (c) 2024–2025 Anthropic, PBC and contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
This repo contains the specification and protocol schema for the Model Context Protocol.
44

5-
The schema is [defined in TypeScript](schema/2024-11-05/schema.ts) first, but
6-
[made available as JSON Schema](schema/2024-11-05/schema.json) as well, for wider
5+
The schema is [defined in TypeScript](schema/2025-03-26/schema.ts) first, but
6+
[made available as JSON Schema](schema/2025-03-26/schema.json) as well, for wider
77
compatibility.
88

9+
The official MCP documentation is built using Mintlify and available at
10+
[modelcontextprotocol.io](https://modelcontextprotocol.io).
11+
912
## Contributing
1013

1114
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this

0 commit comments

Comments
 (0)