Skip to content

fix(mcp): answer ping with an empty result - #295

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/mcp-ping
Nov 18, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
FredApps:fix/mcp-ping

Conversation

@FredApps

Copy link
Copy Markdown
Contributor

Fixes #294

handle() in mcp.ts answers ping with an empty result, as the MCP base protocol requires. Nothing else changes.

Validation:

Unsupported: the server still sends no pings of its own.

The MCP base protocol lets either side send ping at any time and
requires an empty result in reply. diffci-mcp answered it with
-32601 "unknown method: ping", so a client that pings to keep the
connection alive or check it is healthy reads the server as broken.

Signed-off-by: FredApps <[email protected]>
@FredApps
FredApps marked this pull request as ready for review November 18, 2026 00:55
@adityankale190895
adityankale190895 merged commit b6bc606 into DiffCI:main Nov 18, 2026
13 checks passed
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.

MCP server: ping gets a method-not-found error instead of an empty result

2 participants