Remove all notes resource

This commit is contained in:
Chris Coutinho
2025-05-05 03:48:14 +02:00
parent ca980ec141
commit 43971ad0b2
2 changed files with 21 additions and 23 deletions
-13
View File
@@ -56,19 +56,6 @@ def notes_get_settings():
return client.notes_get_settings()
@mcp.resource("notes://all")
def nc_notes_get_all():
"""Get all user notes"""
ctx = (
mcp.get_context()
) # https://github.com/modelcontextprotocol/python-sdk/issues/244
client: NextcloudClient = ctx.request_context.lifespan_context.client
return client.notes_get_all()
# Removed nc_notes_get_note resource
@mcp.tool()
def nc_get_note(note_id: int, ctx: Context):
"""Get user note using note id"""