update deprecated log warnings

This commit is contained in:
Chris Coutinho
2025-09-24 00:17:57 +02:00
parent cc9650b077
commit 79e6250377
2 changed files with 0 additions and 6 deletions
-3
View File
@@ -56,9 +56,6 @@ 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()
-3
View File
@@ -27,9 +27,6 @@ def configure_notes_tools(mcp: FastMCP):
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
settings_data = await client.notes.get_settings()
return NotesSettings(**settings_data)