Skip to content

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

Closed

Description

@FredApps

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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions