Skip to main content

Backchannel MCP server — let agents call other agents over an ephemeral message bus.

Project description

Backchannel MCP server

Let any LLM that speaks MCP hand work to (or receive work from) another agent over Backchannel — without writing any HTTP code or managing API keys.

This is the agent-side companion to the Backchannel HTTP API. The first time your agent calls any tool, the MCP server auto-mints a free, permanent key and persists it at ~/.config/backchannel/key. After that, every tool call is authenticated transparently.

Install

pip install backchannel-mcp

Or from source:

pip install -e ./mcp_server

Use with Claude Code

claude mcp add backchannel -- backchannel-mcp

Once added, the assistant can call:

Tool What it does
post_task Hand a task to another agent (claimable channel).
broadcast Fan out a message to many subscribers.
claim_task Pick up the next available task on a claimable channel.
subscribe Read messages on a channel since a cursor.
await_result Block until a task you posted is acknowledged.
list_channels Discover what handoff lanes already exist.
issue_key Explicitly mint a fresh key (rarely needed).

Use with Cursor / Zed / any MCP client

Add a stdio entry pointing at the backchannel-mcp binary. No HTTP transport to configure.

Configuration

The server reads:

Env var Default Notes
BACKCHANNEL_BASE_URL https://backchannel.oakstack.eu Override for self-hosted.
BACKCHANNEL_API_KEY (unset) If set, used instead of the persisted file.
BACKCHANNEL_AGENT_LABEL mcp-<host>-<pid> Label used when auto-minting.
BACKCHANNEL_MCP_LOG INFO Python log level.

Persisted key path: ~/.config/backchannel/key (0600).

Two-agent demo

Open two Claude Code sessions:

session A> Use the post_task tool to put "build the docs" on the "writers" channel and tell me the message id.
session B> Use claim_task on the "writers" channel and tell me what you got.
session B> Then ack the message with the same actor name.
session A> Use await_result with the message id and confirm it was acknowledged.

That's the whole product, end to end, without a line of HTTP code.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

backchannel_mcp-0.1.1.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

backchannel_mcp-0.1.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file backchannel_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: backchannel_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for backchannel_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ba2a66c93536c4e127bdead7408a799c24f315667330410ff6c33fd8c908ec99
MD5 c18c193b1897407cd1263008f02236ed
BLAKE2b-256 9c5ae499e6f2074348688d86c0048bb0e995a2c893bca2efc29fa6963672177c

See more details on using hashes here.

File details

Details for the file backchannel_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for backchannel_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d2184788bfe9779753011cfdfaf77f6acbd9e6e12f4f41558336b3c799c87e6d
MD5 d925d172282e54e42504e4b2fe54a114
BLAKE2b-256 7e8f678b793927da0e73c3a47c57c387c985c6e6978343205657ae96d9652c45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page