Skip to content

Commit 4df2d90

Browse files
committed
Add 'name' to resources
Resolves modelcontextprotocol#51.
1 parent d06853c commit 4df2d90

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

schema/schema.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,10 @@
11101110
"description": "The MIME type of this resource, if known.",
11111111
"type": "string"
11121112
},
1113+
"name": {
1114+
"description": "An optional human-readable name for this resource.\n\nThis can be used by clients to populate UI elements.",
1115+
"type": "string"
1116+
},
11131117
"uri": {
11141118
"description": "The URI of this resource.",
11151119
"format": "uri",

schema/schema.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,14 @@ export interface Resource {
331331
* @format uri
332332
*/
333333
uri: string;
334+
335+
/**
336+
* An optional human-readable name for this resource.
337+
*
338+
* This can be used by clients to populate UI elements.
339+
*/
340+
name?: string;
341+
334342
/**
335343
* The MIME type of this resource, if known.
336344
*/

0 commit comments

Comments
 (0)