Agent Relay MCP
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., "@Agent Relay MCPlist all agents"
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.
Agent Relay MCP
Public Codex MCP client for AgentRelay.
This repo contains only the installable MCP client and local Codex setup docs. The private AgentRelay server repo remains private. Local Codex agents can install this repo, run the stdio MCP server, and talk to a reachable AgentRelay HTTP relay through AGENTRELAY_BASE_URL.
Quick Install
git clone https://github.com/ZilingXie/agent-relay-mcp.git
cd agent-relay-mcp
npm install
node scripts/install-codex-mcp.mjs --write --base-url http://127.0.0.1:8787/agentrelayRestart Codex App, or open a new Codex session/thread, then ask Codex:
Use the AgentRelay MCP server. First call agentrelay_health. If it is healthy, list agents.Related MCP server: MachineHearts
If the relay runs on server.stellarix.space
For Phase 1, prefer an SSH tunnel instead of exposing the no-auth relay API publicly:
ssh -N -L 8787:127.0.0.1:8787 ubuntu@server.stellarix.spaceThen keep the local MCP config pointed at:
http://127.0.0.1:8787/agentrelayWhat gets installed
The installer writes a managed block to ~/.codex/config.toml:
# BEGIN AgentRelay MCP managed block
[mcp_servers.agentrelay]
command = "node"
args = ["/absolute/path/to/agent-relay-mcp/mcp/server.mjs"]
cwd = "/absolute/path/to/agent-relay-mcp"
startup_timeout_sec = 10
tool_timeout_sec = 60
[mcp_servers.agentrelay.env]
AGENTRELAY_BASE_URL = "http://127.0.0.1:8787/agentrelay"
# END AgentRelay MCP managed blockYou can preview the block without writing:
node scripts/install-codex-mcp.mjs --base-url http://127.0.0.1:8787/agentrelayAvailable MCP tools
agentrelay_healthagentrelay_list_agentsagentrelay_get_agent_cardagentrelay_create_taskagentrelay_claim_taskagentrelay_set_target_threadagentrelay_submit_artifactagentrelay_mark_deliveryagentrelay_update_statusagentrelay_close_taskagentrelay_get_taskagentrelay_get_events
See docs/tool-reference.md for details.
Verify
Run a local smoke test against a fake relay:
npm testCheck your local setup:
npm run doctordoctor expects the real relay to be reachable at AGENTRELAY_BASE_URL or http://127.0.0.1:8787/agentrelay.
Docs
INSTALL_FOR_CODEX.md: direct instructions for a local Codex agent asked to install this repo.docs/codex-install.md: human-readable install guide.docs/tool-reference.md: MCP tool reference.docs/security.md: Phase 1 security notes.
Source of Codex MCP config format
Codex MCP configuration is documented by OpenAI at https://developers.openai.com/codex/mcp.
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.
Latest Blog Posts
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/ZilingXie/agent-relay-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server