ATP Librarian MCP Server
Enforces the Agent Task Protocol (.atp.json) contract, enabling worker agents to claim, finish, and decompose tasks while maintaining a valid dependency graph.
README
ATP Librarian MCP Server
This server enforces the Agent Task Protocol (.atp.json) contract so worker agents can claim, finish, and decompose tasks without corrupting the dependency graph. It exposes MCP tools that wrap deterministic updates to the plan file on disk.
Quick start (no clone, uvx)
Add to your MCP client config and update the plan path:
[mcp_servers.atp]
command = "uvx"
args = ["--from", "git+https://github.com/Edgeworthless/atp-mcp-server", "atp-server"]
env = { "ATP_FILE" = "/path/to/your/.atp.json", "ATP_LEASE_SECONDS" = "600" }
uvx downloads/builds on the fly. Tools still require plan_path per call; ATP_FILE is just a default.
Local install
pip install -e .- Run:
python3 main.py - Configure your MCP client to call that command, and pass
plan_pathon every tool call.
Docker (optional)
Build or pull, then mount your plan file:
docker build -t atp-librarian .
docker run --rm -v /path/to/.atp.json:/data/.atp.json -e ATP_FILE=/data/.atp.json atp-librarian
Environment knobs
ATP_FILE: path to the ATP plan file (default.atp.json).ATP_LOCK_FILE: override the lock file path (defaults to<ATP_FILE>.lock).ATP_LEASE_SECONDS: duration before a claimed task is released (default 600s).- Tools accept
plan_pathdirectly; the env vars mainly backstop the status resource or when clients omit the argument.
Available tools
atp_claim_task(plan_path, agent_id): Assigns the highest-priority READY node, recovers zombies, and returns dependency context. Re-enters an existing claim for the same agent.atp_complete_task(plan_path, node_id, report, artifacts=[], status="DONE"): Marks a task DONE or FAILED, clears the lease, and unlocks children whose dependencies are satisfied.atp_decompose_task(plan_path, parent_id, subtasks): Converts a task into a SCOPE with a new subgraph. Subtasks must form a DAG; start nodes inherit the parent’s original dependencies. The parent closes automatically once all new tasks complete.atp_apply_future_patch(plan_path, expected_graph_version, patch, reason, actor_id): Applies bounded future-graph mutations for ATP v1.4 adaptive judge flows. Apply is rejected unless claimed-node count is zero, the graph version matches, terminal/claimed nodes remain untouched, and the candidate graph stays valid.atp_read_graph(plan_path, view_mode="full" | "local", node_id=None): Returns the full JSON graph or a neighborhood view aroundnode_id.
Resource
atp://status/summary: Plaintext dashboard with project status, live claims, and ready tasks for the default plan (ATP_FILEor.atp.jsonin the current working directory).
Graph contract
- Keep the plan as a valid task DAG: each node has
title,instruction,dependencies,status(LOCKED|READY|CLAIMED|COMPLETED|FAILED), plus optionalcontext,reasoning_effort(minimal|low|medium|high|xhigh),artifacts,report, timestamps. - Node statuses:
LOCKED(waiting),READY,CLAIMED,COMPLETED,FAILED. The server will auto-release CLAIMED tasks after the lease window and auto-complete SCOPE nodes produced byatp_decompose_taskonce allscope_childrenfinish. atp_read_graph(..., view_mode="full")includes runtimemeta.graph_versionin its response payload for optimistic concurrency in adaptive judge flows.- ATP v1.4 future-graph mutation is additive. Closed/superseded future nodes are tracked via optional metadata and are not claimable or counted as READY work.
- Dependency integrity is checked on every read/write; missing node references will raise errors instead of silently mutating the file.
Testing
python3 -m compileall main.py
MCP client config example
Example JSON config (Codex-compatible):
{
"mcpServers": {
"atp-librarian": {
"command": "python3",
"args": ["/path/to/atp-mcp-server/main.py"],
"cwd": "/path/to/atp-mcp-server",
"env": {
"ATP_FILE": "/path/to/your/project/.atp.json",
"ATP_LEASE_SECONDS": "600"
}
}
}
}
Tool calls should still provide plan_path (e.g., /path/to/your/project/.atp.json); ATP_FILE just sets a default for the status resource or when a client omits the argument.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。