Commit c484b79
authored
Fix incorrect name/title fields in ResourceContents documentation (modelcontextprotocol#1500)
Commit 1c54a77 (PR modelcontextprotocol#663) incorrectly added 'name' and 'title' fields
to ResourceContents examples in the documentation. According to the schema,
these fields only exist on Resource objects (used in resources/list), not
on ResourceContents (TextResourceContents/BlobResourceContents) which are
used in:
- resources/read responses
- embedded resources in prompts and tools
- resource update notifications
This commit removes the incorrectly documented fields to match the actual
schema definition where ResourceContents only contains:
- uri (required)
- mimeType (optional)
- text or blob field depending on content type1 parent ad8526e commit c484b79
File tree
3 files changed
+1
-11
lines changed- docs/specification/draft/server
3 files changed
+1
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
255 | | - | |
256 | 254 | | |
257 | 255 | | |
258 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | 160 | | |
163 | 161 | | |
164 | 162 | | |
| |||
240 | 238 | | |
241 | 239 | | |
242 | 240 | | |
243 | | - | |
244 | | - | |
| 241 | + | |
245 | 242 | | |
246 | 243 | | |
247 | 244 | | |
| |||
293 | 290 | | |
294 | 291 | | |
295 | 292 | | |
296 | | - | |
297 | | - | |
298 | 293 | | |
299 | 294 | | |
300 | 295 | | |
| |||
305 | 300 | | |
306 | 301 | | |
307 | 302 | | |
308 | | - | |
309 | | - | |
310 | 303 | | |
311 | 304 | | |
312 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
287 | 286 | | |
288 | 287 | | |
289 | 288 | | |
| |||
0 commit comments