Skip to main content
ticket-rs provides two MCP (Model Context Protocol) servers for AI assistants:

ticket-docs (Docs MCP)

The docs MCP server gives AI assistants access to search ticket-rs documentation directly.

Setup

Add to project .mcp.json:
Add --scope user to make it available across all projects.

Available Tools

Example prompts:
  • “How do I add a dependency between issues?”
  • “What does tk triage show?”
  • “How do I sync with GitHub?”

ticket-mcp (Agentic Tools)

The ticket-mcp package provides full issue management capabilities, allowing AI agents to create, update, and manage issues directly.

Installation

Requires Python 3.10+. ticket-mcp pulls in ticket-py as a hard dependency — the in-process PyO3 bindings — so no separate tk binary install is needed for the MCP server. You only need the tk binary on PATH if you also want to use the CLI directly.

Setup

Available Tools

ticket-mcp exposes exactly three tools. They route every request through ticket_py.dispatch (in-process PyO3), so the full tk CLI surface — every subcommand, every flag — is reachable without a per-command wrapper.

Usage Example

Why three tools

The previous version exposed 22 hand-written wrappers (ready, create, triage, …), which burned ~3,300 tokens of agent context for tool schemas that drifted whenever the CLI grew a flag. The three-tool surface keeps the agent on a stable contract and delegates schema maintenance to clap’s introspection — every flag added to tk is automatically reachable via tk_run with zero MCP changes.

Which Should I Use?

Docs MCP

Best for learningUse when you want AI to understand tk commands and answer questions about features.

ticket-mcp

Best for automationUse when you want AI agents to actually manage your issues—create, update, close, etc.
Recommendation: Use both together. The docs server helps AI understand how to use tk, while ticket-mcp lets it take action.

Troubleshooting

Verify the server is configured:
You should see ticket-docs and/or ticket-mcp in the list.
The MCP server depends on ticket-py (the PyO3 in-process bindings). Reinstall with the package extras present:
Verify the import works:
If you previously had a tk binary in PATH and the MCP was routing through subprocess, that path no longer exists — the new server runs tk in-process via the PyO3 bindings only.
Make sure you’ve set the workspace context and initialized tickets:
The docs MCP server requires internet access to reach docs.ticket-rs.io. Check your network connection.

Next Steps

Claude Code Setup

Full Claude Code integration with tk prime hooks.

CLI Commands

Complete command reference.