Skip to content

Commit 8960f68

Browse files
committed
Merge remote-tracking branch 'upstream/main' into patch-1
2 parents 7ab2f5e + 6a4dc0f commit 8960f68

Some content is hidden

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

70 files changed

+2784
-976
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818

1919
- run: npm ci
2020

21-
- run: npm run validate:schema
21+
- name: Check TypeScript definitions
22+
run: npm run check:schema:ts
2223

23-
- run: npm run generate:json
2424
- name: Verify that `npm run generate:json` did not change outputs (if it did, please re-run it and re-commit!)
25-
run: git diff --exit-code
25+
run: npm run check:schema:json

.github/workflows/markdown-format.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,28 @@ 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 check:docs:format
29+
30+
- name: Check markdown links
31+
run: npm run check:docs:links

CONTRIBUTING.md

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,24 +32,32 @@ npm install # install dependencies
3232

3333
## Making Changes
3434

35-
Note that schema changes are made to `schema.ts`. `schema.json` is generated from
36-
`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`.
3737

3838
1. Create a new branch:
3939

4040
```bash
4141
git checkout -b feature/your-feature-name
4242
```
4343

44-
2. Make your changes
45-
3. Validate your changes:
44+
2. Make your changes.
45+
46+
3. Validate schema changes and generate `schema.json`:
47+
48+
```bash
49+
npm run check:schema:ts
50+
npm run generate:json
51+
```
52+
53+
4. Validate documentation changes and apply formatting:
4654

4755
```bash
48-
npm run validate:schema # validate schema
49-
npm run generate:json # generate JSON schema
56+
npm run check:docs
57+
npm run format
5058
```
5159

52-
4. Run docs locally (optional):
60+
5. Preview documentation locally (optional):
5361

5462
```bash
5563
npm run serve:docs
@@ -64,10 +72,11 @@ When contributing to the documentation:
6472
- Include code examples where appropriate
6573
- Use proper MDX formatting and components
6674
- Test all links and code samples
75+
- You may run `npm run check:docs:links` to look for broken internal links.
6776
- Use appropriate headings: "When to use", "Steps", and "Tips" for tutorials
6877
- Place new pages in appropriate sections (concepts, tutorials, etc.)
69-
- Update docs.json when adding new pages
70-
- Follow existing file naming conventions (kebab-case.mdx)
78+
- Update `docs.json` when adding new pages
79+
- Follow existing file naming conventions (`kebab-case.mdx`)
7180
- Include proper frontmatter in MDX files
7281

7382
### Specification Proposal Guidelines

docs/clients.mdx

Lines changed: 224 additions & 66 deletions
Large diffs are not rendered by default.

docs/development/roadmap.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ description: Our plans for evolving Model Context Protocol
77

88
The Model Context Protocol is rapidly evolving. This page outlines our current thinking on key priorities and direction for approximately **the next six months**, though these may change significantly as the project develops. To see what's changed recently, check out the **[specification changelog](/specification/2025-03-26/changelog/)**.
99

10-
<Note>The ideas presented here are not commitments—we may solve these challenges differently than described, or some may not materialize at all. This is also not an _exhaustive_ list; we may incorporate work that isn't mentioned here.</Note>
10+
<Note>
11+
12+
The ideas presented here are not commitments—we may solve these challenges differently than described, or some may not materialize at all. This is also not an _exhaustive_ list; we may incorporate work that isn't mentioned here.
13+
14+
</Note>
1115

1216
We value community participation! Each section links to relevant discussions where you can learn more and contribute your thoughts.
1317

docs/development/updates.mdx

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

docs/docs.json

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
{
5454
"group": "Development",
5555
"pages": [
56-
"development/updates",
5756
"development/roadmap",
5857
"development/contributing"
5958
]
@@ -203,7 +202,8 @@
203202
"group": "Client Features",
204203
"pages": [
205204
"specification/draft/client/roots",
206-
"specification/draft/client/sampling"
205+
"specification/draft/client/sampling",
206+
"specification/draft/client/elicitation"
207207
]
208208
},
209209
{
@@ -227,25 +227,17 @@
227227
},
228228
{
229229
"group": "Resources",
230-
"pages": [
231-
"specification/versioning",
232-
"specification/contributing"
233-
]
230+
"pages": ["specification/versioning", "specification/contributing"]
234231
}
235232
]
236233
}
237234
],
238235
"global": {
239236
"anchors": [
240237
{
241-
"anchor": "Python SDK",
242-
"href": "https://github.com/modelcontextprotocol/python-sdk",
243-
"icon": "python"
244-
},
245-
{
246-
"anchor": "TypeScript SDK",
247-
"href": "https://github.com/modelcontextprotocol/typescript-sdk",
248-
"icon": "square-js"
238+
"anchor": "C# SDK",
239+
"href": "https://github.com/modelcontextprotocol/csharp-sdk",
240+
"icon": "square-c"
249241
},
250242
{
251243
"anchor": "Java SDK",
@@ -258,14 +250,24 @@
258250
"icon": "square-k"
259251
},
260252
{
261-
"anchor": "C# SDK",
262-
"href": "https://github.com/modelcontextprotocol/csharp-sdk",
263-
"icon": "square-c"
253+
"anchor": "Python SDK",
254+
"href": "https://github.com/modelcontextprotocol/python-sdk",
255+
"icon": "python"
256+
},
257+
{
258+
"anchor": "Ruby SDK",
259+
"href": "https://github.com/modelcontextprotocol/ruby-sdk",
260+
"icon": "gem"
264261
},
265262
{
266263
"anchor": "Swift SDK",
267264
"href": "https://github.com/modelcontextprotocol/swift-sdk",
268265
"icon": "swift"
266+
},
267+
{
268+
"anchor": "TypeScript SDK",
269+
"href": "https://github.com/modelcontextprotocol/typescript-sdk",
270+
"icon": "square-js"
269271
}
270272
]
271273
}
@@ -309,9 +311,6 @@
309311
}
310312
],
311313
"contextual": {
312-
"options": [
313-
"copy",
314-
"view"
315-
]
314+
"options": ["copy", "view"]
316315
}
317316
}

0 commit comments

Comments
 (0)