Claude Code Bridge from Essential AI Solutions (essentialai.uk)

v0.3.0
io.github.eaisdevelopment/cc-bridge-mcp-server Checked 23 hours ago Published 9 months ago

MCP bridge for inter-session communication between Claude Code instances

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

cc_register_peer Register Peer

Register a Claude Code session as a named peer on the bridge. Each peer needs a unique peerId, the CC sessionId to resume, the working directory (cwd), and a human-readable label.

ParameterTypeDescription
cwd *stringAbsolute path to the project working directory
label *stringHuman-readable label, e.g. 'CC_Backend' or 'CC_Frontend'
peerId *stringUnique identifier for this peer, e.g. 'backend' or 'frontend'
sessionId *stringClaude Code session ID (used with --resume)

cc_deregister_peer Deregister Peer

Remove a previously registered peer from the bridge. The peer will no longer be reachable for messaging.

ParameterTypeDescription
peerId *stringPeer ID to deregister, e.g. 'backend'

cc_send_message Send Message to Peer

Send a message from one registered peer to another. The message is relayed by resuming the target's Claude Code session via CLI subprocess. Returns the target's response. Auto-recovers if the target's session has changed.

ParameterTypeDescription
fromPeerId *stringPeer ID of the sender, e.g. 'backend'
message *stringThe message content to send to the target peer
toPeerId *stringPeer ID of the recipient, e.g. 'frontend'

cc_list_peers List Peers

List all currently registered Claude Code peers on the bridge. Returns peer IDs, session IDs, working directories, labels, and flags peers as potentially stale if idle beyond the configured timeout.

cc_get_history Get Message History

Retrieve the message history for the bridge. Optionally filter by a specific peer ID. Returns messages in chronological order, most recent last.

ParameterTypeDescription
limitnumberMaximum number of messages to return (default 50)
peerIdstringOptional peer ID to filter history for

cc_health_check Health Check

Diagnose the bridge's operational status. Checks state file accessibility, lock mechanism, and Claude CLI availability. Returns per-check pass/fail with details.