Skip to content

[Client] Answer a ping from the server with an empty result - #761

Open
andre-schade wants to merge 1 commit into
modelcontextprotocol:mainfrom
andre-schade:fix/client-answers-ping
Open

andre-schade wants to merge 1 commit into
modelcontextprotocol:mainfrom
andre-schade:fix/client-answers-ping

Conversation

@andre-schade

Copy link
Copy Markdown

Either side may send ping, and the receiver MUST answer with an empty result (spec 2025-11-25, Basic › Utilities › Ping). The client had no handler for PingRequest, so a ping from the server got {"code":-32601,"message":"Client does not handle \"ping\" requests."}.

The client now answers it with EmptyResult when no registered request handler takes it, like the server's PingHandler.

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants