agy-bus-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGY_BIN | No | agy CLI 可执行文件路径。 | 自动探测(which agy) |
| AGY_NOTIFY | No | 完成后发送 macOS 原生通知(0 关闭)。 | 1 |
| AGY_BUS_DIR | No | SQLite 数据库与日志目录。 | <项目目录>/.agy_bus |
| AGY_MAX_WORKERS | No | 最大并发执行线程数。 | 2 |
| AGY_TASK_TIMEOUT | No | 单任务超时时间(秒)。 | 1800 |
| AGY_POLL_INTERVAL | No | 队列轮询间隔(秒)。 | 1.5 |
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": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| enqueue_taskA | 将一条编码或执行任务入队,由后台 Worker 异步调用本地 agy CLI 执行。 Enqueue a task into the local agy-bus SQLite queue for asynchronous execution by the background Worker. Args: prompt: 给 agy 的完整任务指令(建议包含目标、约束与验收标准)。 cwd: 目标工作目录(如 Git 仓库绝对路径);同目录任务会自动串行互斥,不同目录并发执行。 mode: agy 执行权限模式,可选 "accept-edits"(默认)、"auto"、"plan"。 use_sandbox: 是否开启 agy --sandbox 终端限制(默认 True)。 conversation_id: 可选,传入既有会话 ID 以通过 --conversation 续接上下文;留空表示新会话。 model: 可选,指定 agy 使用的模型名称(对应 --model);留空使用默认模型。 effort: 可选,指定推理强度:low / medium / high / xhigh / max(对应 --effort)。 agent: 可选,指定 agy Agent 名称(对应 --agent)。 add_dirs: 可选,附加到工作区的额外目录路径列表(对应可重复的 --add-dir)。 Returns: 包含 task_id、status 与 log_path 的入队回执(毫秒级返回)。 |
| get_task_statusA | 查询指定任务的执行状态、退出码、精简摘要(<=1500字)、会话 ID 与日志路径。 Query status, exit code, concise summary, conversation ID, and log file path for a task. 默认遵循“传引用不传全文”原则;仅在需要排障时将 include_log_tail 设为 True。 对于短任务,可设置 wait_seconds(1~20)让服务端短暂等待至结束再返回,减少轮询次数。 Args: task_id: enqueue_task 返回的任务 ID。 include_log_tail: 是否附带完整日志文件的末尾若干行(默认 False)。 tail_lines: 当 include_log_tail=True 时返回的末尾行数(默认 40,上限 500)。 wait_seconds: 可选,最多阻塞等待的秒数(0 表示立即返回,上限 20 秒)。 |
| list_tasksB | 列出最近的任务概览(含截取后的 prompt 预览)。 List recent tasks with truncated prompt previews. Args: limit: 返回的最大任务数(默认 10,上限 200)。 status: 可选状态过滤:pending / running / done / failed / cancelled;留空表示不过滤。 |
| cancel_taskB | 取消尚处于 pending 状态的任务(已在运行或已结束的任务无法取消)。 Cancel a task that is still in 'pending' status. Args: task_id: 要取消的任务 ID。 |
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 4 tools
Each tool targets a distinct queue operation: enqueue, list, cancel, and detailed status. The boundary between list_tasks (multi-task overview) and get_task_status (single-task detail) is clear from descriptions and arguments.
All names follow a consistent snake_case verb_noun pattern: enqueue_task, list_tasks, cancel_task, get_task_status. The naming is predictable and readable.
Four tools are well-scoped for a queue-management server, covering creation, listing, cancellation, and status inspection. No tool feels redundant or out of place.
The core task lifecycle is covered: enqueue, list, inspect status, and cancel. Minor gaps exist around retrying failed tasks, purging completed tasks, or retrieving logs separately, but the included log-tail option mitigates most debugging needs.