
Primer Mcp
io.github.ivanlai由 GitHub 账号 ivanlai 发布v0.1.8更新于 Nov 4, 2026
A Jira-lite MCP server that guides planning-first workflows for AI-assisted development.
概览
一个轻量级 Jira 式 MCP 服务器,在代码仓库中以 Markdown 工单维护“先规划后编码”的待办,并引导 AI 编码代理先做计划。
- 可以做什么
- 初始化工单库,并把工作流说明追加到代理配置文件
- 创建规划条目:史诗、架构决策记录、故事、任务和调研(spike)
- 推进执行:开始任务、带说明完成任务、凭证据验证任务、关闭调研
- 查询待办:列出当前可执行事项、按 ID 读取工单、按类型或状态列出工单、修改状态、依赖或正文
- 把项目导出为自包含的交互式 HTML 关系图
- 提供规划故事以及导入、导出 Jira 工单的引导式提示
- 适用场景
- 适合个人开发者和小型项目,希望 AI 编码代理在动手前先规划,并留下结构化的、可版本管理的目标、决策与任务状态记录。它是 Jira 的轻量补充,而非多人协作替代品。
- 运行要求
- 以 PyPI 包形式通过 stdio 在本机运行;README 要求 Python 3.12+ 和 uv,客户端用 uvx 启动。未声明任何账号、API 密钥或环境变量。工单会写入项目内的 primer/ 目录,为 Markdown 文件。
安装
在 SourceWeft 中
- 打开 控制台中的 Primer Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
primer-mcp
Beta — the core workflow is stable and tested, but the tool is new. Expect rough edges.
A Jira-lite MCP server that guides planning-first workflows for AI-assisted development — tickets as markdown files, your AI agent as the interface.
Does it work? An eval of 108 runs found it took planning-before-coding from 0/15 to 15/15 on features and open-ended requests. But one line in CLAUDE.md got a saved plan too, so what primer-mcp adds is the structure of the record. Details below.
Why
Getting real value from AI coding agents takes more than prompting. It takes shaping what they build, engineering the workflow around them, and deploying something that holds up in practice.
Left to their own devices, agents jump straight to implementation. Primer-mcp makes them plan first:
- state why the work matters
- record decisions and weigh trade-offs
- break the work into stories and tasks
- check the plan with you before coding
- complete and verify each one
The tickets are plain markdown with YAML frontmatter, committed alongside your code. There's no external service and no database. Everything is visible in your repo and easy to browse with tools like Obsidian.
primer-mcp is designed for solo developers and small projects — one person (and their AI agent) working through a backlog. It doesn't have assignment, notifications, or multi-user coordination, and that's deliberate: it's a lightweight complement to the AI workflow, not a replacement for Jira.
Quick start
Requires Python 3.12+ and uv.
Add to your MCP client config (e.g. Claude Code settings.json, Claude Desktop claude_desktop_config.json):
That's it — your MCP client downloads and runs primer-mcp automatically. You don't need to install anything manually.
Tell your AI agent what you want to build — it handles the rest. The server guides the agent through a planning-first workflow: why the work matters, decisions, stories, tasks, completion. Not sure what to do next? Ask your agent — it reads the current state and knows what comes next.
Manual install (optional)
If you prefer to install primer-mcp as a standalone tool (e.g. for the list-actionable CLI command):
What it looks like
A typical session — you describe the work, the agent handles the planning:
Every ticket is a markdown file in primer/, committed alongside your code. The export_graph tool visualises how they connect:
Clone the repo and open assets/demo-graph.html for the interactive version — click any node to see its full ticket.
Since tickets are plain markdown with wikilinks, you can also open primer/ as an Obsidian vault for a live graph that updates as tickets change — no need to re-export.
Tools
Your AI agent calls these tools automatically — you don't need to invoke them directly. You can also ask your agent to call a specific tool if you want more control.
Setup
Planning
Execution
Query
Export
Prompts
Agent instructions
When your project is initialized (automatically on first use, or via init_project), this section is appended to your agent config file (CLAUDE.md, AGENTS.md) to guide the agent. If you prefer to add it manually:
Graduating to Jira (experimental)
primer-mcp tickets map directly to Jira concepts (Epic, Story, Task, ADR). When a project outgrows local markdown files:
export_jirapushes tickets to Jira through any Jira MCP server. Each ticket'sexternal_reffield tracks its Jira key, so re-exports update existing issues instead of creating duplicates.import_jiragoes the other direction.
Both prompts are experimental and have not been tested end-to-end.
Does it work?
primer-mcp-eval tests whether primer-mcp changes how an AI coding agent works. It gives headless Claude Code the same 12 change requests three ways:
- plain
- with primer-mcp
- with one line in CLAUDE.md asking for a plan saved in
docs/before coding
That's 108 isolated runs, scored from transcripts with no LLM judge.
What it found:
- primer-mcp took a written plan before coding from 0 of 15 runs to 15 of 15 on features and open-ended requests. It changed little on bug fixes and refactors, where its guidance lets the agent skip planning.
- The one-line instruction got a saved plan on all 36 runs, for about 7% extra cost against primer-mcp's 50%.
- Outcomes: none of the three made a measurable difference.
So primer-mcp isn't needed to get a plan written. What it adds is the shape of the record, which the plan files lacked:
- goals kept apart from implementation steps
- decisions with the options that were rejected
- a status for each piece of work
Whether that structure pays off in later sessions is untested.
Overhead. Wherever the agent planned with primer-mcp, it took about 15–25 extra turns. That grew with the number of tickets created, not with the size of the code change, so it should be a smaller share of larger work (untested).
The methodology and full results are in that repo.
This repo dogfoods itself
The primer/ directory in this repo is the project's own backlog, created with the tools in src/ and committed deliberately — a tool that tells you to commit your ticket store should commit its own. Browse it on GitHub to see what a real store looks like before installing:
primer/adrs/— design decisions, including rejected alternatives and whyprimer/stories/andprimer/tasks/— what is done, what is next, and verification evidence
It is project management, not part of the package. The wheel ships src/primer_mcp only, and primer/ is excluded from the distribution. Your own primer/ is created automatically when you start planning.
Development
DEVELOPMENT.md covers setting up a checkout, running the checks, pointing an MCP client at unreleased code, and how the code is put together — from a tool call arriving over MCP to the ticket file being written.
License
MIT
来源:README.md,提交 3f24835
工具
0版本历史
4- v0.1.8最新Sep 30, 2026
- v0.1.7Sep 29, 2026
- v0.1.5Sep 28, 2026
- v0.1.4Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分