超级代理MCP
SuperAgent是一个模型上下文协议(MCP)服务器,它将MCP兼容客户端与Codex、Gemini和Continue CLI代理连接起来。它允许您并行展开多个CLI任务,重用精心策划的系统提示,并在单个结构化响应中将结果显示回客户端。
主要特点
- 统一代理运行器:将Codex、Gemini和Continue CLIs作为MCP工具公开,无需额外的包装器。
- 并行执行:同时运行多个提示,每个任务超时和基本结果格式化。
- 代理库同步:安装到中的现成系统提示
~/.superagent/agents并且可以在本地扩展。 - 工具发现:查询捆绑
list-agents工具,查看运行时哪些专用代理可用。
安装
npm install @superclaude-org/superagent安装后脚本为以下任何缺失的代理定义文件添加种子 ~/.superagent/agents 所以他们马上
连接后,客户端将发现这些工具:
| 工具 | 目的 | 值得注意的论点 |
|---|---|---|
codex | 并行运行一个或多个Codex CLI任务。 | inputs[] (提示列表), concurrency, workingDirectory, agent, extraArgs, timeoutMs |
gemini | 在启用自动审批的情况下运行Gemini CLI任务。 | inputs[], concurrency, workingDirectory, agent, timeoutMs |
continue | 使用无头模式运行Continue CLI任务。需要 CONTINUE_CONFIG_PATH 环境变量。 | inputs[], concurrency, workingDirectory, agent, timeoutMs |
list-agents | 列出所有工具可用的专业代理。 | *(无)* |
调用工具
{
"tool": "codex",
"arguments": {
"concurrency": 2,
"inputs": [
{ "prompt": "Run unit tests", "workingDirectory": "/path/to/app" },
{ "prompt": "Summarize latest git changes", "agent": "technical-writer" }
]
}
}代理管理
- 代理定义是带有frontmatter的Markdown文件。您可以在中编辑或添加新文件
~/.superagent/agents. - 这
list-agents该工具显示每个代理的名称和描述,以便您可以提供agent调用时的字段codex,gemini,或continue. - 仅当包中附带的文件不存在时,才会复制这些文件,从而保留本地自定义设置。
继续配置
要使用 continue 工具,设置 CONTINUE_CONFIG_PATH 指向Continue配置文件的环境变量:
export CONTINUE_CONFIG_PATH="/path/to/.continue/config.yaml"这可以在MCP客户端配置中设置 env 部分。
发展
npm install
npm run build
npm start # runs the compiled server
npm run dev # runs the TypeScript entrypoint with ts-node需要Node.js 18或更高版本。
