Skip to content

Commit a3087c2

Browse files
dsp-antclaude
andcommitted
Rename ResourceReference to ResourceTemplateReference in draft spec
This change renames the ResourceReference interface to ResourceTemplateReference to better reflect its purpose in the MCP specification. The interface is used specifically for referencing resource templates rather than resources themselves. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent bb16bc8 commit a3087c2

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

schema/draft/schema.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
"$ref": "#/definitions/PromptReference"
340340
},
341341
{
342-
"$ref": "#/definitions/ResourceReference"
342+
"$ref": "#/definitions/ResourceTemplateReference"
343343
}
344344
]
345345
}
@@ -1806,25 +1806,6 @@
18061806
],
18071807
"type": "object"
18081808
},
1809-
"ResourceReference": {
1810-
"description": "A reference to a resource or resource template definition.",
1811-
"properties": {
1812-
"type": {
1813-
"const": "ref/resource",
1814-
"type": "string"
1815-
},
1816-
"uri": {
1817-
"description": "The URI or URI template of the resource.",
1818-
"format": "uri-template",
1819-
"type": "string"
1820-
}
1821-
},
1822-
"required": [
1823-
"type",
1824-
"uri"
1825-
],
1826-
"type": "object"
1827-
},
18281809
"ResourceTemplate": {
18291810
"description": "A template description for resources available on the server.",
18301811
"properties": {
@@ -1856,6 +1837,25 @@
18561837
],
18571838
"type": "object"
18581839
},
1840+
"ResourceTemplateReference": {
1841+
"description": "A reference to a resource or resource template definition.",
1842+
"properties": {
1843+
"type": {
1844+
"const": "ref/resource",
1845+
"type": "string"
1846+
},
1847+
"uri": {
1848+
"description": "The URI or URI template of the resource.",
1849+
"format": "uri-template",
1850+
"type": "string"
1851+
}
1852+
},
1853+
"required": [
1854+
"type",
1855+
"uri"
1856+
],
1857+
"type": "object"
1858+
},
18591859
"ResourceUpdatedNotification": {
18601860
"description": "A notification from the server to the client, informing it that a resource has changed and may need to be read again. This should only be sent if the client previously sent a resources/subscribe request.",
18611861
"properties": {

schema/draft/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ export interface ModelHint {
11171117
export interface CompleteRequest extends Request {
11181118
method: "completion/complete";
11191119
params: {
1120-
ref: PromptReference | ResourceReference;
1120+
ref: PromptReference | ResourceTemplateReference;
11211121
/**
11221122
* The argument's information
11231123
*/
@@ -1157,7 +1157,7 @@ export interface CompleteResult extends Result {
11571157
/**
11581158
* A reference to a resource or resource template definition.
11591159
*/
1160-
export interface ResourceReference {
1160+
export interface ResourceTemplateReference {
11611161
type: "ref/resource";
11621162
/**
11631163
* The URI or URI template of the resource.

0 commit comments

Comments
 (0)