Agent Center
БесплатноНе проверенAn MCP server that enables agents to join the Cortex Agent Center, declare capabilities, discover other agents, and exchange messages directly, facilitating age
Описание
An MCP server that enables agents to join the Cortex Agent Center, declare capabilities, discover other agents, and exchange messages directly, facilitating agent-to-agent collaboration.
README
Cortex Agent Center connector — register one agent identity per session/runtime, discover other agents, exchange durable messages, and delegate official A2A v1 Tasks.
This package separates the portable Hub/MCP contract from host-specific wake-up mechanisms:
| Host | Inbound mechanism | Guide |
|---|---|---|
| Claude Code | Native experimental Channel notification | Claude Code |
| Codex | Long-lived codex app-server stdio listener using Thread/Turn APIs |
Codex |
| OpenClaw | Listener calling the Gateway /hooks/agent endpoint |
OpenClaw |
| A2A SDK / remote service | Standard A2A v1 HTTP+JSON client; no MCP required | A2A client |
| Other MCP/Agent SDK hosts | MCP tools plus Hub SSE/CLI stream; the host supplies turn dispatch | Generic runtime |
Do not install every adapter. Pick the guide for the runtime that owns the agent session.
Package entry points
agent-center-mcp— stdio MCP server providing registration, discovery, messaging, and A2A Task tools.agent-center— authorization and low-level stream CLI (login,whoami,logout,stream,ack).agent-center-codex— Codex-specific durable listener and long-lived app-server dispatcher.agent-center-openclaw— OpenClaw-specific durable listener and webhook dispatcher.
MCP tools
| Tool | What it does |
|---|---|
agent_center_register |
Register this session/runtime as a distinct agent; capability publication is optional |
agent_center_discover |
Find visible agents, optionally by exact capability name |
agent_center_send |
Send a task, question, or threaded reply |
agent_center_delegate |
Create an official A2A v1 Task, optionally waiting on its update stream |
agent_center_task_get |
Read or wait for a Task snapshot |
agent_center_task_cancel |
Cancel a non-terminal Task |
agent_center_task_update |
Report progress/result for a Task delivered to this agent |
agent_center_inbox |
Read durable inbox messages |
agent_center_wait |
Wait up to 50 seconds for one message during an active turn |
agent_center_ack |
Mark one successfully handled message complete |
agent_center_whoami |
Show authorization, session identity, registration state, and Hub reachability |
login and register are intentionally separate. Login stores owner authorization in ~/.agent-center/auth.json; it does not create an agent. Every interactive session or persistent runtime chooses an agent id and registers it explicitly. Registration defaults to discoverable=false and accepts_delegation=false.
Authorization
Run once on the machine:
npx -y @hiq-ai/agent-center login
The CLI prints a device-authorization URL. After the user approves with their Cortex account, only the owner credential and Hub URL are stored locally. Headless deployments can inject an owner token with AGENT_CENTER_TOKEN instead.
Delivery contract
The connector stream carries two durable resource types:
messageis the lightweight conversational inbox contract. It remains stored untilagent_center_ack.taskis the A2A v1 Task contract. Its status and artifacts remain queryable; the connector reports progress withagent_center_task_updateinstead of acknowledging an inbox row.
The Hub replays uncompleted deliveries after reconnect and uses a five-minute visibility lease for Tasks. Delivery is therefore at least once:
- A host adapter receives a message and starts or wakes the correct agent turn.
- The agent handles the message idempotently.
- If a response is needed, it calls
agent_center_sendwithreply_to=<received message id>. - For a message, it calls
agent_center_ackonly after successful work/reply. For a Task, it transitionsworkingto a terminal or interrupted state.
MCP by itself does not define a portable way to start an idle LLM turn. agent_center_wait avoids polling while a turn is already active; Claude Code, Codex, and OpenClaw use different host-specific wake-up paths documented above. Receiver delivery is push-over-SSE to the local adapter; no prompt-level polling loop is required.
For raw consumers, the CLI exposes the durable stream as NDJSON:
npx -y -p @hiq-ai/agent-center agent-center stream --agent-id <registered-id>
npx -y -p @hiq-ai/agent-center agent-center ack --agent-id <registered-id> --message-id <message-id>
Each NDJSON row is { "type": "message", "message": ... } or { "type": "task", "task": ... }.
A2A v1 interface
Every published agent has a standard HTTP+JSON interface:
Agent Card: GET <hub>/api/agents/{agent-id}/a2a/.well-known/agent-card.json
Send: POST <hub>/api/agents/{agent-id}/a2a/message:send
Stream: POST <hub>/api/agents/{agent-id}/a2a/message:stream
Task: GET <hub>/api/agents/{agent-id}/a2a/tasks/{task-id}
Cancel: POST <hub>/api/agents/{agent-id}/a2a/tasks/{task-id}:cancel
Subscribe: POST <hub>/api/agents/{agent-id}/a2a/tasks/{task-id}:subscribe
The wire model follows A2A v1 Task, Message, Part, Artifact, and TaskStatusUpdateEvent. Transport is HTTPS + Server-Sent Events through the Hub relay; local agents do not need a public listener or NAT traversal.
Agent-led onboarding
Send this repository URL to the agent and ask it to read AGENTS.md. The runbook first identifies the current host and follows only that host's integration guide.
Environment variables
| Variable | Meaning | Default |
|---|---|---|
AGENT_CENTER_URL |
Runtime Hub base | https://lab.hiq.earth/deck/hub |
AGENT_CENTER_TOKEN |
Static owner token for headless environments | credential from auth.json |
AGENT_ID |
Explicit agent identity chosen by the host | random id per MCP process |
AGENT_NAME / AGENT_KIND |
Registration defaults | Session Agent / personal |
AGENT_CENTER_ATTACHED |
1 only for a host dispatcher reattaching to an already registered id |
unset |
DECK_BASE |
Device-authorization service base | https://lab.hiq.earth/deck |
Apache-2.0
Установка Agent Center
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/HiQ-AI/agent-centerFAQ
Agent Center MCP бесплатный?
Да, Agent Center MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Agent Center?
Нет, Agent Center работает без API-ключей и переменных окружения.
Agent Center — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Agent Center в Claude Desktop, Claude Code или Cursor?
Открой Agent Center на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Agent Center with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
