update deprecated log warnings
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user