primer-mcp
primer-mcp is a local, markdown-based Jira-lite MCP server that guides AI agents through planning-first development with tickets stored in your repo.
Initialize a project: create the
primer/ticket store and add workflow instructions to CLAUDE.md/AGENTS.md.Plan work: create epics, architecture decision records (ADRs), stories, tasks, and timeboxed spikes.
Execute and verify: start/complete/verify tasks and close spikes with findings and evidence.
Query and manage tickets: list actionable items with recommendations, get/list tickets, update status/dependencies/body sections/external refs, delete tickets, and sweep dangling dependencies.
Visualize: export an interactive HTML graph of hierarchy and dependencies.
Integrate with Jira (experimental): use
export_jiraandimport_jiraprompts to move tickets via a Jira MCP server.
Allows exporting primer-mcp tickets to Jira and importing a Jira epic and its hierarchy into primer-mcp, mapping ticket types (Epic, Story, Task, ADR) to Jira concepts and tracking Jira keys via external refs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@primer-mcp I want to add user authentication"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: jt-mcp-server
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):
{
"mcpServers": {
"primer-mcp": {
"command": "uvx",
"args": ["primer-mcp"]
}
}
}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):
uv tool install primer-mcp
# Update to latest
uv tool upgrade primer-mcp
# Uninstall
uv tool uninstall primer-mcpWhat it looks like
A typical session — you describe the work, the agent handles the planning:
You: I want to add user authentication.
Agent: You have EP-001: "Launch the app" — auth fits under that.
Or I can create a separate epic if this is a bigger initiative.
You: EP-001 is fine.
Agent: Before we build, we should decide on the auth approach.
A few common options:
1. JWT with refresh tokens — stateless, good for mobile/SPAs
2. Server-side sessions — simple, but needs sticky storage
3. OAuth2 only — delegates to a provider, less to maintain
...
You: Option 1 — we need mobile support.
Agent: I'll record that decision so we don't revisit it later.
→ Recorded ADR-003: "Use JWT with refresh tokens"
Rejected: server-side sessions (no mobile support),
OAuth2 only (need local accounts too)
Breaking this into stories.
→ Created ST-005: "Login and registration endpoints"
→ Created ST-006: "Token refresh and revocation"
And tasks for the first story:
→ Created TK-010: "Add /register endpoint with validation"
→ Created TK-011: "Add /login endpoint returning JWT pair"
→ Created TK-012: "Write integration tests for auth flow"
You: Let's start with TK-010.
Agent: → Started TK-010
[implements the register endpoint]
Done — added POST /register with email/password validation,
password hashing, and duplicate-email check.
→ Completed TK-010
You: Looks good, verify it.
Agent: → Verified TK-010 (evidence: "all tests pass — a1b2c3d")
TK-011 is next. Want me to continue?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
Tool | What it does |
| Create the |
Planning
Tool | What it does |
| Create an epic — the top-level container for a body of work |
| Record an architecture decision: context, decision, rejected alternatives, consequences |
| Create a story under an epic — a deliverable with acceptance criteria |
| Create a task under a story — a concrete unit of work with a testable outcome |
| Create a spike — a timeboxed investigation to answer a question |
Execution
Tool | What it does |
| Move a task to in-progress |
| Mark a task completed with notes on what was done |
| Verify a completed task with evidence (point at the commit) |
| Close a spike with findings |
Query
Tool | What it does |
| List what can be acted on right now, with epic context and recommendations |
| Read a ticket by ID with its full body |
| List tickets, filterable by type or status |
| Amend a ticket's status, dependencies, body sections, or external refs |
Export
Tool | What it does |
| Generate a self-contained HTML file visualising the project as an interactive graph |
Prompts
Prompt | What it does |
| Walk through a planning conversation before creating a story |
| Export primer-mcp tickets to Jira via a Jira MCP server |
| Import a Jira epic and its hierarchy into primer-mcp |
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:
## primer-mcp
This project uses primer-mcp for planning-first development.
Tickets are markdown files under `primer/` — they are yours to read and edit.
Prefer the tools for creating and updating them: they allocate IDs, follow the templates
and guide the workflow. Hand-edit where the tools fall short.
- Plan before code. Recommended flow: Epic -> ADR -> Story -> Task,
suggest rather than enforce — skip steps when it makes sense.
- Unsure what to do next? Call `list_actionable`.
- Completion is two-phase: `complete_task` with notes, then `verify_task`
with evidence (point at the commit, not the output). Both are
recommended — the tools will nudge you if you skip a step.
- After tickets creation or changes, offer to regenerate the project graph with `export_graph`.
- Before committing, check that completion notes on finished tickets
still reflect the actual work — update both the frontmatter
`completed_notes` and the `## Completion Notes` section if needed.
- Before implementing new work, propose a ticket and parent. Small fixes (1–2
tasks) go under the standing bug-fix story; larger efforts get their
own story. The user can decline.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
Available Tools
17 toolscomplete_spikeA
Close a spike by recording its findings — the answer to the question it was investigating and any recommendations. Works from any status.
Inputs: findings (required), spike_id (required). Returns: result
complete_taskA
Mark a task as completed with notes on what was done. The notes parameter is a terse one-liner for the frontmatter field; write a fuller summary (approach, key changes, decisions) into the
Completion Notes body section of the ticket separately.
Ideally call start_task first, but this works from any status. After this, call verify_task with evidence to finalise.
Inputs: notes (required), task_id (required). Returns: result
create_spikeA
Create a Spike under a story — a timeboxed investigation to answer a specific question before committing to an implementation approach. The parent story must already exist. When done, call complete_spike with your findings.
Inputs: title (required), timebox (required), question (required), story_id (required). Returns: result
create_storyA
Create a Story under an epic — a deliverable with acceptance criteria. The epic must exist — if one hasn't been created yet, call plan_epic first. The user will have described their goals; use that to create the epic, asking for clarification if needed. If no ADR has been recorded, the response will suggest capturing decisions first, but the story is still created.
Pass adr_ids to link the story to the architectural decisions that govern it. Each ADR must exist and belong to the same epic.
After creating stories, present the plan to the user and wait for their agreement before creating tasks or starting work.
Inputs: what (required), title (required), epic_id (required), adr_ids, +2 more. Returns: result
create_taskA
Create a Task under a story — a concrete unit of implementation work with a testable outcome. The parent story must already exist.
After breaking a story into tasks, present the task list to the user before starting work — don't create tasks and immediately begin implementing.
For small bug fixes (1-2 tasks), prefer adding a task under the standing bug-fix story rather than creating a new story. Suggest a dedicated story only when the fix spans 3+ tasks.
Inputs: title (required), story_id (required), what_to_do (required), testable_outcome (required). Returns: result
delete_ticketA
Delete a ticket. Non-todo tickets are deleted with a warning. Children are reported but not deleted — call delete_ticket on each to cascade. After all deletions, call sweep_blocked_by to clean up dangling references. Recoverable from git history.
Inputs: ticket_id (required). Returns: result
export_graphA
Generate a self-contained HTML file visualising the project as an interactive graph. Opens in any browser with no external requests. Nodes are coloured by type and status; edges show both hierarchy (epic -> story -> task) and dependencies (blocked_by). Click a node to see its details. On-demand — call when you want a snapshot.
Inputs: output_path. Returns: result
get_ticketA
Read one ticket by ID, with its full body. Also reports which tickets it blocks — that direction is not stored on the ticket itself, so this is the only way to see it.
Inputs: ticket_id (required). Returns: result
init_projectA
Initialise this project for primer-mcp: creates the primer/ ticket store and adds the workflow section to CLAUDE.md (and AGENTS.md if it exists). Non-destructive and idempotent. Call this once per project, before any other tool. Optionally pass jira_project_key if tickets may later be exported to Jira.
Inputs: project_name (required), jira_project_key. Returns: result
list_actionableA
List what can be acted on right now, with epic context.
Returns the epic's goals, story coverage, and a table of actionable items. Always show the full table to the user first, then add your recommendation below it. The table is the primary output — the user needs to see all options to make their own call.
After showing the table, recommend what to do next:
Check whether the stories cover the epic's goals. If goals are uncovered, recommend more planning (create_story) before execution.
Urgent items (unverified or in-progress tasks) should usually be finished before starting new work.
For the remaining items, read the tickets that look relevant (get_ticket) and recommend based on impact — what unblocks the most work, what aligns with current momentum, why now.
If several items are genuinely equal, say so and explain why.
Inputs: no named parameters. Returns: result
list_ticketsA
List tickets one per line, newest work last. Filter by type (epic, adr, story, task, spike), status, or parent_id (show only children of that ticket). Use this to find an ID before calling another tool.
Inputs: status, parent_id, ticket_type. Returns: result
plan_epicA
Create an Epic — the top-level container for a body of work. Start here: state why the work matters, its goals, and how you'll know it's done. Consider recording decisions (record_adr) before creating stories — it captures reasoning that gets lost once implementation starts.
Inputs: why (required), goals (required), title (required), non_goals, +2 more. Returns: result
record_adrA
Record an Architecture Decision Record under an epic: the context forcing a choice, the decision, alternatives rejected (with reasons), and consequences accepted. Recording decisions before creating stories is recommended — it captures reasoning that gets lost once implementation starts.
Inputs: title (required), context (required), epic_id (required), decision (required), +2 more. Returns: result
start_taskA
Transition a task to in-progress — call this when you begin working on a task. Works from any status; you'll get a note if the transition is unusual. After finishing, call complete_task.
Inputs: task_id (required). Returns: result
sweep_blocked_byA
Remove blocked_by references that point to tickets that no longer exist. Call once after finishing a batch of delete_ticket calls.
Inputs: no named parameters. Returns: result
update_ticketA
Amend a ticket after creation; anything left out is left alone. status sets todo, in-progress or blocked — for finished states, prefer complete_task, verify_task or complete_spike as they also record notes. blocked_by replaces the dependency list and is refused if a referenced ticket does not exist or the edge would create a cycle. To say "A blocks B", set blocked_by on B. body_sections replaces whole markdown sections by heading.
Inputs: ticket_id (required), status, blocked_by, external_ref, +1 more. Returns: result
verify_taskA
Verify a task with evidence that the work holds (e.g. "218 passed, mypy clean"). Pass the short commit hash in the commit parameter so it is labelled consistently. Ideally call complete_task first to capture notes, but this works from any status. Sets the task to verified.
Inputs: task_id (required), evidence (required), commit. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Each planning entity has a dedicated creation/lifecycle tool and the descriptions clarify boundaries, but `update_ticket` can also set status to `in-progress`, which overlaps with `start_task`; `list_tickets` and `list_actionable` could also be confused at a glance. Overall, tools are mostly distinct.
All tools use lowercase snake_case imperative verb + object names such as `create_story`, `complete_spike`, and `delete_ticket`, and even less common names like `sweep_blocked_by` follow the same pattern. There are no mixed conventions or vague generic verbs.
Seventeen tools is slightly above the typical 3–15 sweet spot, but nearly every tool covers a genuine lifecycle stage or query/cleanup need. The count is reasonable for a planning/ticketing server, though it could feel heavy to an agent.
The surface covers project init, epic/ADR/story/task/spike creation, task and spike completion, verification, dependency cleanup, and graph export. A notable gap is that epics and stories have no finished/closed status or dedicated completion tool, so the top-level planning items cannot be explicitly closed out.
Maintenance
Related MCP Connectors
Project tracker for AI agents and teams: file, claim, update and hand off tickets over MCP.
Minimal issue tracker: projects, objectives and trackable plans, written by agents over MCP.
Task & board management for AI agents + humans. Kanban, comments, digests via MCP.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for AI agents to manage a lightweight kanban board stored as markdown files, enabling task creation, updates, and column movements.10MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that equips AI agents with dev workflow tools including GitHub project management, conventional commits, visual regression testing, Jira/Confluence integration, and a persistent memory knowledge graph.30 npmMIT
- AlicenseBqualityDmaintenanceAn MCP server that provides a database-backed kanban board with 40+ tools for AI agents to track issues, features, todos, epics, and diary entries across projects, including status workflows, relationships, and semantic search.4586MIT
- AlicenseNot gradedqualityDmaintenanceA file-backed MCP server for hierarchical project management that enables AI assistants to create, claim, and complete tasks within a project→epic→feature→task structure, with dependency management and Markdown-based storage.22 PyPIMIT