Claude Bridge
v1.3.0Durable local-first MCP relay for independent coding agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
bridge_send
Publish a durable message. Use content for legacy text/JSON, or message for the versioned structured envelope. Supply idempotency_key when a retry must not create a duplicate.
| Parameter | Type | Description |
|---|---|---|
channel * | string | |
sender * | string | |
content | string | Legacy text or JSON |
idempotency_key | string | |
message | object | Structured protocol-v1 envelope |
bridge_receive
Read durable messages. Pass since_id for an explicit cursor or consumer_id to resume from that consumer's last acknowledged message.
| Parameter | Type | Description |
|---|---|---|
channel * | string | |
consumer_id | string | |
limit | integer | |
since_id | string |
bridge_wait
Wait efficiently for new messages after since_id or a durable consumer cursor. Use this instead of repeated polling; timeout is capped at 55 seconds.
| Parameter | Type | Description |
|---|---|---|
channel * | string | |
consumer_id | string | |
limit | integer | |
since_id | string | |
timeout_seconds | number |
bridge_ack
Acknowledge a message for a named consumer. The durable cursor advances monotonically and is scoped to this channel.
| Parameter | Type | Description |
|---|---|---|
channel * | string | |
consumer_id * | string | |
message_id * | string | |
metadata | object |
bridge_channels
List all active channels and their message counts.
bridge_ping
Check if the bridge server is alive and get a status summary.
bridge_clear
Clear all messages from a specific channel. Useful for resetting state.
| Parameter | Type | Description |
|---|---|---|
channel * | string |
bridge_status
Get the last N messages from ALL channels at once. Useful for getting a full picture of what's happening across agents.
| Parameter | Type | Description |
|---|---|---|
per_channel | integer | How many recent messages to show per channel (default: 5) |
bridge_enqueue
Add a task to a channel's work queue for a worker to claim. Give payload (structured JSON) or content (a string). Pass idempotency_key so a retried enqueue does not create a duplicate.
| Parameter | Type | Description |
|---|---|---|
channel * | string | |
content | string | String task payload |
delay_seconds | integer | Delay before the task becomes claimable |
enqueued_by | string | |
idempotency_key | string | |
max_attempts | integer | |
payload | Structured JSON task payload | |
priority | integer | Higher priority is claimed sooner |
bridge_claim
Atomically claim the next task from a channel's queue — no two workers ever get the same task. The claim holds a lease for lease_seconds; complete or fail it before the lease expires or it is requeued to another worker. Set wait_seconds to long-poll.
| Parameter | Type | Description |
|---|---|---|
channel * | string | |
consumer * | string | |
lease_seconds | integer | |
wait_seconds | number |
bridge_complete
Mark a claimed task completed. Requires the lease_token returned by bridge_claim; a task whose lease expired and was reclaimed cannot be completed by the previous holder.
| Parameter | Type | Description |
|---|---|---|
channel * | string | |
lease_token * | string | |
task_id * | string | |
result | Optional structured JSON result |
bridge_fail
Mark a claimed task failed. By default it is requeued (after retry_delay_seconds) until max_attempts is exhausted, then dead-lettered; set requeue=false to dead-letter immediately. Requires the lease_token from bridge_claim.
| Parameter | Type | Description |
|---|---|---|
channel * | string | |
lease_token * | string | |
task_id * | string | |
error | string | Optional failure detail |
requeue | boolean | |
retry_delay_seconds | integer |
bridge_tasks
Inspect a channel's task queue: per-status counts plus a recent task list. Read-only.
| Parameter | Type | Description |
|---|---|---|
channel * | string | |
limit | integer | |
status | string |