-
Notifications
You must be signed in to change notification settings - Fork 702
Description
Problem Statement
There's already a discussion and implementation about logging: #301, and this issue could be use to discuss more details about the log implementation.
Also the cancelled_notification and progress_notification, maybe there are some design ideas they could share( all of them are notification).
Proposed Solution
java-sdk/python-skd idea
There are some great idea we can get inspiration from them.
pass the log/cancelled/progress capability to toolFunc, like java-sdk and python-skd
-
java: in the tool function, develop could get
McpSyncServerExchangeobject to send log notification


-
python: like java-sdk, there is a
Contextdevelop could use to send log notification and progress notification
https://github.com/modelcontextprotocol/python-sdk/blob/f2f4dbdcbd30fd00ced777fd1f59d00624362c97/src/mcp/server/fastmcp/server.py#L896
Proposal
We could pass more capability to ToolHandlerFunc to allow develop do more thing, mcp.CallToolRequest is not enough. Also we could do similar thing in the ResourceHandlerFunc、PromptHandlerFunc.