Agent Relay
БесплатноНе проверенMCP client for AgentRelay, enabling local Codex agents to communicate with an AgentRelay HTTP relay for agent orchestration and task management.
Описание
MCP client for AgentRelay, enabling local Codex agents to communicate with an AgentRelay HTTP relay for agent orchestration and task management.
README
Installable MCP client and local inbox/notifier for AgentRelay.
The MCP tools prefer AgentRelay Protocol v0.3:
- create tasks with
requester_agent_id,target_agent_id, messageintent,task_type, andnext_action - submit artifacts with
actor_agent_id,target_agent_id, artifactintent, and artifactsummary - send v0.3 transport fields such as
idempotency_key,pending_on_agent_id, andnext_status - prepare requester-side completion decisions before close
- close with
completion_authority.type = humanwhen the human owner made the final decision - keep legacy
from/toaliases working during migration
The default local experience is:
- install this repo into the current Codex thread workspace as
agentRelay - configure the AgentRelay MCP server
- run a local WebSocket listener
- write received Relay events into a durable local inbox
- use
http://127.0.0.1:8787/as the personal AgentRelay inbox/notifier - show pending work and prepare safe copyable prompts for the user's chosen local agent
- avoid automatically invoking the user's local agent unless the user explicitly opts in
The private AgentRelay cloud/server repo remains private. This repo only contains the public local client, local inbox, UI, install scripts, and MCP server.
Quick Install For A Local Agent
When a user asks a local Codex agent to install AgentRelay MCP, use the one-command installer:
npx github:ZilingXie/agent-relay-mcp install
The npx command installs or updates a stable local checkout at ~/agentRelay, then runs the default local inbox installer from that checkout. To choose another stable checkout path:
npx github:ZilingXie/agent-relay-mcp install -- --install-dir /absolute/path/to/agentRelay
To pass known non-secret identity fields:
npx github:ZilingXie/agent-relay-mcp install -- --agent-id zac-agent --username zac
The installer preserves an existing .env and installs the default local inbox path:
- writes the Codex MCP managed block into
~/.codex/config.toml - creates
.envif it does not exist - preserves existing
.envsecrets if the file already exists - writes local inbox defaults into
.env - creates
state/issues.jsonandstate/task-drafts.json - configures the WebSocket listener hook to call
scripts/agentrelay-inbox-intake.mjs - installs the inbox UI service at
http://127.0.0.1:8787/ - defaults to
personal_agent+notify_only - disables automatic processor/executor on receive
- starts the listener service only if a non-placeholder token is already available
After install, the agent should tell the user to fill .env and restart Codex App or open a new Codex session. Do not print AGENTRELAY_TOKEN.
Required .env
Ask the AgentRelay cloud/server admin for:
AGENTRELAY_BASE_URL
AGENTRELAY_WS_URL
AGENTRELAY_AGENT_ID
AGENTRELAY_USERNAME
AGENTRELAY_TOKEN
The local inbox managed block is written by the installer. It points listener delivery at the local inbox:
AGENTRELAY_INBOX_DIR="/absolute/path/to/agentRelay/.agentrelay/inbox"
AGENTRELAY_STATE_DIR="/absolute/path/to/agentRelay/state"
AGENTRELAY_LISTENER_HOOK="'/path/to/node' '/absolute/path/to/agentRelay/scripts/agentrelay-inbox-intake.mjs'"
AGENTRELAY_AGENT_ROLE="personal_agent"
AGENTRELAY_EXECUTION_MODE="notify_only"
AGENTRELAY_ACK_ON_INBOX_RECEIVED=1
AGENTRELAY_PROCESS_INBOX_ON_RECEIVE=0
AGENTRELAY_EXECUTE_INBOX_ON_RECEIVE=0
AGENTRELAY_INBOX_UI_HOST="127.0.0.1"
AGENTRELAY_INBOX_UI_PORT="8787"
Verify After Restart
Only after the user says .env is filled and Codex was restarted/new-sessioned:
npm run doctor
Then verify the MCP tools in the restarted Codex session:
Use AgentRelay MCP. Call agentrelay_health and agentrelay_list_agents.
Finally, run the hosted install loopback check:
npm run health:install
The install is successful when the script creates an agentrelay-healthcheck
task, receives the synthetic ACK, sees the task in http://127.0.0.1:8787/,
and closes the health check task. This verifies MCP auth, AgentRelay HTTP,
WebSocket/local listener delivery, local inbox state, and close permissions
without depending on Project Hermes being available.
A real project-hermes task is still useful as an optional E2E collaboration
test. If that fails after health:install passes, debug Hermes or its adapter;
the local MCP install itself is already healthy.
Daily Use
Open:
http://127.0.0.1:8787/
The user should only need to:
- create tasks
- provide extra information when the local agent asks
- approve/accept completed work
- tune
templates/local-inbox/AGENTS.mdwhen product local-agent behavior should change
The local agent should:
- receive Relay events via listener
- write durable local issue state before ACK, including a
localWorkflowBindingthat maps the Relay task to this local inbox without forcing Codex App, CLI, Slack, WeChat, or another UI - display pending task context in the inbox UI
- prepare safe prompts the user can copy into Codex App, Codex CLI, Slack, WeChat, or another local agent workflow
- ask the user before commitments, sensitive disclosures, external replies that represent user decisions, task amendment, and task closure
Automatic local processing is opt-in. To experiment with it after reviewing the safety policy, set:
AGENTRELAY_PROCESS_INBOX_ON_RECEIVE=1
AGENTRELAY_EXECUTE_INBOX_ON_RECEIVE=1
For Hermes-like always-on workers, use a service-agent worker kit pattern: listener, launcher, worker loop, artifact submitter, ack handling, logs, and an unavailable fallback. Do not use the personal notifier default as an autonomous worker without an explicit owner/scopes/policy review.
Available MCP Tools
agentrelay_healthagentrelay_protocol_syncagentrelay_list_agentsagentrelay_get_agent_cardagentrelay_create_taskagentrelay_resync_local_taskagentrelay_prepare_local_actionagentrelay_claim_taskagentrelay_pending_tasksagentrelay_claim_task_by_idagentrelay_set_target_threadagentrelay_submit_artifactagentrelay_amend_taskagentrelay_mark_deliveryagentrelay_update_statusagentrelay_prepare_completion_decisionagentrelay_close_taskagentrelay_get_taskagentrelay_get_eventsagentrelay_ack_event
See docs/tool-reference.md.
Scripts
npx github:ZilingXie/agent-relay-mcp install
npm run install:local # default install: MCP + local inbox + UI
npm run doctor # verify local config and relay connectivity
npm run protocol:sync # fetch/cache current protocol schemas, examples, and docs
npm run health:install # verify hosted install loopback + local inbox delivery
npm run listener # run WebSocket listener in foreground
npm run inbox-ui # run local inbox UI in foreground
npm run task-index:rebuild # rebuild the local UI index from task workspaces
npm run processor # advanced opt-in: run local LLM processor once
npm run executor # advanced opt-in: run structured action executor once
npm run check # syntax and unit tests
npm test # check + MCP smoke test
When the relay reports patchable protocol drift, the MCP client syncs the current bundle automatically. For safe task create and artifact submit requests, it also updates the request protocol version and retries once while preserving the idempotency key. Task amendments and closes still return review guidance because they can change goals or completion authority.
Legacy Codex App Thread Receiver
The old Codex App thread receiver remains in examples/codex-app-inbox for reference, but it is no longer the default receive path. New installs should use the local inbox UI instead of creating Codex App threads per task.
Docs
INSTALL_FOR_CODEX.md: direct install instructions for a local Codex agent.docs/codex-install.md: human-readable install guide.docs/auth.md: username/token auth model.docs/local-agent-verification.md: post-install verification.docs/tool-reference.md: MCP tool reference.docs/completion-decision-workflow.md: requester-side close, human authority, and revision decision workflow.docs/security.md: security notes.templates/local-inbox/AGENTS.md: shipped product Local Inbox agent behavior template.
Установка Agent Relay
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/ZilingXie/agent-relay-mcpFAQ
Agent Relay MCP бесплатный?
Да, Agent Relay MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Agent Relay?
Нет, Agent Relay работает без API-ключей и переменных окружения.
Agent Relay — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Agent Relay в Claude Desktop, Claude Code или Cursor?
Открой Agent Relay на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Notion
Read and write pages in your workspace
автор: NotionLinear
Issues, cycles, triage — from Claude
автор: LinearGoogle Drive
Search and read your Drive files
автор: Googlemindsdb/mindsdb
Connect and unify data across various platforms and databases with [MindsDB as a single MCP server](https://docs.mindsdb.com/mcp/overview).
автор: mindsdbCompare Agent Relay with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории productivity
