
Task Graph Mcp
io.github.Oortonaut由 GitHub 帳號 Oortonaut 發布v0.3.0更新於 Oct 25, 2026
MCP server for agent task workflows with phases, prompts, gates, and multi-agent coordination
概覽
本機 MCP 伺服器,為 AI 代理提供共享的 SQLite 任務圖,支援階段、閘門、相依性與多代理協作。
- 可以做什麼
- 註冊與管理工作節點、工作流程與疊加層,包括清理過期節點和依標籤路由,適用於平行、接力或階層式協作的代理。建立、讀取、更新、刪除、重新命名和搜尋任務,支援巢狀任務樹以及對任務和附件的全文檢索。建立與移除 blocks、follows、contains 等具型別的相依性,並依標籤要求原子化認領任務。透過即時狀態廣播、狀態變更歷史、token/成本/時間指標和代理間回饋追蹤進度。以建議性檔案標記和變更輪詢協調檔案編輯,並把提交、差異、筆記或媒體附加到任務上。在狀態或階段轉換前檢查閘門,讀取工作流程提示、技能和文件資源。
- 適用情境
- 當多個 AI 代理,或一個依階段推進的代理,需要持久共享的任務、相依性和歸屬記錄,並希望在步驟之間強制品質閘門和交接提示時使用。適合只需一個 SQLite 檔案、不想執行資料庫伺服器的本機開發流程。
- 執行需求
- 以桌面本機程序執行;可透過 cargo 或適用於 Linux、macOS、Windows 的預先編譯二進位檔安裝,並加入 MCP 用戶端設定。資料存放在本機 SQLite 檔案中,可透過設定檔或 TASK_GRAPH_CONFIG_PATH、TASK_GRAPH_DB_PATH、TASK_GRAPH_MEDIA_DIR、TASK_GRAPH_LOG_DIR 環境變數指定。未宣告驗證或外部帳號。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Task Graph Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Task Graph MCP Server
Agent task workflows that actually work.
When you have AI agents working on complex tasks, things go wrong fast. Agents lose context, skip steps, forget to coordinate. Task Graph solves this with structured workflows: phases to guide work, prompts for automatic guidance, gates to enforce quality, and coordination primitives for multi-agent scenarios—all through the Model Context Protocol.
Why Task Graph?
The problem: You've got complex tasks that need structured execution. Maybe a single agent working through phases, or multiple agents coordinating in parallel. Without proper workflows, agents lose track, skip steps, and produce inconsistent results.
What you get:
- Structured workflows — Phases (explore, implement, review, test) guide agents through work. Transition prompts provide automatic guidance at each step.
- Quality gates — Require tests to pass, code to be committed, or reviews to complete before transitions. Enforce your standards automatically.
- Ready-to-use topologies — Pre-built workflows for solo work, parallel swarms, specialist relays, or hierarchical delegation. Start immediately, customize later.
- Configurable workflows — Define your own states, phases, prompts, and gates. Match your process, not ours.
- Multi-agent coordination — Advisory file locks, DAG dependencies, atomic claiming. No more conflicts or duplicate work.
- Token-efficient — Designed for LLM context limits. Compact queries, minimal round-trips, structured outputs.
- Built-in accounting — Track tokens, cost, and time per task. Know exactly what your agents are spending.
- Zero infrastructure — SQLite with WAL mode. No database server to run. Just point at a file.
Features
Quick Start
Installation
From crates.io (Recommended)
Pre-built Binaries
Download the latest release for your platform from GitHub Releases:
Extract and place the binary in your PATH.
From Source
The binary will be at target/release/task-graph-mcp.
Usage
As an MCP Server
Add to your MCP client configuration:
CLI Options
Configuration
Full reference: See docs/CONFIGURATION.md for complete configuration documentation including workflows, prompts, gates, roles, and tags.
Create .task-graph/config.yaml:
States Configuration
Task states are configurable. Default states: pending, working, completed, failed, cancelled.
To add a ready state for auto-advance:
See SCHEMA.md for full documentation on state definitions.
Dependencies Configuration
Dependency types define how tasks relate to each other. Default types: blocks, follows, contains, duplicate, see-also, relates-to.
Attachments Configuration
Preconfigured attachment keys provide default MIME types and modes, reducing boilerplate when attaching common content types.
Built-in defaults:
Usage:
Environment variables:
TASK_GRAPH_CONFIG_PATH: Path to configuration file (takes precedence over.task-graph/config.yaml)TASK_GRAPH_DB_PATH: Database file path (fallback if no config file)TASK_GRAPH_MEDIA_DIR: Media directory for file attachments (fallback if no config file)TASK_GRAPH_LOG_DIR: Log directory path (fallback if no config file)
MCP Tools
Worker Management
Task CRUD
Task Claiming
Note: Release via update(status="pending"). Complete via update(status="completed"). Status changes auto-manage ownership.
Dependencies
Tracking
File Coordination
Attachments
Advanced
MCP Resources
Task Tree Structure
Create hierarchical tasks with create_tree:
Tree Node Fields
Top-Level Parameters
Referencing Existing Tasks
Use ref to integrate existing tasks into a tree structure:
Tag-Based Affinity
Workers declare capabilities via tags when connecting. Tasks can require specific tags to control which workers can claim them.
Example tag categories:
- Model capabilities:
image-in,audio-out,video-in,code,bulk - Access levels:
prod-access,admin,external - Specializations:
rust,python,frontend,database
Note: Roles like coordinator/reviewer/deployer are better represented using phases.
Task requirements:
needed_tags(AND): Agent must have ALL of thesewanted_tags(OR): Agent must have AT LEAST ONE
Workflows and Phases
Phases
Tasks can have a phase to categorize the type of work being performed:
Built-in phases: explore, implement, review, test, security, deploy, triage, diagnose, design, plan, doc, integrate, monitor, optimize
Phases enable:
- Transition prompts — Automatic guidance when entering/exiting phases
- Gates — Requirements that must be satisfied before phase transitions
- Role-based routing — In relay workflows, specialists own specific phases
Named Workflows
Pre-built workflow topologies optimize for different coordination patterns:
Select a workflow on connect:
Each workflow provides tailored prompts and coordination guidance. See WORKFLOW_TOPOLOGIES.md for detailed patterns.
Transition Prompts
Agents receive automatic guidance when status or phase changes:
Prompts support template variables: {{current_status}}, {{valid_exits}}, {{current_phase}}, {{valid_phases}}
Gates
Gates are requirements that must be satisfied before status or phase transitions:
Satisfy a gate by attaching evidence:
Enforcement levels: allow (advisory), warn (blocks unless force=true), reject (hard block)
File Coordination
Agents can coordinate file edits using advisory marks with change tracking:
Architecture
- Transport: Stdio — each worker spawns its own server process
- Database: SQLite with WAL mode for concurrent access across processes
- Deployment: Single binary, no external dependencies, works offline
Compared to Alternatives
Documentation
License
Apache 2.0
Built for AI agents that need structured workflows and reliable coordination.
來源:README.md,提交 75f71d6
工具
0版本歷史
1- v0.3.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分