add description to resourse link

This commit is contained in:
ihrpr 2025-06-16 12:08:21 +01:00
commit 97519d3e32
No known key found for this signature in database

View file

@ -206,16 +206,18 @@ server.registerTool(
{ type: "text", text: `Found files matching "${pattern}":` },
// ResourceLinks let tools return references without file content
{
type: "resource_link" as const,
type: "resource_link",
uri: "file:///project/README.md",
name: "README.md",
mimeType: "text/markdown"
mimeType: "text/markdown",
description: 'A README file'
},
{
type: "resource_link" as const,
type: "resource_link",
uri: "file:///project/src/index.ts",
name: "index.ts",
mimeType: "text/typescript"
mimeType: "text/typescript",
description: 'An index file'
}
]
})