agent-ex
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGENT_EX_HOME | No | Overrides the data directory. Defaults to ~/.agent-ex, which holds config.json and the .env file (mode 600) that is auto-loaded at startup and supplies the values for {env:VAR} placeholders used in config.json. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| agent_ex_submitA | 派发编码任务给外部 worker(detached runner),立即返回 task_id,不阻塞。 prompt 需包含完整上下文、约束与验收标准——worker 不共享当前会话上下文。 任务已提交,卡住/完成会推飞书,无需轮询。 同一 project_path 的写任务并发会互相踩文件——plan 负责串行派发或确保改动文件不重叠;只读分析任务不受此限,可并行。 对 needs_input 任务答疑续跑时传 continue_of=task_id,prompt 填答案,worker 将带着原上下文继续。 切到当前默认档(defaults.profile)以外的计费档 profile 时必须传 allow_metered=true,且只在用户本轮明确指定该 profile 或明确同意付费时传——429、额度上限、超时、失败都不构成同意。 |
| agent_ex_statusA | 查询任务状态。无参数调用返回全部进行中的任务,用于一次性概览; needs_input 任务会返回 question 字段。 include_finished=true 时连已结束的任务(completed/failed/cancelled)一起列,按创建时间倒序—— 会话重启或上下文压缩后要认回「上次派的任务」时用它(默认列表里只有进行中的任务)。 |
| agent_ex_cancelA | 取消任务(状态感知、幂等):running 杀整个进程组;已终态则原样返回当前状态。 若返回带warning,说明进程树快照不可用(ps 被拒),组外逃逸的 agent 子进程可能残留。 |
| agent_ex_versionA | 返回当前 MCP server 构建元数据(version / gitSha / buildTime),用于确认重启后新代码已生效。 构建信息缺失时返回 unknown。 |
| agent_ex_doctorA | 体检:把「通知到底通不通」的证据聚合成结论 + 病因 + 修复命令。 查三类问题:config 本身(关键词/dry_run/webhook/默认profile)、executor 的 bin 是否可执行、 历史通知失败(扫 runner 日志里的飞书拒收记录,按 code 聚合)。 send=true 会额外实发一张正文不含产品名的自检卡——验证通知必须用它, 因为飞书关键词闸门匹配整张卡片,拿真实任务报告当探针会假通过。 |
| agent_ex_restartA | 主动重启当前 MCP server 进程(process.exit,由 host 自动 respawn 并加载当前 dist)。 server 无状态、in-flight worker 在独立进程组,重启安全;只重启调用方这条连接,不影响其他 live server 或在跑任务。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
The six tools map to clearly different actions: dispatch (submit), inspect (status), stop (cancel), plus server ops (restart, version, doctor). The only mild overlap is between version and doctor, since both are 'check the system' tools, but their descriptions distinguish build metadata from notification/executor health clearly.
All tools share a consistent agent_ex_ snake_case prefix and use short, predictable suffixes. The only deviation is mixing verbs (submit, restart, cancel) with noun-style query names (status, version, doctor), which is a common and readable convention rather than an inconsistency.
Six tools sit squarely in the well-scoped range for a task-orchestration MCP server. Each tool covers a distinct concern (dispatch, inspect, cancel, restart, version, diagnostics) and none feels redundant or bolted on.
The task lifecycle is fully covered: submit, status (including finished tasks and needs_input questions), cancel, and continuation via continue_of. Operational concerns (restart, version, doctor) round it out; the main minor gap is no dedicated per-task log/result retrieval tool, relying on status or runner logs instead.