powerplan
powerplan
PLAN.md 作为智能体开发的运作骨干。
powerplan 是一个 MCP 服务器,为协调者与工作智能体提供针对项目 PLAN.md 的自然语言 API:展示进度、创建迭代、完成任务、保持头部信息真实——无需随意改动文件。
mcp-name: io.github.CynaCons/powerplan
MCP 服务器名称 |
|
PyPI |
|
注册表 |
|
状态 | v0.7.0 — 批量变更(PLAN.md) |
站点 | |
搭配使用 | PowerSpawn(可选) |
安装
你需要 uv(提供 uvx)或 Python 3.10+。
uvx powerplan-mcp这就是 stdio MCP 服务器。将你的客户端指向它:
Claude Code / Cursor / .mcp.json
{
"mcpServers": {
"powerplan": {
"command": "uvx",
"args": ["powerplan-mcp"],
"env": {
"PYTHONIOENCODING": "utf-8",
"PYTHONUNBUFFERED": "1"
}
}
}
}Claude Desktop
在 claude_desktop_config.json(mcpServers)中使用相同的配置块。
Grok(~/.grok/config.toml 或项目配置)
[mcp_servers.powerplan]
command = "uvx"
args = ["powerplan-mcp"]
env = { PYTHONUNBUFFERED = "1", PYTHONIOENCODING = "utf-8" }
enabled = truepip(无 uv)
pip install powerplan-mcp{
"mcpServers": {
"powerplan": {
"command": "python",
"args": ["-m", "powerplan"],
"env": {
"PYTHONIOENCODING": "utf-8",
"PYTHONUNBUFFERED": "1"
}
}
}
}Related MCP server: llm-backlog
智能体指南
优先使用范围限定的工具。不要通读整个 PLAN.md 来弄清楚该做什么。
如果工具报错“no PLAN.md” → 先执行
create_plan。get_current_iteration— 现在该做什么(JSON)。get_iteration(version)— 某个迭代的任务与进度。使用
add_task/add_tasks/complete_task(多个用indexes)/start_iteration/close_iteration进行变更。show_plan是供人快速浏览的概览,不是完整转储。
每个工具都接受可选的 plan_path(相对或绝对路径)。默认:从 cwd 向上查找最近的 PLAN.md。
变更操作上的可选 agent 参数会在被修改的行末尾写入 [agent: id] 标签。
为什么
智能体经常手动编辑 PLAN.md。头部信息逐渐失真,“COMPLETE” 被不加证明地盖上,多智能体集群互相踩踏。powerplan 是唯一写入者:宽容的读取者、精准的写入者、可选的 [agent: …] 标签。
工具
工具 | 行为 |
| 缺失时初始化 |
| 智能体首选 — 当前工作的范围限定 JSON |
| 某个版本的 JSON(任务、进度) |
| 无需读取整个文件即可导航 |
| 精准变更(一次写入批量添加) |
| 单个或多个( |
| ACTIVE/当前与 COMPLETE 的生命周期 |
| 结构检查 |
| 紧凑的人类可读概览(非完整转储) |
受管计划格式
结构 | 模式 |
主版本 |
|
迭代 |
|
目标 |
|
任务 |
|
待办列表 |
|
类似阶段的标题和其他正文会作为不透明块保留。
从源码
克隆、可编辑安装,或作为 PowerSpawn 子模块——供贡献者使用。
git clone https://github.com/CynaCons/powerplan.git
cd powerplan
pip install -e ".[dev]"
python -m powerplan # same stdio server
# or: powerplan-mcpPowerSpawn 可以将此仓库作为 git 子模块引入。请注册两个 MCP 服务器——它们不会合并:
{
"mcpServers": {
"powerplan": {
"command": "uvx",
"args": ["powerplan-mcp"]
},
"powerspawn": {
"command": "python",
"args": ["-m", "powerspawn.mcp_server"]
}
}
}仅路径(无需安装):python /path/to/powerplan/powerplan_server.py
落地页:cd site && npm ci && npm run dev
发布(维护者)
完整流程、身份与失败历史:docs/RELEASING.md。
智能体检查清单:项目技能 release-powerplan(/release-powerplan)。
快捷路径:更新该指南中列出的每个版本文件 → pytest -q → 打标签 vX.Y.Z → 推送标签。.github/workflows/publish.yml 会将 powerplan-mcp 上传到 PyPI,然后将 server.json 作为 io.github.CynaCons/powerplan 上传到 MCP Registry。
许可证
MIT — 参见 LICENSE。
Available Tools
24 toolsadd_taskC
Append a checkbox task to an iteration.
Inputs: text (required), version (required), done, agent, +1 more.
add_tasksA
Append several checkbox tasks in one write. Prefer this over repeated add_task. Shared done/agent apply to every item.
Inputs: tasks (required), version (required), done, agent, +1 more.
add_to_backlogB
Append one (text) or many (texts) items to Future (Backlog) in one write.
Inputs: text, agent, texts, checkbox, +1 more.
append_proseC
Append freeform markdown at top level.
Inputs: text (required), plan_path.
check_planC
Structure lint: duplicates, multiple current, complete-with-open-tasks.
Inputs: plan_path.
close_iterationB
Mark iteration COMPLETE. Requires force=true if open tasks remain. Optional stamp (e.g. date) appended to title.
Inputs: version (required), force, stamp, plan_path.
complete_taskA
Tick one or many tasks in one write. For several, pass indexes (preferred after get_iteration) or tasks. For exactly one, index or task still work.
Inputs: version (required), task, agent, index, +4 more.
create_iterationD
Create ### vX.Y.Z — Title iteration.
Inputs: title (required), version (required), goal, agent, +4 more.
create_majorC
Create ## vX.Y — Title major section.
Inputs: title (required), version (required), plan_path, description.
create_planA
Bootstrap a new PLAN.md when none exists (powernote-style skeleton). Default path: ./PLAN.md in cwd. Refuses overwrite unless force=true.
Inputs: title (required), goal, force, plan_path, +2 more.
defer_taskA
Move one or many tasks to the backlog in one write. For several, pass indexes or tasks. Shared reason/agent apply to every item.
Inputs: version (required), task, agent, index, +5 more.
find_taskC
Locate tasks by substring match (JSON).
Inputs: text (required), plan_path.
get_backlogC
Backlog section items (JSON).
Inputs: plan_path.
get_current_iterationA
JSON for the current iteration (what to work on now). Preferred agent entry — avoids reading all of PLAN.md.
Inputs: plan_path.
get_iterationC
JSON for one iteration by version (goal, tasks, progress).
Inputs: version (required), plan_path.
list_iterationsB
List iterations filtered by open | complete | all.
Inputs: filter, plan_path.
remove_taskA
Delete one or many tasks in one write. For several, pass indexes or tasks. Resolve-all then drop (indexes do not shift).
Inputs: version (required), task, index, tasks, +3 more.
reopen_taskA
Untick one or many tasks in one write. For several, pass indexes or tasks. For exactly one, index or task still work.
Inputs: version (required), task, agent, index, +4 more.
set_iteration_goalC
Set/replace Goal: on an iteration.
Inputs: goal (required), version (required), plan_path.
show_current_iterationA
ASCII view of the resolved current iteration (humans/logs).
Inputs: plan_path.
show_miniplanA
Raw PLAN.md snippet: the current (or named) iteration byte-for-byte under its major header, with the neighbouring iterations collapsed to their header lines. The plan's own format is the view — start every session here instead of reading the whole file.
Inputs: after, before, version, plan_path.
show_planA
Compact index: counts + current iteration. Agents should prefer get_current_iteration / get_iteration over this or full PLAN.md.
Inputs: plan_path.
start_iterationA
Mark iteration ACTIVE / current; clears other current markers.
Inputs: version (required), plan_path.
update_taskB
Rewrite task text, preserving done state. One task: text + index/task. Several: changes[{text, index|task, expect?}].
Inputs: version (required), task, text, agent, +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Most tools target distinct resources, but there is notable overlap in the view/entry-point family: show_miniplan, show_current_iteration, show_plan, get_current_iteration, and get_iteration all retrieve current or selected plan state in different formats. Descriptions help, yet show_miniplan and get_current_iteration both claim to be the preferred entry, which creates ambiguity.
The set mostly follows a clear verb_noun pattern: create_iteration, get_iteration, update_task, remove_task, close_iteration, etc. Minor inconsistencies exist, such as add_task vs add_tasks, append_prose, and show_miniplan, but overall the convention is predictable and readable.
24 tools is on the heavy side for a plan-management server, and some operations could be consolidated (add_task/add_tasks, multiple show/get variants). The count is not extreme, but the surface feels larger than necessary for the domain.
The lifecycle coverage is strong: plans can be bootstrapped, majors and iterations created, tasks added/updated/completed/reopened/removed/deferred, and iterations started/closed. Minor gaps exist, such as no explicit way to delete an iteration or major section, but core workflows are well-covered.
Maintenance
Related MCP Connectors
MCP server for generating rough-draft project plans from natural-language prompts.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Minimal issue tracker: projects, objectives and trackable plans, written by agents over MCP.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Related MCP Servers
- AlicenseCqualityDmaintenanceMCP server for Plane integration, enabling AI agents to interact with Plane APIs and services for project management tasks.100MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for managing a project backlog as Markdown files in Git, enabling AI agents to read, create, and update tasks programmatically.2MIT
- AlicenseBqualityAmaintenanceUnofficial MCP server for self-hosted Plane Community Edition, enabling project management tasks like managing work items, cycles, modules, and initiatives via natural language.1002MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that turns planning documents into structured SQLite data and exposes plan metadata to AI agents, with tools to list and delete saved plans.-