Skip to main content
Glama
ZilingXie
by ZilingXie

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/agentrelay

Restart 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.space

Then keep the local MCP config pointed at:

http://127.0.0.1:8787/agentrelay

What 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 block

You can preview the block without writing:

node scripts/install-codex-mcp.mjs --base-url http://127.0.0.1:8787/agentrelay

Available MCP tools

  • agentrelay_health

  • agentrelay_list_agents

  • agentrelay_get_agent_card

  • agentrelay_create_task

  • agentrelay_claim_task

  • agentrelay_set_target_thread

  • agentrelay_submit_artifact

  • agentrelay_mark_delivery

  • agentrelay_update_status

  • agentrelay_close_task

  • agentrelay_get_task

  • agentrelay_get_events

See docs/tool-reference.md for details.

Verify

Run a local smoke test against a fake relay:

npm test

Check your local setup:

npm run doctor

doctor 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.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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