relay
Click on "Install 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., "@relayTriage ticket #17 and let me know the outcome"
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.
Relay
Live demo: https://relay-agent.fly.dev — the root redirects to a dashboard of real agent runs (cost, latency, outcomes).
An AI support-triage agent, built as a production service — not a notebook.
Relay receives support tickets for a fictional SaaS product (Lanekeep) over a REST API and works each one autonomously: it looks the customer up in a real database, classifies the ticket, searches the product documentation so every claim is grounded, and either sends a resolved reply or escalates to a human with a structured handover — streaming its reasoning steps to the client as server-sent events the whole way.
The agent loop is written by hand on the Claude API (no orchestration framework), so the control flow, step caps, and event stream are fully visible and testable.
Status / roadmap
Phase 1 — Core agent service: FastAPI + SSE, hand-written agent loop, tools (
lookup_customer,search_docs,set_category,send_reply,create_escalation), SQLite with seed data, keyword doc searchPhase 2 — Guardrails: Pydantic-validated tool inputs, per-run cost budget with hard abort, write-tool policy (
?dry_run=true), structured error events on API failure, per-stepusageevents with running costPhase 3 — Evaluation harness: 12-ticket golden dataset, deterministic action/category grading plus LLM-as-judge grounding checks, JSON report artifact, threshold exit code for CI (
python -m relay.evals)Phase 4 — Observability: JSON structured logs, OpenTelemetry spans per run/model-call/tool (OTLP export via
OTEL_EXPORTER_OTLP_ENDPOINT), per-run metrics in SQLite,/metricsaggregates,/dashboardpagePhase 5 — MCP server: the same tool registry (plus ticket lifecycle tools) served over the Model Context Protocol via stdio, behind the same validation and write-policy guardrails
Phase 6 — Ship it: Dockerfile with container healthcheck, GitHub Actions CI (lint + tests + Docker smoke test on every push; on-demand eval workflow with report artifact), Fly.io deploy config
See docs/PROJECT_BRIEF.md for the full project definition.
Related MCP server: Customer Support MCP Server
Quick start
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
cp .env.example .env # add your ANTHROPIC_API_KEY
uvicorn relay.main:app --reloadThen, in another terminal:
./scripts/demo.shYou'll see the agent's run streamed as SSE — text updates, each tool call and its
result, and a final resolution event.
API
Method | Path | Description |
|
| Liveness + configured model |
|
| Create a ticket |
|
| Fetch a ticket |
|
| Run the agent; streams steps as SSE. |
|
| Run counts, outcomes, token/cost totals, latency p50/p95 |
|
| Minimal live dashboard over |
MCP server
The same tools are exposed over the Model Context Protocol, so Claude Desktop, Claude Code, or any MCP client can drive Relay directly:
claude mcp add relay -- /path/to/.venv/bin/python -m relay.mcp_serverTool calls go through the same guardrail chain as the agent loop (Pydantic
input validation + write policy). Set RELAY_MCP_ALLOW_WRITES=false to serve
a read-only surface.
Tests
pytestTests cover the tools and the HTTP surface without calling the Claude API, so they run free and fast in CI.
Architecture
client ──POST /tickets/{id}/process──▶ FastAPI ──▶ agent loop (Claude API)
◀───────── SSE: text / tool_use / tool_result / resolution ─────────┘
│
tools ──▶ SQLite (customers, tickets,
escalations, replies)
└─▶ kb/*.md (docs search)Deployment
CI runs lint, the 37-test suite, and a Docker build + container smoke test on
every push. The eval suite runs on demand (Actions → Evals) against the
ANTHROPIC_API_KEY repository secret and uploads the JSON report as an
artifact.
Deploy to Fly.io with the included fly.toml:
fly launch --no-deploy
fly volumes create relay_data --size 1
fly secrets set ANTHROPIC_API_KEY=sk-ant-...
fly deployOr run the container anywhere:
docker build -t relay .
docker run -p 8000:8000 -e ANTHROPIC_API_KEY=sk-ant-... relayLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceProvides AI agents with operational customer context, including typed revenue objects, persistent state, scoped tools, and human-in-the-loop handoffs through MCP, REST, and CLI.712Apache 2.0
- Alicense-qualityDmaintenanceEnables AI-powered customer support with real-time access to CRM, ticketing, and communication tools via MCP, supporting context-aware conversations and automated actions.Apache 2.0
- Alicense-qualityCmaintenanceExposes FirstReply customer support operations as MCP tools, enabling AI assistants to browse conversations, draft replies, manage API keys, and access support statistics.1MIT
- Alicense-qualityBmaintenanceEnables AI-driven customer support operations including conversation management, knowledge base, contacts, metrics, and settings via MCP.MIT
Related MCP Connectors
Manage SRG+ hubs, channels, content, assets, users, and workspaces from any MCP-aware AI agent.
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
Operator-as-agent MCP hub. 6 tools. First $5 free, then $0.001/call.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/future-beat/relay'
If you have feedback or need assistance with the MCP directory API, please join our Discord server