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

Open
#294 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@FredApps is already working on this.

Since Nov 17, 2026.

  • #295 by @FredApps — open

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
25/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
typescript

Research direction

Start in packages/diffci-cli/src/client/mcp.ts and read how handle() dispatches MCP requests and formats responses. Check the existing tests for the MCP server, if available, and add coverage for the ping request shown in the repro. Done means ping returns the expected empty result; a linked pull request is already open for this issue.

Written by the indexing model from the issue text.

Description

The MCP server (diffci mcp, packages/diffci-cli/src/client/mcp.ts) has no ping case in handle(). A ping request gets the method-not-found error. The MCP base protocol (Lifecycle → Ping) requires the receiver to "respond promptly with an empty response". Clients that ping to check the connection can treat the error as a dead server.

Repro: start diffci mcp, send initialize, then {"jsonrpc":"2.0","id":2,"method":"ping"}.

Expected: {"jsonrpc":"2.0","id":2,"result":{}}.

Actual: an error response (method not found) for id 2.

Dominant language
TypeScript
Stars
0
Forks
4
Avg merge
18h 41m
Merged PRs (30d)
48

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DiffCI/core

All issues in DiffCI/core

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.