Skip to main content
Glama
npx fleet-bridge

Your agents already exist. They live on an OpenClaw gateway, or on a box somewhere running Hermes. The problem is getting at them: every client wants a different integration, every runtime speaks a different protocol.

fleet-bridge says no to all of that. It's one stdio MCP server. Point Zed, Claude Code, or any MCP client at it, and every agent on your fleet shows up as a tool you call by name.

Tokens never leave the box running the bridge. Every tool output strips agent tokens and SSH details before the client sees them.

How it fits together

flowchart LR
    subgraph openclaw["OpenClaw gateway agents"]
        OA["/v1/chat/completions<br/>+ /health"]
    end
    subgraph hermes["Hermes agents"]
        HA["ssh {user}@{host}<br/>{binary} -z 'prompt'"]
    end
    BRIDGE["fleet-bridge<br/>stdio MCP server<br/><br/>reads agents.json +<br/>hermes-agents.json<br/>at startup"]
    subgraph clients["MCP clients"]
        Z["Zed"]
        C["Claude Code"]
        X["any MCP client"]
    end
    OA -- "http :port/v1/chat/completions<br/>(Bearer token)" --> BRIDGE
    HA -- "SSH" --> BRIDGE
    BRIDGE -- "stdio JSON-RPC (MCP)" --> clients

Three properties worth knowing:

  • Stateless. The bridge reads its rosters once at startup and holds nothing. Multi-turn conversation state lives in the agent gateways, where it already was.

  • File-driven. Two JSON files define your fleet. Edit, restart, done.

  • Two runtimes, one shape. OpenClaw agents over HTTP, Hermes agents over SSH — both flatten into the same six-tool surface.

Related MCP server: openclaw-mcp

Tools

Tool

What it does

list_agents

List OpenClaw agents — {name, role, tier, host, port}, token stripped

agent_health

Hit the agent gateway's /health, return its JSON

start_session

Mint a session_key for multi-turn conversation (gateway-side state)

invoke_agent

Prompt an OpenClaw agent; streams, supports session_key + timeout_ms

list_hermes_agents

List Hermes agents — {name, role, model, host}, SSH details stripped

invoke_hermes

One-shot prompt to a Hermes agent; always stateless

Both invoke tools emit notifications/progress when the client passes _meta.progressToken; without it you get the same final result, just quieter.

Point it at your fleet

The bridge reads two roster files at startup — both chmod 600, both gitignored, because they hold tokens and SSH details:

  • agents.json — OpenClaw: {"agents": [{"name", "role", "tier", "model?", "port", "host", "token"}]}

  • hermes-agents.json — Hermes: {"agents": [{"name", "role", "model?", "host", "ssh_user", "binary"}]}

Missing file, empty roster — the bridge starts anyway. Full field reference in docs/CONFIG.md.

On the box running your OpenClaw agents, build the roster from the live gateway configs:

bash scripts/build-agents.json.sh /tmp/agents.json

It scans $HOME/.openclaw-*/openclaw.json for ports and tokens. Set FLEET_HOST if agents aren't on 127.0.0.1. Add or rotate an agent: change the OpenClaw config, re-run, redeploy, restart your client.

Variable

Default

Purpose

FLEET_BRIDGE_AGENTS

<repoRoot>/agents.json

Path to the OpenClaw roster

FLEET_BRIDGE_HERMES

<repoRoot>/hermes-agents.json

Path to the Hermes roster

FLEET_BRIDGE_HEALTH_TIMEOUT_MS

5000

Abort timeout for agent_health

FLEET_BRIDGE_INVOKE_TIMEOUT_MS

60000

Default invoke timeout when the call omits timeout_ms

Prove it works

No MCP client needed. Build, swap in an agent name from your roster:

npm install && npm run build

printf '%s\n' \
  '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"smoke","version":"0"}}}' \
  '{"jsonrpc":"2.0","method":"notifications/initialized"}' \
  '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"invoke_agent","arguments":{"name":"my-agent","prompt":"reply with exactly: pong"}}}' \
  | node dist/index.js

Expect pong from a real agent. Add "_meta":{"progressToken":"t1"} to the tools/call params to watch streaming progress notifications roll in. Beyond that: agent-side faults usually show in journalctl on the agent host (OpenClaw runs as systemd units).

Security

Agent traffic is plain http:// by design. Run the bridge where the agents are — loopback, LAN, or a private overlay. Don't expose agent gateways to the public internet; there is no TLS option in v0.1. Keep roster files chmod 600 and out of any synced tree you don't control.

License

MIT

Available Tools

6 tools
agent_healthB

Check whether a specific fleet agent is healthy. Returns the agent gateway's /health JSON.

Inputs: name (required).

invoke_agentA

Send a prompt to a fleet agent and return its reply. Streams internally; emits progress notifications if client passes _meta.progressToken. Pass session_key from start_session for multi-turn conversations.

Inputs: name (required), prompt (required), timeout_ms, session_key.

invoke_hermesA

Send a one-shot prompt to a Hermes agent via SSH. Always stateless — Hermes -z mode does not preserve context across calls.

Inputs: name (required), prompt (required), timeout_ms.

list_agentsA

List fleet agents reachable through this bridge. Returns name, role, tier, host, port for each.

Inputs: no named parameters.

list_hermes_agentsA

List Hermes agents (different runtime than OpenClaw — invoked via SSH + hermes CLI). Returns name, role, model, host for each.

Inputs: no named parameters.

start_sessionA

Generate a fresh session_key for multi-turn conversation with a fleet agent. Pass the returned key to subsequent invoke_agent calls to preserve context. Conversation state is persisted server-side by the agent gateway under this key.

Inputs: agent.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 6 tools

    Disambiguation4/5

    list_agents vs list_hermes_agents and invoke_agent vs invoke_hermes could be confused at a glance, but descriptions clearly distinguish the runtimes. agent_health and start_session have distinct purposes, so misselection is unlikely.

    Naming Consistency4/5

    Most tools follow a verb_noun pattern (list_agents, start_session, invoke_agent, list_hermes_agents, invoke_hermes). agent_health breaks the verb-first convention, and the Hermes suffix is less systematic than a dedicated prefix, but overall it is readable and consistent.

    Tool Count5/5

    Six tools is well-scoped for a bridge that lists agents, checks health, manages sessions, and invokes two runtimes. Each tool has a clear place without obvious redundancy.

    Completeness3/5

    Core list/health/session/invoke operations are covered, but session lifecycle is incomplete (no end_session or session listing) and there is no health-check tool for Hermes agents. Agents can work around these gaps via auto-expiry and invoke failures, but they are notable.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A lightweight MCP gateway that aggregates multiple MCP services into a unified stdio interface, automatically prefixing tool names with the service name to avoid conflicts.
      13 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for Claude Code to interact with OpenClaw AI agents (Daemon, Soren, Ash, etc.) via the gateway API, providing tools to ask agents, list them, and check their status.
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI tools to uniformly discover, inspect, and call tools, prompts, and resources from multiple upstream MCP servers through a small set of fixed MCP tools, over stdio or HTTP.
      2
      MIT