Skip to content

Commit 9a96c28

Browse files
committed
revert Root
1 parent 5bf5457 commit 9a96c28

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

schema/draft/schema.json

Lines changed: 9 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/draft/schema.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ export interface BaseMetadata {
277277
* even by those unfamiliar with domain-specific terminology.
278278
*
279279
* If not provided, the name should be used for display (except for Tool,
280-
* where `annotations.title` should be given precedence over using `name`).
280+
* where `annotations.title` should be given precedence over using `name`,
281+
* if present).
281282
*/
282283
title?: string;
283284
}
@@ -1221,7 +1222,7 @@ export interface ListRootsResult extends Result {
12211222
/**
12221223
* Represents a root directory or file that the server can operate on.
12231224
*/
1224-
export interface Root extends BaseMetadata {
1225+
export interface Root {
12251226
/**
12261227
* The URI identifying the root. This *must* start with file:// for now.
12271228
* This restriction may be relaxed in future versions of the protocol to allow
@@ -1230,6 +1231,12 @@ export interface Root extends BaseMetadata {
12301231
* @format uri
12311232
*/
12321233
uri: string;
1234+
/**
1235+
* An optional name for the root. This can be used to provide a human-readable
1236+
* identifier for the root, which may be useful for display purposes or for
1237+
* referencing the root in other parts of the application.
1238+
*/
1239+
name?: string;
12331240
}
12341241

12351242
/**

0 commit comments

Comments
 (0)