refactor: Add tools for all resources to enable tool-only workflows

This commit is contained in:
Chris Coutinho
2025-09-24 00:13:24 +02:00
parent 4572287870
commit cc9650b077
5 changed files with 176 additions and 14 deletions
+3
View File
@@ -56,6 +56,9 @@ def get_app(transport: str = "sse", enabled_apps: list[str] | None = None):
ctx: Context = (
mcp.get_context()
) # https://github.com/modelcontextprotocol/python-sdk/issues/244
await ctx.warning(
"This resource is deprecated and will be removed in a future version"
)
client: NextcloudClient = ctx.request_context.lifespan_context.client
return await client.capabilities()