Skip to content

Commit 60fee0d

Browse files
Merge pull request modelcontextprotocol#35 from modelcontextprotocol/justin/fix-root-uri-format
Root URIs should be 'uri' format, not 'uri-template'
2 parents f1c1112 + 7b41cfb commit 60fee0d

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

schema/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@
15181518
},
15191519
"uri": {
15201520
"description": "The URI identifying the root. This *must* start with file:// for now.\nThis restriction may be relaxed in future versions of the protocol to allow\nother URI schemes.",
1521-
"format": "uri-template",
1521+
"format": "uri",
15221522
"type": "string"
15231523
}
15241524
},

schema/schema.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ export interface PromptArgument {
558558
* Describes a message returned as part of a prompt.
559559
*
560560
* This is similar to `SamplingMessage`, but also supports the embedding of
561-
* resource contents from the MCP server.
561+
* resource contents from the MCP server.
562562
*/
563563
export interface PromptMessage {
564564
role: "user" | "assistant";
@@ -567,7 +567,7 @@ export interface PromptMessage {
567567

568568
/**
569569
* The contents of a resource, embedded into a prompt.
570-
*
570+
*
571571
* It is up to the client how best to render embedded resources for the benefit
572572
* of the LLM and/or the user.
573573
*/
@@ -689,11 +689,19 @@ export interface LoggingMessageNotification extends Notification {
689689

690690
/**
691691
* The severity of a log message.
692-
*
692+
*
693693
* These map to syslog message severities, as specified in RFC-5424:
694694
* https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
695695
*/
696-
export type LoggingLevel = "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency";
696+
export type LoggingLevel =
697+
| "debug"
698+
| "info"
699+
| "notice"
700+
| "warning"
701+
| "error"
702+
| "critical"
703+
| "alert"
704+
| "emergency";
697705

698706
/* Sampling */
699707
/**
@@ -952,7 +960,7 @@ export interface Root {
952960
* This restriction may be relaxed in future versions of the protocol to allow
953961
* other URI schemes.
954962
*
955-
* @format uri-template
963+
* @format uri
956964
*/
957965
uri: string;
958966
/**

0 commit comments

Comments
 (0)