Relay
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Relay
Relay gives coding agents one project memory in Meko. For ContextCon Challenge 01, One Memory, Every Coding Agent, Claude Code recorded a private partner API contract in a shared datapack. Codex CLI received the same ticket prompt in both arms. With Relay, it retrieved and cited Claude's decision, then passed 3 of 3 partner checks on its first patch. The baseline passed 1 of 3. Relay also gives agents a cited task brief, a diff review against retrieved rules, and a trace that can link the design to the merge.
Live result · 30 Nov 2026
First patch and handoff | Baseline | Relay |
Partner field and pathname | Fail · | Pass · |
Stable 404 partner error | Fail · | Pass · |
Health endpoint compatibility | Pass | Pass |
Partner checks passed | 1/3 | 3/3 |
Literal rule violations in independent scorer | 0 | 0 |
Claude decision cited by Codex | None |
|
Local merge reported in run summary | — |
|
One run per arm. Both started from the Parcel API demo and used the same implementer prompt. The partner contract was supplied privately to the designer. Run record · Baseline score · Relay score · Codex citation · Claude decision trace
Related MCP server: contextos-memory
Judge in 5 minutes
Read the live evidence. Open the score files above and find the Claude memory ID in the Codex log. See the video script for a timed walkthrough and commands to replay the archived patches.
Try the handoff offline. From
contextcon/relay, run the two PowerShell blocks below. You need Node 22 or later. The demo uses the local Meko stub and simulates the two agent identities with CLI calls.Rerun with your own free Meko API key. Follow the live setup below to run both arms on fresh copies of the demo repo.
Offline stub · two terminals
In the first terminal, leave the stub running.
node relay.mjs stub --sse --port 0In the second terminal, paste the URL printed by the first terminal when prompted.
$env:MEKO_MODE = 'stub'
$env:MEKO_STUB_URL = Read-Host 'Paste the stub URL'
$env:RELAY_AGENT_ID = "relay:judge-$([guid]::NewGuid())"
$env:MEKO_DATAPACK_ID = ''
$env:MEKO_DATAPACK_ID = node relay.mjs datapack-create 'Relay judge demo'
node relay.mjs ingest --repo demo-repo
$decision = node relay.mjs record decision --agent claude_code:parcel --task 'RLY-12 delivery slot' --text 'Use deliverySlot in the success response.' --rationale 'The partner parser reads deliverySlot.' --evidence 'A trial response using eta failed.' | ConvertFrom-Json
node relay.mjs brief 'RLY-12 delivery slot response' --agent codex:parcel --budget 400
node relay.mjs outcome $decision.decisionId --outcome 'Ready for implementation' --evidence 'RLY-12 design handoff'
node relay.mjs explain $decision.decisionIdFind the memory ID from $decision.memoryIds under Prior decisions in the Codex brief and in the Claude trace printed by explain. Stub data clears when the server stops.
Reproduce the live run
Use Git, Node 22 or later, authenticated Claude Code and Codex CLI, and a free Meko API key with write access. Follow the candidate setup in the runbook. Keep the scorer and designer prompt outside both candidate trees. Use a fresh pack name and update the Relay copy's
AGENTS.mdto match it.From the Relay source directory, load
MEKO_API_KEYin the proxy terminal and run the commands below. The archived run's Meko indexer rejected the demoREADME.md. Confirm the style guide and three ADRs reportcompleted. Keep this terminal open.$env:MEKO_MODE = 'live' $env:MEKO_DATAPACK_ID = '' $packName = "Relay Parcel $([guid]::NewGuid())" $env:MEKO_DATAPACK_ID = node relay.mjs datapack-create $packName node relay.mjs ingest --repo demo-repo node relay.mjs proxyEnable the Relay candidate's project MCP config in Claude Code. Configure the Relay Codex session with the
[mcp_servers.relay]entry from the sample Codex config. Codex uses the loopback proxy, whose environment contains the key and datapack ID. For baseline Codex, use a separate config with both Relay and Meko disabled.Start Codex in the baseline candidate and save and score its first patch. In the Relay candidate, give Claude the designer prompt privately. Have Claude save the decision with
relay_recordasclaude_code:parceland capture the returned memory and decision IDs. Start a fresh Codex session in the Relay candidate with the same implementer prompt. The successful archived Relay run used--approve-for-meto enable MCP approval undercodex exec.$prompt = "Implement RLY-12 from docs/TICKET.md. Follow the project's normal workflow. Add and run tests. Tell me when the first complete patch is ready and list what informed the implementation." # Baseline candidate with Relay and Meko disabled $prompt | codex exec --sandbox workspace-write - # Relay candidate with Relay enabled $prompt | codex exec --sandbox workspace-write --approve-for-me -Save and score each first patch before giving feedback. From each candidate, use the runbook's patch capture and scorer commands. Check that Relay Codex called
relay_briefand cited the Claude memory ID. After a verified merge, use the runbook'soutcomeandexplaincommands to attach the new commit ID and inspect the trace. Archived results
Architecture
flowchart LR
Claude["Claude Code · design"] -->|relay_record| Proxy["Relay · loopback MCP proxy"]
Codex["Codex CLI · implementation"] -->|relay_brief / relay_review / relay_record| Proxy
Operator["Operator · Relay CLI"] -->|ingest / outcome / explain| Service["Relay service"]
Proxy --> Service
Service -->|Meko MCP| Pack["One Meko project datapack"]
Pack --- KB["Knowledge base · style guide and ADRs"]
Pack --- Memory["Memory · partner decision and handoff"]
Pack --- Trace["Conversations and decision artifacts"]
Service -.->|Offline mode| Stub["Local Meko stub"]Meko calls in the code
Meko feature and tools | File and function | What Relay does |
Datapack · |
| Creates or lists packs and scopes project calls to the selected ID. |
Knowledge base · |
| Uploads style and architecture docs, polls the indexer, and searches documents for cited review rules. |
Memory · |
| Saves reusable decisions and handoffs with JSON-encoded metadata. Searches the same pack from different agent conversations. |
Context · |
| Collects memory, knowledge, and conversation hits. The brief surfaces |
Conversations · |
| Opens per-agent traces, appends concise rationale and plan fields with memory IDs, adds review and outcome messages, and reads the decision timeline. |
Artifacts · |
| Stores a decision manifest and optional evidence file, then verifies the manifest hash on retrieval. |
Usage · |
| Records the brief size as a characters-divided-by-four token estimate. |
Promotion · |
| Optional explicit promotion via the CLI. The judged handoff used the shared datapack's cross-agent search. |
Self-learning · |
| Optional CLI workflow to inspect low-match queries and replay one after updating the knowledge base. Exercised in stub tests. |
CLI and tests
The CLI and proxy share gitignored .relay/state.json, keyed by Meko endpoint, datapack and agent ID. The proxy binds to loopback and pins project calls to one datapack. The MCP client discovers and validates tool schemas and handles JSON and SSE responses. Meko live API notes
Run node relay.mjs help for commands. To check a unified diff against retrieved literal rules, use node relay.mjs review change.diff --task 'RLY-12'. Review reports the source of each finding and returns exit code 2 if it retrieved zero checkable rules. Behavioral verification uses the separate scorer.
node --test --experimental-test-isolation=none
node bench/run.mjsThe second command runs a separate offline simulation across 12 tasks. Simulation results · Challenge brief · Submission copy · MIT license
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Team memory for AI coding agents and code reviews, reviewed by humans and served over MCP.
Project memory for coding agents: requirements, decisions, code graph and delivery telemetry.
Shared, scoped, reviewable team memory for AI coding agents.
Project memory, documentation and controlled secret access for AI coding agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceLocal-first deterministic project memory for AI coding agents, with context packs, decisions, gates, risks, scoped claims and explicit checkpoints in project-owned files.-
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to share a local-first, versioned memory of decisions, conventions, tasks, conflicts, and handoffs over MCP and REST.MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to maintain local-first project memory, coordinate task ownership across Git worktrees, and verify completion against project-defined checks with durable evidence stored in the repository.1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to read and write team-shared, versioned project memory — atomic claims, numbered ADRs, and long-form docs — over MCP, with a budgeted session-start digest and hybrid search that keep token use low. Agents can also draw on an org-wide shared space written by humans through a web UI.MIT