It’s fun to fetch with the YMCP

YouTrack for any AI client, signed in with your own login and password. And pipelines that hand issues to coding agents.

curl -fsSL https://raw.githubusercontent.com/xlsft/ymcp/main/install.sh | sh

Then ymcp setup signs you in and registers ymcp in your clients.

0:00 / 0:25

MCP server

Every built-in YouTrack tool, and the ones it lacks

ymcp ships every tool of YouTrack’s own MCP server under the same names, arguments and limits, then adds deleting, sprints, attachments, history, time reports and commands. It works with self-hosted instances behind a VPN.

Why it is easy to run

  • Just a login and password. Nothing to set up in YouTrack: no webhooks, OAuth client or API keys. The password lives in your system keychain.
  • Works without admin rights. Field schemas, groups and comments fall back to what a regular user can read.
  • One-command install. ymcp setup registers itself in Claude, Cursor, VS Code, Zed, Codex, Gemini and more.
  • A single static binary for macOS, Linux and Windows, with ymcp update built in.

Why models get it right

  • Fields by display name. {"State": "In Progress"} is checked against the project before it is sent.
  • Errors say what to do next: the allowed values, which tool finds the right ID after a 404, that a 403 needs a permission.
  • Destructive tools are marked with destructiveHint, so clients ask before deleting.
  • Prompts clients offer as slash commands.

Tools marked + are ymcp’s extras; the rest are YouTrack’s own. Red ones delete or bulk-change data, so clients ask first.

Serve only what you need: ymcp serve --tools issues,comments,-delete_issue

Pipelines

A YouTrack search in, pull requests out

A pipeline watches a search and gives each issue it finds to a coding agent, in its own git worktree on a new branch. ymcp pushes the branch, opens the pull or merge request and brings the agent the review comments until the change is merged.

Backlog

The source query found the issue and no run has taken it yet.

Working

The agent works on it in its worktree.

State In Progress

Needs input

The agent asked a question or wants a permission. You get a notification.

tag needs-input

Review

The branch is pushed and the agent answers review comments.

State Fixed

Done or closed

The change is merged, or closed without one. The run ends either way.

 backend  youtrack-work · Claude · /home/dev/code/backend                                          ● running  agents 1/1

  BACKLOG 3              WORKING 2              NEEDS INPUT 1          REVIEW 2               DONE 2              
  ────────────────────   ────────────────────   ────────────────────   ────────────────────   ────────────────────
                                                                                                                  
    BE-131               ▌ BE-123          #5     BE-127          #6     BE-118          #3     BE-111          #2
    Rate limit the       ▌ Fix login              CSV export             Cache keys             Flaky migration   
    login endpoint       ▌                        “Which date forma…                            test              
                         ▌ ⠋ 4m12s writing        ⚑ 12m waiting          PR #40                 ✗ failed 20h      
    BE-133                                                                                                        
    Pagination for         BE-130          #7                            BE-120          #4     BE-110          #1
    /issues                Webhooks                                      Retry jobs             Drop legacy       
                                                                                                endpoints         
    BE-140                 ◌ queued                                      ⟳ 1 feedback           ✓ done 26h        
    Audit log                                                                                                     
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  
                                                                                                                  

←→↑↓ move  enter open  a answer  c cancel  d delete  o issue  p PR  r reload  s stop  e edit  i inbox  esc back  q quit

A pipeline’s board: issues move across the stages while the agent works.

Agents

Each run gets its own MCP server with the same YouTrack tools. Your password never reaches the agent.

    Strategies

    Where the work goes once the agent is done.

      A TUI, or scripts

      A board per pipeline and an inbox of runs that wait for you. Or plain commands:

      • ymcp pipeline new
      • ymcp pipeline NAME check
      • ymcp pipeline NAME run -d

      Clients

      Set up in the clients you already use

      ymcp setup adds each YouTrack instance as its own server in the clients you pick, and removes it from the ones you uncheck.

      Or run it once for the whole team: ymcp serve --transport http serves every profile on one port, behind a token.

      Sign-in

      A login and password, nothing to set up

      YouTrack’s OAuth password grant needs a service secret that regular users don’t have, so ymcp signs in through Hub instead.

      1. Read the Hub location and YouTrack service ID from the public /api/config.
      2. Submit the Hub login form and keep the session cookie.
      3. Run the web client’s implicit OAuth flow and take the bearer token from the redirect.

      Expired tokens are renewed from the session, without resending the password.