agents
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Agents-MCP
Agents-MCP 是一个本地 MCP 服务,带有网页控制台。它读取已安装 Agent CLI 的模型配置,按任务调度子进程,并保存运行记录和报告。需要 Node.js 22 或更新版本。运行时只使用 Node 标准库。
系统要求
Windows 10/11:文件夹选择器走 PowerShell + WinForms,单文件 exe 走 Node SEA,均为 Windows 实现;macOS / Linux 未测试。
Node.js 22 或更新版本:运行只需要标准库;只有构建 exe 时额外安装 esbuild(开发依赖)。
Agent CLI 按需准备:Codex、Antigravity(
agy)、DeepSeek Harness(dsh)、Pi、OMP 各自安装并登录;缺哪个就在面板里显示不可用,不影响其他 Agent。Grok 与 Claude 的适配器未做真实鉴权校验。首次从源码使用:
npm i(只为构建 exe 安装 esbuild),然后npm test自检、npm run build:exe生成可双击的程序。dist/不进仓库。
Related MCP server: glm-orchestrator
启动
node bin/agents-mcp.js # stdio MCP
node bin/agents-mcp.js --panel # stdio MCP 与本地面板
node bin/agents-mcp.js --mcp=http # HTTP MCP 与本地面板
node bin/agents-mcp.js --selftest # CLI 与模型目录探测面板默认地址为 http://127.0.0.1:4870/,HTTP MCP 使用同一端口的 /mcp。MCP 服务名为 agents。stdio 主机使用 node 作为命令,并将 bin/agents-mcp.js 的绝对路径作为参数。
启动参数 --port N 可覆盖端口,--state-dir DIR 可覆盖状态目录。也可使用 AGENTS_MCP_HOME;默认目录在 Windows 是 %APPDATA%\Agents-MCP,在其他系统是 $XDG_STATE_HOME/agents-mcp,后者回退到 ~/.local/state/agents-mcp。面板设置里的端口在重启后生效。
控制台
Agents 显示探测结果、模型和思考强度。可保存可执行文件路径和每个 Agent 的 HTTP/HTTPS 代理,之后重新检测。
模式 A 选定参与者,填写或生成职责,再定义步骤、依赖和评审循环。成功的步骤可以把产物交给下游。工作目录可以直接输入,也可以点「浏览…」在系统文件夹对话框里选择。
模式 B 指定主 Agent、填写其他 Agent 的专长、设置委派上限。运行记录显示委派树。
运行记录 展示步骤状态、耗时、思考过程、事件、产物和报告,运行期间可取消。
设置 管理任务授权策略、两种模式的开关、端口、默认超时和并发。
思考过程
运行记录里的「思考过程」按步骤展开每个 Agent 的推理内容。能显示到什么程度取决于 CLI 本身:
Agent | 面板显示的内容 |
Claude Code | 流里的 |
Codex | 有 reasoning 摘要时显示正文,否则只显示 |
Antigravity | CLI 只上报 |
DSH / OMP / Pi / Grok | 按各家流事件的 reasoning 字段显示,缺失时只留 token 数。 |
思考正文同时写入该步骤的 steps/<步骤>.md(位于 # Thinking 段),最多保留 64 KiB;面板与报告只读取服务自己的运行目录,不读取 Agent 的私有会话存储。
首次运行一个任务时,服务默认请求人类授权。网页横幅和 MCP 工具使用同一个持久化决定。
Agent 目录来源
Agent | 模型与强度来源 |
Codex |
|
Antigravity |
|
Claude Code | 本地设置、 |
Pi | 本地 |
OMP | 本地 |
Grok |
|
DeepSeek Harness | 官方 |
Agent 启动或探测失败时,面板显示原因和处置提示。Agent 的登录、凭据和配置由各 CLI 自行管理。
预设(模式 A)
模式 A 的参与者、步骤和评审循环由使用者自己填。填好之后可以在「流程编排」页点「保存当前为预设」,下次用下拉框「载入」即可复原;同名保存会覆盖。
预设属于本机个人数据,保存在状态目录的 presets.json(默认 %APPDATA%\Agents-MCP\presets.json),仓库里不带任何预设内容。文件是普通 JSON 数组,每项形如:
[{ "id": "my-flow", "name": "我的流程", "description": "可选说明",
"flow": { "task": "任务文本", "participants": [], "steps": [], "loops": [] } }]flow 与 POST /api/flow/run 的请求体同构(participants 需含 id/agent/model/effort,steps 需含 id/participant/task,loops 用 from/to/until/maxRounds)。最多 50 条;缺字段的条目在读取时会被跳过,不会影响其他预设。
双击启动(单文件 exe)
npm run build:exe # 输出 dist/Agents-MCP.exe双击 Agents-MCP.exe 会在本机启动服务并自动用默认浏览器打开面板 http://127.0.0.1:4870/,配置、授权和运行记录都在这个页面里调整。关闭控制台窗口即停止服务。exe 内嵌 Node 运行时和面板资源,可以复制到任意目录单独使用,不需要安装 Node.js,也不需要仓库文件。
再次双击不会重复启动:检测到本服务已在运行,只打开已有页面。
端口被其他程序占用时,依次向后尝试 10 个端口,全部失败才报错。
启动失败的原因同时写入
%APPDATA%\Agents-MCP\launcher.log。可选参数:
--port N、--state-dir DIR、--no-open(只启动服务、不打开浏览器)、--check(只校验可执行文件)。exe 未做代码签名,首次运行可能出现 SmartScreen 提示,选择"仍要运行"即可。
打包版不含测试 fixture,
AGENTS_MCP_FIXTURES只对源码运行有效;Agent 仍按本机 CLI 的实际登录状态探测。exe 运行时通过 npm 安装的 Agent(如
dsh、pi)会改用 PATH 上的node执行其 shim;缺少 Node.js 时这些 Agent 会显示不可用并提示安装。
接入其它 Agent(MCP)
让 Codex、Claude Code、DSH 直接调用这套工具,不用切窗口:
npm run connect:codex # 写进 ~/.codex/config.toml
npm run connect:claude # 写进 Claude Code 的 user 配置
npm run connect:dsh # 生成 bridge bundle 并装进 DSH profile
npm run connect:codex -- --list # 看当前注册了什么(三个都支持)
npm run connect:claude -- --remove # 撤销(三个都支持)三者启动的都是同一个 node bin/agents-mcp.js --mcp=stdio,共用 %APPDATA%\Agents-MCP 状态目录 —— 面板里跑过的流程、门禁记录、运行记录,在这三个 Agent 里都读得到,反过来也一样。
Codex([mcp_servers.agents-mcp]):默认每次 MCP 调用都会要求批准。想让它免批准:
npm run connect:codex -- --approve这会在 [mcp_servers.agents-mcp] 里加 default_tools_approval_mode = "approve"(只动这一行)。注意:批准意味着 Codex 可以不经询问就派活给别的 Agent、跑会写文件的流程,按需开启。
Claude Code(默认 -s user,即全局):npm run connect:claude -- --scope project 可以改成项目级。注册完 claude mcp list 会做健康检查,正常显示 agents-mcp … √ Connected;工具名是 mcp__agents-mcp__<Tool>。
DSH:
bundle 生成在
%APPDATA%\Agents-MCP\dsh-bundle(带绝对路径,所以不放进仓库)。desktopprofile 归 DSH 窗口所有,启动器拒绝命令行安装:脚本会打印 bundle 路径,从 DSH 的插件页选择“从文件夹安装”即可(DSH 自己也能装)。装好后 DSH 会话里多出
mcp__agents-mcp__agents_list、agents_flow_run、agents_status等工具。桥接进程只开 stdio,不抢占面板端口。
三个都支持 -- --exe PATH 指定找不到的 CLI;脚本会复用适配器的定位逻辑(例如 Codex 的 appx 安装目录)。
验证
npm test
node bin/agents-mcp.js --selftest
node scripts/mcp-smoke.mjsAGENTS_MCP_FIXTURES=1 启用离线 fixture,便于在没有登录真实 Agent 的环境中验证面板。可选 Antigravity 实测需要显式设置 AGENTS_MCP_LIVE=1,再运行 node --test scripts/live-agy.mjs。
适配器契约、MCP 输入形状和状态布局见 架构说明。
许可
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for task-first delegation to remote workstations and workers.
- aXDeprecatedio.github.ax-platform
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Create, browse, remix, collaborate on, and run durable AI workflow nodes from MCP hosts.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables a self-hosted AI workspace with persistent sessions, agent run/step execution logs, unified search across conversations and knowledge, and discovery/invocation of local and remote MCP tools.MIT
- AlicenseBqualityCmaintenanceEnables orchestration of OpenAI-compatible GLM and other model endpoints via MCP, supporting streaming, background runs, cancellation, and local run history, with an optional bridge to other MCP servers.20ISC
- AlicenseBqualityBmaintenanceEnables MCP-compatible clients to delegate complex multi-step programming and research goals to coordinated teams of specialized subagents, with cross-session messaging, swarm and pipeline workflows, sandboxed workspace tools, persistent SQLite state, and a live dashboard.2223 npm2MIT
- AlicenseNot gradedqualityAmaintenanceProvides a provider-agnostic MCP server that runs structured multi-agent workflows by owning task claims, action logs, handoffs, and server-side health gates over a shared filesystem and database. It enables coordinated Explorer, Consultant, Builder, and Reviewer roles with tracked specifications and audited completion evidence.29 npmMIT