# Ticket AI [Health: Active]

**Category:** 📋 Product Management  
**Repository:** https://github.com/syrian963/Ticket-AI-MCP  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ticket-ai

## Description
Measures tickets against the ones your team already shipped: sections, length, labels, duplicates.

## Tools
Capabilities this server exposes over MCP:

- **learn_conventions** — Learn how this team writes tickets, and cache the result.

    Slow: it reads the comments and linked changes of up to `sample` closed
    tickets, which is a few hundred API calls. Call it once per project, not
    once per question.

    Pass `from_tickets` when the user can name good examples - those are taken
    as given and nothing is filtered out. Leave it empty and the tracker is
    mined instead: closed tickets are ranked by whether a merge request shipped
    for them, whether anyone had to reopen them, and how many clarifying
    questions they drew before work started.
    
- **house_style** — What this team's tickets look like: template, length, labels, habits.

    Reads the cached profile. Says so plainly if none has been learned yet
    rather than returning something empty that looks like an answer.
    
- **ticket_template** — The skeleton to fill in when writing a new ticket here.

    Use this before drafting, not after. It returns the sections this team
    actually uses and the length they actually write - then write the ticket
    yourself. The server has no opinion about the content.
    
- **template_gaps** — Compare the issue template this repository declares with the tickets it gets.

    Reads `.github/ISSUE_TEMPLATE` or `.gitlab/issue_templates` from the
    checkout and lines each field up against how often tickets actually carry
    it. The gap is the finding, and it runs both ways:

    - A **required field almost nobody fills in** is a form asking for
      something people cannot easily supply. Say so: the cheap fix is to
      change the form, not to nag the team.
    - A **section most tickets carry that no form mentions** is a convention
      the project grew and never wrote down. Adding it to the template is how
      it survives the next person who joins.

    Use this when asked how to improve a board rather than one ticket. It is
    the only tool here that reads what the project said it wanted, instead of
    only what it does.
    
- **ticket_context** — Gather what is known about a subject before you write the ticket for it.

    **Call this together with `ticket_template`, then write the ticket
    yourself.** This returns evidence, not prose - and specifically the
    evidence you cannot get by reading the repository:

    - which past tickets covered this ground, so you can say whether this is a
      duplicate before anyone spends a week on it;
    - **which files the merge requests for those tickets actually changed.**
      That exists only in the tracker's history. It is usually the fastest way
      to find where the work will land, and it is worth naming in the ticket.
    - which files in the checkout mention the subject, as a starting point for
      your own reading.

    Read the files it points at before drafting. The list is a search result,
    not an understanding of the code, and it will include things that merely
    share a word.
    
- **review_draft** — Check a ticket you have written but not created yet.

    **Call this on your own draft before showing it to the user**, and fix
    what it finds rather than reporting it. It is the same measurement
    `review_ticket` runs, so a draft that passes here passes there.

    This exists so the check happens before the point of no return. Creating
    the ticket first notifies whoever watches the board and turns every fix
    into an edit with a history.
    
- **review_ticket** — Measure one ticket against the learned house style.

    Every finding cites a count over the exemplar sample. Repeat those numbers
    to the user - they are the difference between this and generic advice.
    
- **review_open_tickets** — Review every open ticket and list them least-aligned first.

    A planning tool: the answer to "what needs tidying before we can estimate
    any of this". One line per ticket, so call `review_ticket` for the detail
    on the ones that matter.
    

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

```json
"mcpServers": {
  "ticket-ai": {
    "command": "uvx",
    "args": ["ticket-ai-mcp"],
    "env": {
      "TICKET_AI_TRACKER": "",
      "TICKET_AI_PROJECT": ""
    }
  }
}
```

**Requires environment variables:** `TICKET_AI_TRACKER`, `TICKET_AI_PROJECT` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Ticket AI does

The Ticket AI MCP server compares ticket content with conventions mined from tickets that your team has already shipped. It can identify common sections, typical ticket length, label usage, language patterns, and related work. The resulting checks describe what is common in the project rather than applying a universal definition of a good ticket.

It works with GitLab, Jira, and GitHub projects. The tool can learn a profile from the tracker, show the resulting house style, retrieve context for a topic, compare declared templates with incoming tickets, and review either a draft or an existing ticket. Open tickets can also be ranked by review findings.

All eight MCP tools are read-only. The server does not create or modify tracker tickets.

## How it works

Learning reads the selected project's ticket history and caches the profile. Ranking may request comments and linked merge requests for each ticket, so the initial learning step can take a minute or two. Subsequent reviews use the cached data rather than repeating the full analysis.

The context tool returns related tickets, files changed by their merge requests, and matching files in the configured checkout. Its file search identifies places to inspect; it does not analyze those files for you. When used from an MCP-capable coding assistant, the assistant can read the returned files, write a ticket, and send the result through the draft review.

The core measurements do not require an AI model or a model-provider key. Optional CLI writing can use Ollama or an OpenAI-compatible endpoint, but model-generated text is still measured against the same learned profile afterward.

## Setup and configuration

Install the package with `uv tool install ticket-ai-mcp`, then configure the tracker and project through environment variables. Set `TICKET_AI_TRACKER` to `gitlab`, `jira`, or `github`, and set `TICKET_AI_PROJECT` to the corresponding project path, key, or numeric ID.

GitLab can use `TICKET_AI_GITLAB_URL` and `TICKET_AI_GITLAB_TOKEN`; a token is optional for public projects, and the documented token scope is `read_api`. Jira uses `TICKET_AI_JIRA_URL`, with email and token variables for Cloud or a personal access token for self-hosted installations. GitHub uses `TICKET_AI_GITHUB_TOKEN`.

Configure the MCP client with the `ticket-ai-mcp` command, commonly through `uvx`, and pass the environment values in the client configuration. Set `TICKET_AI_REPO` when searches should use a checkout other than the assistant's working directory. Cached data goes to `TICKET_AI_CACHE_DIR` when set, or `.ticket-ai/` by default.

## Tools and capabilities

The Ticket AI MCP server provides these tools:

- `learn_conventions` builds a profile from project tickets.
- `house_style` reports the learned conventions.
- `ticket_template` describes expected sections, length, language, and labels.
- `ticket_context` finds related tickets and relevant repository locations.
- `template_gaps` compares a declared template with arriving tickets.
- `review_draft` measures ticket text before creation.
- `review_ticket` reviews an existing ticket.
- `review_open_tickets` checks the open backlog and ranks findings.

The command-line interface also supports learning from specified exemplar tickets, reviewing drafts from files, opening the backlog, serving a local UI, and optional composition through Ollama or an OpenAI-compatible provider. The local UI listens on `127.0.0.1:8760` and includes views for house style, draft review, and the open backlog.

## Limitations and notes

The profile depends on the tickets selected for learning. Supplying a small or unrepresentative set of exemplars can produce a misleading description of team practice. The server measures and gathers context; it does not independently write prose unless you use the optional CLI writer or an MCP client supplies the model.

The local UI is loopback-only and has no option to expose it elsewhere. Tracker access and repository searches also depend on the configured permissions and checkout. The project is licensed under MIT.

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

