Repository navigation
Replies: 3 comments 4 replies
|
This is the implementation section of the MCP server <Remaining code of the tool, resource and server instantiation> @server.list_resources() |
Most clients just don't support this, even Claude I think. Inspector does thouugh. |
It doesn't happen automatically. Clients send resource-update-subscription-"requests" to server to let them know "hey I want to know if this resource changes" - server is free to do anything, or nothing - if they support it, they can then start sending "resources/updated" notifications to the client when the resource is updated - then the client knows the resource has changed and it can read it again. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Pre-submission Checklist
Question Category
Your Question
Can anyone please help me to subscribe to a resource so that, as mentioned in the docs, when the resource changes, a notification is sent to notify the client that this resource is updated and fetch the new content/version of that subscribed resource? I guess this happens automatically, as mentioned in the diagram. I'm using the Python SDK.
Problem: Don't know how to implement exactly.
Client: Claude Desktop or Agno, or MCP Client
URL of the docs: https://modelcontextprotocol.io/specification/2024-11-05/server/resources
All reactions