# primer-mcp [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/ivanlai/primer-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/primer-mcp

## Description
A Jira-lite MCP server that guides planning-first workflows for AI-assisted development.

## Tools
Capabilities this server exposes over MCP:

- **init_project** — 
        Initialise this project for primer-mcp: creates the primer/ ticket
        store and adds the workflow section to CLAUDE.md and AGENTS.md,
        creating them if needed. 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.
        
- **plan_epic** — 
        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.
        
- **record_adr** — 
        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.
        
- **create_story** — 
        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.
        
- **create_task** — 
        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.
        
- **create_spike** — 
        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.
        
- **start_task** — 
        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.
        
- **complete_task** — 
        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.
        
- **verify_task** — 
        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.
        
- **complete_spike** — 
        Close a spike by recording its findings — the answer to the
        question it was investigating and any recommendations. Works
        from any status.
        
- **list_actionable** — 
        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:

        1. Check whether the stories cover the epic's goals. If goals are
           uncovered, recommend more planning (create_story) before
           execution.
        2. Urgent items (unverified or in-progress tasks) should usually
           be finished before starting new work.
        3. 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.
        4. If several items are genuinely equal, say so and explain why.
        
- **get_ticket** — 
        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.
        
- **list_tickets** — 
        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.
        
- **update_ticket** — 
        Amend a ticket after creation; anything left out is left alone.

        status — which values each type accepts:
        - Epic, story, spike: todo, in-progress, blocked, done.
        - Task: todo, in-progress, blocked. Finish with complete_task then
          verify_task.
        - ADR: none — it records a decision and has no lifecycle.

        blocked_by replaces the dependency list. It 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.
        
- **delete_ticket** — 
        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.
        
- **sweep_blocked_by** — 
        Remove blocked_by references that point to tickets that no
        longer exist. Call once after finishing a batch of delete_ticket
        calls.
        
- **export_graph** — 
        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.
        

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "primer-mcp": {
    "command": "uvx",
    "args": ["primer-mcp"]
  }
}
```

## Documentation

## What primer-mcp does

The primer-mcp MCP server adds a planning-first workflow to an AI-assisted software project. It organizes work into epics, stories, tasks, and timeboxed spikes, while also recording architecture decisions with their context, chosen approach, rejected alternatives, and consequences.

Tickets live in the repository as Markdown files with YAML frontmatter. This keeps plans, decisions, status, dependencies, and completion notes versioned alongside the code. The files can also be browsed with tools such as Obsidian, which can render their links as a graph.

The workflow is intended for solo developers and small projects. It encourages planning before implementation, then separates task completion from verification so an agent can record both what changed and the evidence supporting the result.

## How it works

On first use, `init_project` creates the `primer/` ticket store and adds workflow guidance to the project's agent configuration, such as `CLAUDE.md` or `AGENTS.md`. The recommended structure is an epic followed by an architecture decision when needed, stories, and then concrete tasks. The workflow is suggestive rather than mandatory, so smaller changes can skip levels.

Planning tools create the records and relationships. Execution tools start tasks, record completion notes, verify completed work with evidence such as a commit reference, and close spikes with findings. Query tools expose the current ticket state, including work that is ready to act on and its surrounding epic context.

`export_graph` writes a self-contained HTML visualization of the project structure. Because the underlying files use Markdown links, the same relationships can also be explored directly in a compatible note-taking tool.

## Setup and configuration

The primer-mcp MCP server requires Python 3.12 or newer and `uv`. A client can run it through `uvx` with the `primer-mcp` package, allowing the client to download and start it from its MCP configuration.

A standalone installation with `uv tool install primer-mcp` is also available when the command-line interface is useful, including the `list-actionable` command. Upgrades and removal use the corresponding `uv tool` commands. The server does not require an external service or database; its project state is kept in the repository.

The initialization step appends agent instructions covering planning, actionable-ticket lookup, two-phase task completion, graph regeneration, and keeping completion notes accurate.

## Tools and capabilities

The server exposes tools in four functional groups:

- **Setup:** Initialize the ticket directory and agent workflow instructions.
- **Planning:** Create epics, stories, tasks, spikes, and architecture decision records.
- **Execution:** Start tasks, complete them with notes, verify them with evidence, and close spikes with findings.
- **Query and export:** List actionable work, read individual tickets, filter ticket lists by type or status, update ticket fields and sections, and generate an interactive HTML graph.

The Jira prompts are experimental: one exports tickets through a Jira MCP server, while the other imports a Jira epic and its hierarchy. Tickets can retain an `external_ref` so later exports can update existing Jira issues rather than create duplicates.

## Limitations and notes

The primer-mcp MCP server is not a full Jira replacement. It does not provide assignment, notifications, or multi-user coordination, and its design favors one developer working with an AI agent. Jira import and export are experimental and depend on a Jira MCP server for the external exchange.

The server focuses on local, repository-based records rather than a hosted database. That makes the ticket history visible and commit-friendly, but teams seeking centralized collaboration features will need another system. The README's evaluation describes improved planning behavior across tested feature and open-ended requests, but that result should be treated as context for the workflow rather than a guarantee for every project.

_Full upstream README: https://allmcps.com/mcp/primer-mcp/readme_

