ping
Test connectivity to the RequestRepo MCP server's websocket connection to verify active communication channels.
Instructions
Ping the underlying requestrepo websocket connection.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/requestrepo_mcp/server.py:480-483 (registration)MCP tool registration for 'ping' using @mcp.tool() decorator. This registers the ping function as an available MCP tool with the description 'Ping the underlying requestrepo websocket connection.'
@mcp.tool() def ping() -> dict[str, Any]: """Ping the underlying requestrepo websocket connection.""" return resolved_service.ping() - src/requestrepo_mcp/server.py:314-315 (handler)Service layer handler for ping operation. Calls the underlying requestrepo client's ping() method and wraps the boolean result in a dictionary with key 'ok'.
def ping(self) -> dict[str, Any]: return {"ok": self._client().ping()} - tests/test_service.py:108-109 (helper)Test mock implementation of ping() in FakeClient class. Returns True to simulate a successful websocket ping during testing.
def ping(self) -> bool: return True