feat: mcp resources (#6542)

This commit is contained in:
Paolo Ricciuti 2026-01-04 16:12:54 +01:00 committed by GitHub
commit 21dc3c24d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 329 additions and 4 deletions

View file

@ -2337,6 +2337,27 @@ export namespace Server {
return c.json(true)
},
)
.get(
"/experimental/resource",
describeRoute({
summary: "Get MCP resources",
description: "Get all available MCP resources from connected servers. Optionally filter by name.",
operationId: "experimental.resource.list",
responses: {
200: {
description: "MCP resources",
content: {
"application/json": {
schema: resolver(z.record(z.string(), MCP.Resource)),
},
},
},
},
}),
async (c) => {
return c.json(await MCP.resources())
},
)
.get(
"/lsp",
describeRoute({