Skip to main content
Glama
hofill
by hofill

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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()
  • 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()}
  • Test mock implementation of ping() in FakeClient class. Returns True to simulate a successful websocket ping during testing.
    def ping(self) -> bool:
        return True

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hofill/RequestRepo-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server