Documentation Index
Fetch the complete documentation index at: https://docs.generalrobotics.dev/llms.txt
Use this file to discover all available pages before exploring further.
MCPClient
Inherits from: object
MCP-compliant client for robot communication.
Provides structured tool access and AI agent integration through the
Model Context Protocol (MCP). Ideal for Claude/GPT integration and
tool-based workflows.
init
MCPClient.__init__(robot_ip: str, port: int = 4774, enable_heartbeat: bool = True, heartbeat_interval: float = 2.0) -> None
Initialize MCP client.
Port number (default 4774)
Enable automatic heartbeat monitoring for safety
heartbeat_interval (float)
Heartbeat interval in seconds (default 2.0)
If requests library is not installed
If MCP session initialization fails
MCPClient.call_tool(tool_name: str, arguments: Optional[Dict] = None) -> Any
Call an MCP tool with automatic retry for ‘get’ operations
arguments (Optional[Dict])
No description provided.
MCPClient.list_tools() -> List[Dict[str, Any]]
List available MCP tools.
is_connected
MCPClient.is_connected() -> bool
Check if MCP client is connected.
True if client is initialized and connection is active
disconnect
MCPClient.disconnect() -> None
Disconnect MCP client and stop heartbeat monitoring.
Stops the heartbeat monitoring thread and marks the client
as disconnected.