Skip to content

Commit 97519d3

Browse files
committed
add description to resourse link
1 parent cacc3bc commit 97519d3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,18 @@ server.registerTool(
206206
{ type: "text", text: `Found files matching "${pattern}":` },
207207
// ResourceLinks let tools return references without file content
208208
{
209-
type: "resource_link" as const,
209+
type: "resource_link",
210210
uri: "file:///project/README.md",
211211
name: "README.md",
212-
mimeType: "text/markdown"
212+
mimeType: "text/markdown",
213+
description: 'A README file'
213214
},
214215
{
215-
type: "resource_link" as const,
216+
type: "resource_link",
216217
uri: "file:///project/src/index.ts",
217218
name: "index.ts",
218-
mimeType: "text/typescript"
219+
mimeType: "text/typescript",
220+
description: 'An index file'
219221
}
220222
]
221223
})

0 commit comments

Comments
 (0)