comsnet-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@comsnet-mcplist the agents online and check my inbox"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
comsnet-mcp
Give Claude Code (or any MCP client) a seat at the Pi agent table.
comsnet-mcp is a stdio MCP server that registers your CLI coding session as a
peer on a coms-net hub: it can
list peers, send work to them, read its inbox, and reply — with the same
identity model the Pi agents use.
┌──────────────┐ MCP (stdio) ┌──────────────┐ HTTP/SSE ┌────────────┐
│ Claude Code │ ──────────────▶ │ comsnet-mcp │ ───────────▶ │ coms-net │
│ (this repo) │ ◀────────────── │ bridge │ ◀─────────── │ hub │
└──────────────┘ └──────────────┘ └────────────┘
▲
Pi agents, other
CLI peers, workersWhy
Multi-agent setups usually stop at "one orchestrator, many subprocesses". Once you run several interactive tools side by side — Claude Code in one pane, Pi agents in another, a headless worker in a third — they can't see each other.
coms-net already solves that for Pi. This bridge makes the same hub reachable from any MCP client, so a Claude Code session becomes an addressable peer instead of an island.
Related MCP server: technocore-mcp
Status
Early. The bridge is in daily use on a private fleet; this repository is the extracted, dependency-free public cut. No npm package yet — run from source.
Quick start
# 1. have a coms-net hub running (see upstream repo)
# 2. give the bridge a hub endpoint
export COMS_NET_HUB=http://127.0.0.1:8787 # or let it read ~/.pi/coms-net/server.json
# 3. register the server with your MCP client, e.g. Claude Code
claude mcp add comsnet -- bun /path/to/comsnet-mcp/src/mcp.tsThen, inside the session:
> use comsnet_inbox to see if anything is waiting
> use comsnet_send to ask "pi-agent" for the current GPU lane statusTools exposed
tool | purpose |
| one-line presence/registration status |
| peers currently on the hub, with model + status ( |
| start a conversation with a peer; returns |
| read inbound prompts addressed to this session |
| reply to an inbound prompt |
Replies are delivered as a follow-up turn ("you were nudged") rather than by
polling — see src/lib/coms-net-client.ts for the SSE stream that powers it.
Loop safety
Two mechanisms are on by default because unbounded agent-to-agent chatter is a real failure mode we hit:
hop limit — forwarded messages carry a hop counter; past the limit the hub refuses to keep relaying (
PI_COMS_NET_MAX_HOPS, default 5).reply shape guard (
src/lib/output-shape.ts) — a peer reply that is structured but ends on a non-conclusion section is flagged, so a fleet doesn't drown in "here is my analysis, thoughts?" turns.
Repo layout
src/mcp.ts MCP stdio server (newline-delimited JSON-RPC)
src/headless-peer.ts non-interactive worker peer (for `claude -p` style jobs)
src/lib/ hub client: discovery, registration, heartbeat, SSE, inbox
test/ protocol + lifetime + inbox-authority testsTests
bun test # unit suites: no network, no hub, no private paths
COMSNET_E2E=1 bun test # + suites that need a hub checkout / live terminal fleet32 pass / 19 skip / 0 fail on a bare checkout. See test/README.md
for why the environment-dependent suites are gated.
Credits & prior art
See NOTICE. coms-net protocol © Dan Disler (MIT).
Licence
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect an agent to Sidequest’s hosted job exchange to hire work, find work and settle on Monad.
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Register agents, submit locally signed reflections, and read public Innerloop entries.
Join the CityDesk AI-agent colony: creed, proof-of-work join, status and community activities.
61
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible clients to connect to Swarm, providing access to Space memory, work coordination, artifacts, evaluations, context packs, and agent execution tools.65 npmApache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables MCP-capable agents to participate in technocore.chat as full peers, reading rooms, writing signed messages as a did:key identity, and managing notes.MIT
- AlicenseNot gradedqualityAmaintenanceEnables coding agents on the same machine to discover each other as named peers and exchange messages across sessions, bridging MCP-based clients and Claude Code without a daemon.24 PyPIMIT
- AlicenseNot gradedqualityBmaintenanceEnables stdio-only MCP clients to reach an agent-native venue where autonomous agents chat in rooms, post and team up on problems, create and claim bounties (first claim wins), search all content, and pull deterministic digests, with an optional API key unlocking mutating tools and free read-only access otherwise.MIT