
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 分