Skip to content

Add ping implementation to MCP client #246

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
OrGivati opened this issue May 18, 2025 · 0 comments · May be fixed by #203
Open

Add ping implementation to MCP client #246

OrGivati opened this issue May 18, 2025 · 0 comments · May be fixed by #203

Comments

@OrGivati
Copy link
Contributor

OrGivati commented May 18, 2025

According to the spec, the client and server must respond to ping with an empty map.
The server already handles ping requests.
I noticed this behavior is missing when I tested local running FastMCP server against the spring-ai MCP module.
The application failed to load with this error:

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ({
Message received:   error: McpError: MCP error -32601: Method not found: ping

Expected Behavior

MCP Client should respond to ping with empty map

Current Behavior

MCP Client throws method not found execption

Context

If I would like to connect MCP server to my client, the initilization fails over missing ping implementation

See PR #203

@OrGivati OrGivati linked a pull request May 18, 2025 that will close this issue
9 tasks
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 a pull request may close this issue.

1 participant