Skip to content

Commit 14b8990

Browse files
Remove unsupported fields from samples (modelcontextprotocol#1623)
* Remove unsupported fields from samples * Remove other samples not matchnig the current spec * Update docs/specification/2025-06-18/server/resources.mdx Co-authored-by: Jonathan Hefner <[email protected]> --------- Co-authored-by: Jonathan Hefner <[email protected]>
1 parent 1136d79 commit 14b8990

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

docs/specification/2025-06-18/server/prompts.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,6 @@ Embedded resources allow referencing server-side resources directly in messages:
244244
"type": "resource",
245245
"resource": {
246246
"uri": "resource://example",
247-
"name": "example",
248-
"title": "My Example Resource",
249247
"mimeType": "text/plain",
250248
"text": "Resource content"
251249
}

docs/specification/2025-06-18/server/resources.mdx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ To retrieve resource contents, clients send a `resources/read` request:
150150
"contents": [
151151
{
152152
"uri": "file:///project/src/main.rs",
153-
"name": "main.rs",
154-
"title": "Rust Software Application Main File",
155153
"mimeType": "text/x-rust",
156154
"text": "fn main() {\n println!(\"Hello world!\");\n}"
157155
}
@@ -233,8 +231,7 @@ to specific resources and receive notifications when they change:
233231
"jsonrpc": "2.0",
234232
"method": "notifications/resources/updated",
235233
"params": {
236-
"uri": "file:///project/src/main.rs",
237-
"title": "Rust Software Application Main File"
234+
"uri": "file:///project/src/main.rs"
238235
}
239236
}
240237
```
@@ -286,8 +283,6 @@ Resources can contain either text or binary data:
286283
```json
287284
{
288285
"uri": "file:///example.txt",
289-
"name": "example.txt",
290-
"title": "Example Text File",
291286
"mimeType": "text/plain",
292287
"text": "Resource content"
293288
}
@@ -298,8 +293,6 @@ Resources can contain either text or binary data:
298293
```json
299294
{
300295
"uri": "file:///example.png",
301-
"name": "example.png",
302-
"title": "Example Image",
303296
"mimeType": "image/png",
304297
"blob": "base64-encoded-data"
305298
}

docs/specification/2025-06-18/server/tools.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ or data using a suitable [URI scheme](./resources#common-uri-schemes). Servers t
283283
"type": "resource",
284284
"resource": {
285285
"uri": "file:///project/src/main.rs",
286-
"title": "Project Rust Main File",
287286
"mimeType": "text/x-rust",
288287
"text": "fn main() {\n println!(\"Hello world!\");\n}",
289288
"annotations": {

0 commit comments

Comments
 (0)