Subway Server
БесплатноНе проверенLocal MCP server that exposes delegation tools for Codex, Claude, and Antigravity CLI, enabling an orchestrator agent to assign tasks to these sub-agents via no
Описание
Local MCP server that exposes delegation tools for Codex, Claude, and Antigravity CLI, enabling an orchestrator agent to assign tasks to these sub-agents via non-interactive CLI commands.
README
CI License: MIT Node.js >= 18 MCP Coverage
MCP server local que expone codex, claude (Claude Code) y agy (Antigravity) como tools de delegación, para que un agente orquestador les reparta tareas vía CLI en modo no interactivo.
Tools
delegate_to_codex—codex execdelegate_to_claude—claude -p --output-format jsondelegate_to_agy—agy -p
Todas comparten el mismo input:
| Campo | Tipo | Default | Descripción |
|---|---|---|---|
prompt |
string | — | instrucciones para el sub-agente |
cwd |
string | cwd del server | directorio de trabajo absoluto |
model |
string | el default de cada CLI | override de modelo |
timeout_seconds |
number | 600 (máx 1800) | mata el proceso si excede |
auto_approve |
boolean | false | evita prompts de permisos de la CLI (necesario para casi cualquier tarea real, porque no hay terminal para aprobar) |
Output: { success, final_message, exit_code, timed_out, stderr? } (stderr solo si success=false).
Build
npm install
npm run build
Tests
npm test
Cubre cliRunner (spawn, captura de stdout/stderr, cwd, timeout, comando inexistente) y la construcción de argumentos/parseo de salida de cada tool (argBuilders), sin invocar los CLIs reales de pago.
Cobertura local: npm run coverage. En CI, el job coverage la calcula en cada push a master y commitea badges/coverage.json (leído por el badge del README vía shields.io endpoint) — delegate.ts e index.ts quedan en 0% porque solo se ejercitan invocando los CLIs reales, fuera del alcance de estos tests.
Registrar en Claude Code
claude mcp add subway -- node D:/Repo/subway/dist/index.js
Ejemplo de uso
Una vez registrado, desde cualquier sesión de Claude Code en el proyecto podés pedirle al agente que delegue directamente, por ejemplo:
Delegá a agy: "Reply with exactly: PONG", con auto_approve true
Eso dispara una llamada al tool mcp__subway__delegate_to_agy con:
{
"prompt": "Reply with exactly: PONG",
"auto_approve": true
}
y devuelve:
{
"success": true,
"final_message": "PONG",
"exit_code": 0,
"timed_out": false
}
Mismo patrón para delegate_to_codex y delegate_to_claude, cambiando solo el nombre del tool. Para correr en otro directorio o con otro modelo:
{
"prompt": "Corré los tests y reportá cuáles fallan",
"cwd": "D:/Repo/otro-proyecto",
"model": "claude-opus-4-8",
"auto_approve": true,
"timeout_seconds": 900
}
Notas
- Requiere que
codex,claudeyagyestén en el PATH y ya autenticados en la máquina. - No hay gate de verificación (CCDD) ni orquestación de multi-tarea acá — es solo el mecanismo de delegación. Componer lógica de PM/orquestación por encima queda del lado del agente que use este MCP.
Установка Subway Server
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/MauricioPerera/subway-mcp-serverFAQ
Subway Server MCP бесплатный?
Да, Subway Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Subway Server?
Нет, Subway Server работает без API-ключей и переменных окружения.
Subway Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Subway Server в Claude Desktop, Claude Code или Cursor?
Открой Subway Server на 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 Subway Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
