Pilot MCP Bridge
Blueprint for wrapping Pilot Protocol as MCP server for Claude Code/OpenClaw integration.
MCP Tools to Expose
Identity & Status:
pilot_daemon_status: Runpilotctl --json daemon statuspilot_info: Runpilotctl --json infopilot_peers: Runpilotctl --json peers
Communication:
pilot_connect: Runpilotctl --json connect <target> <port> --message "<msg>"pilot_send_message: Runpilotctl --json send-message <target> --data "<msg>"pilot_recv: Runpilotctl --json recv <port>pilot_listen: Runpilotctl --json listen <port>
Discovery:
pilot_find: Runpilotctl --json find <hostname>pilot_lookup: Runpilotctl --json lookup <node_id>
Pub/Sub:
pilot_publish: Runpilotctl --json publish <target> <topic> --data "<msg>"pilot_subscribe: Runpilotctl --json subscribe <target> <topic>
Gateway:
pilot_gateway_start: Runpilotctl --json gateway startpilot_gateway_map: Runpilotctl --json gateway map <hostname> <local-ip>
Workflow Example
# Start Pilot daemon
pilotctl --json daemon start --registry 34.71.57.205:9000 --beacon 34.71.57.205:9001
# Start MCP server wrapper
python mcp_pilot_server.py
# MCP tools now available in Claude Code/OpenClaw
Dependencies
Requires pilot-protocol skill, pilotctl binary, MCP server framework (Python mcp library), and MCP-compatible client.