Skip to main content
The ping method verifies the server is alive and responding. Use it for health checks and connection verification.

MCP Endpoint

POST https://yoursite.com/mcp/{slug}/{server_id}
Content-Type: application/json

Request

curl -X POST \
  -H "Content-Type: application/json" \
  -H "Mcp-Session-Id: your_session_id" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "ping",
    "params": {}
  }' \
  "https://yoursite.com/mcp/my-weather-tools/a1b2c3d4e5f6a1b2"

Response

{
  "jsonrpc": "2.0",
  "id": 2,
  "result": {}
}
The ping response is always an empty result object {}.