mcp server
relay
Shared memory and switchboard for teams whose members each run their own AI agents. Meetings → decisions and action items, team knowledge graph, MCP tool surface, A2A broker with human oversight.
Set up
Runs on your computer. Pick your agent and operating system.
Before you start
- uv (`curl -LsSf https://astral.sh/uv/install.sh | sh`)
{
"mcpServers": {
"relayagents-relay": {
"command": "uvx",
"args": [
"relayagents"
]
}
}
}same format Cursor, GitHub Copilot CLI, Junie, JetBrains AI Assistant, Augment (Auggie CLI), Factory Droid, Kiro, Devin CLI +12
Values in angle brackets are placeholders. Restart Claude Desktop after editing its config.Claude Desktop docs
README
synced Oct 25, 2026Relay
Relay connects your coding agent to your team's meetings and chat. A meeting becomes decisions and action items with provenance. Each item reaches the assignee's own agent, which already knows what the team decided and what is assigned to its human. What the agent does flows back as reports, standups, and approvals the team sees in Slack. Nobody pastes context in either direction.
Relay is the shared memory and switchboard underneath the agents people already use: Claude Code, Codex, OpenCode, Hermes, or anything that speaks MCP and A2A. It is not an agent framework. It runs no model calls on your behalf, holds no private memory, and asks your agent for anything that needs your credentials. It is also not a replacement for Slackbot, Claude in Slack, or Codex in Slack; those are executors, Relay is the record and the broker beneath them, and it works on a free or Pro Slack plan (ADR-0009).
60-second quickstart
git clone https://github.com/relayagents/relay && cd relay
./scripts/bootstrap.sh # writes .env with generated secrets
$EDITOR .env # hostname, Slack tokens, team model key (optional)
./scripts/bootstrap.sh # docker compose up -d --build, waits for /health, creates the admin
uv tool install git+https://github.com/relayagents/relay # the `relay` CLI on your laptop (PyPI release pending)
relay login --url https://relay.example.dev --token <printed above>
scripts/add-user.sh grace # on the node: user, tokens, AgentCard, and a Hermes container
(cd ~/code/team-repo && relay setup-agent claude-code --write) # your coding agent, in that project only
relay meeting upload --transcript fixtures/transcript_sample.json --skip-asr --participants ada,grace,linus
relay my-items # ...and `relay recall "embedding cache"`, `relay decisions`
No Docker on hand? RELAY_DATABASE_URL=sqlite+aiosqlite:///relay.db RELAY_ENVIRONMENT=test uv run relay serve runs the API alone for a look around, and uv run pytest -q runs the whole suite on SQLite.
How it fits together
flowchart LR
subgraph laptops["Laptops"]
CLI["relay CLI"]
CC["Coding agent<br/>(Claude Code / Codex / OpenCode)"]
end
subgraph node["Relay node (lab machine or small VPS, on Tailscale)"]
API["relay-api<br/>REST · MCP server · A2A broker · Slack Socket Mode"]
W["relay-workers<br/>extraction · PM · embeddings · digest"]
PG[("Postgres + pgvector<br/>event log = truth,<br/>projections, embeddings")]
R[("Redis / arq")]
WS["workspace-mcp<br/>per-user Google OAuth"]
subgraph pool["Agent pool"]
H1["Hermes · ada"]
H2["Hermes · grace"]
SB["sandbox: claude -p / codex exec"]
end
CADDY["caddy (TLS)"]
end
GPU["relay-ingest (WhisperX)<br/>GPU box on the tailnet, or CPU fallback"]
SLACK["Slack (one app)"]
GH["GitHub (gh, user tokens)"]
CLI -->|bearer token| CADDY --> API
CC -->|MCP| CADDY
API <--> PG
API <--> R
W <--> PG
W <--> R
GPU <--> R
API <-->|A2A via broker| H1
API <-->|A2A via broker| H2
H1 -->|headless run| SB
SB -->|MCP: my_items, report| API
API <-->|Socket Mode| SLACK
H1 -->|gh, user token| GH
H1 -->|MCP| WS
Connecting a coding agent
Relay is on per project, never everywhere: your personal projects stay out of the team's log. The easy way is to let your agent do it. Open it in the project and say:
Connect this project to Relay by following https://github.com/relayagents/relay/blob/main/docs/connect-your-agent.md
It installs the CLI, logs you in (you approve in Slack), and connects that project. By hand, from
the root of a project that should use Relay, after relay login:
relay setup-agent claude-code --write
relay setup-agent codex --write --env-file .envrc # or opencode, cursor; or --env-file ~/.zshrc
- Claude Code gets the Relay plugin (it carries the
relayskill) and the MCP server, both at local scope: private to you and to this folder. The plugin comes from this repository's marketplace (relay@relayagents). - Codex, OpenCode, and Cursor get a project config (
.codex/config.toml,opencode.json,.cursor/mcp.json) that reads the token fromRELAY_CODEX_TOKEN/RELAY_OPENCODE_TOKEN/RELAY_CURSOR_TOKEN, so the file holds no secret, and the skill in~/.agents/skills/relay. The skill does nothing in projects where Relay is not connected.--env-filenames the file that gets the token'sexportline: a gitignored.envrc(with direnv) or your shell profile. Files git would track are refused. - Without
--writeit prints the steps and changes nothing. Run it again to replace this project's token; the one it replaces is revoked. It never prints a token, so it is safe for your agent to run.
The skill tells the agent when to report, when to ask for approval, and never to fall back to your
own relay login. Why it works this way: ADR-0010.
The tool surface
The same nine operations exist as MCP tools, relay subcommands, and POST /v1/tools/<name>, generated from one definition (src/relayagents/tools/registry.py) so they cannot drift.
| Operation | Purpose |
|---|---|
recall <query> | hybrid search over team memory (event log + pgvector; graph optional) with provenance and links |
my_items / items --assignee | open action items, with source meeting and status |
events --since --type --thread | query the event log |
report <text> [--item-id ID] [--link URL] | publish what I did as an event (source for standups and item closure) |
ask <user> <question> | A2A message to a teammate's agent, threaded, surfaced to that human in Slack |
request_approval <action> | open an approval; blocks until the human resolves it in Slack |
decisions --topic | decisions with dates and superseded-by links |
post <text> | post to Slack via Relay's app with "posted by X's agent" attribution |
Principles
- The event log is the source of truth. Projections, embeddings, digests: all derived, all rebuildable with
relay replay. A knowledge graph is optional, and off by default (ADR-0005). - Relay holds team memory only. Private memory stays in your agent. Relay stores no LLM keys for users and proxies no model traffic; the one team model key lives in the workers.
- Delegated, per-user permission. Agents act under their human's tokens. External writes are approval-gated by default and audit-logged always.
- Per-tool transport. MCP for SaaS tools and Relay's own surface, CLI for local tooling and headless coding agents, A2A through Relay's broker for agent-to-agent.
- Pluggable everything, one reference implementation each.
- One compose file runs it.
- Anything that would surprise a human later is surfaced to that human.
- Public from commit one. Synthetic fixtures only.
Start here if you're new
CLAUDE.md: the non-negotiables, the dev loop, and how we work. Coding agents read it automatically; read it yourself first.CONTRIBUTING.md: the PR workflow and etiquette.- docs/architecture.md, docs/data-model.md, docs/permissions.md, docs/protocols.md, docs/agent-contract.md.
- docs/adr: why things are the way they are. Read 0001, 0002, 0005, and 0009 first.
- docs/roadmap.md: what's next, in order, and what's parked.
Deliberately not in v1
- Live meeting bots (v1 accepts recordings and transcripts; live capture is v2).
- Microsoft 365 (the
OfficeSuiteprotocol is there; Google Workspace is the reference). - Multi-tenant hosting. One node is one team.
- Running Relay's own agents. Relay's PM function has no credentials and asks your agent instead.
- A knowledge graph, by default (see above).
Status
Pre-alpha. Both vertical slices (meeting → action → code, and daily updates on behalf of each teammate) are wired end to end and covered by about a hundred tests on SQLite; the compose stack targets Postgres + pgvector and has been validated by CI but not yet booted for real. The Hermes image needs alignment before that first boot; see the roadmap.
Contributing
See CONTRIBUTING.md. Apache-2.0.
From the Agentic Learning AI Lab.