My Projects
YouTrack MCP Server
A production MCP server built at Spotware that gives AI assistants deep, agent-optimized, multi-account access to YouTrack — issues, Knowledge Base articles, project schema, comments, and commands, read and write — with batch fetch, attachment access, ChatGPT Deep Research / Company Knowledge compatibility, and raw field selection the official server does not expose.
Details & related links
Overview
The YouTrack MCP Server is a custom MCP (Model Context Protocol) server built at Spotware that turns YouTrack — the company's primary system of record for product and engineering work — into a first-class AI tool. It gives any AI assistant clean, agent-friendly access to the issues, links, projects, custom fields, and Knowledge Base articles that capture how the business actually runs: requirements, decisions, discussions, dependencies, incidents, and delivery history. It reads that system of record and, when the caller supplies a personal access token, writes back to it — creating and updating issues and articles, commenting as the real person, and running YouTrack commands.
It has been in production since June 2025, months before JetBrains shipped its own remote MCP server with YouTrack 2025.3 in late 2025 — and it has kept evolving after the official server appeared, because a handful of capabilities our workflows depend on still live only in ours, and because it serves every user from their own account without giving up the cross-team reach the company wants.
The Problem
YouTrack is the source of truth for how product and engineering work happens at Spotware: requirements live there, decisions get logged there, dependencies and history are traceable there. Without direct AI access to that system of record:
- Analysts, PMs, and developers spend significant time manually searching and cross-referencing tickets for context that already exists.
- AI agents stay blind to a primary system of record, which forces every AI-assisted workflow to either operate with incomplete grounding or push the human back to a YouTrack browser tab to copy-paste the missing context in.
- New AI use cases (research, investigation, drafting, summarization) hit the same dead end every time: the AI cannot reach the project history.
The YouTrack MCP Server was built to remove that friction at the system layer, not per-tool — so any MCP-aware AI assistant in the company gains YouTrack access by configuration, not by integration work.
The Solution
The server exposes a compact, agent-optimized surface to AI clients — now spanning both reading and writing:
- A full read surface over issues and the Knowledge Base. Issue search with the complete YouTrack query language, single and order-preserving batch issue fetch, issue links, issue and article comments, project discovery, and one-call project-schema discovery (every custom field's type, required flag, and allowed values). For the Knowledge Base: search, full article content, article comments, and tree navigation. Saved searches and a current-user identity check round it out, so an agent can build correct queries on its own and know whose eyes it is looking through.
- Write and authoring tools, gated behind the caller's own token. Create and update issues and articles, comment on both as the real person, and set typed custom fields in the same request. The piece no built-in tool replicates is
apply_command, which runs any YouTrack command — state, assignee, priority, tags, sprints, work items — across one or many issues, pre-flighted through YouTrack's own command-assist, with dry-run previews and an explicit confirmation gate for destructive deletes. - Attachment access. Tools resolve pre-authenticated attachment URLs on issues and articles, so an agent can follow the files a ticket references, not just its text.
- Agent-first ergonomics. Curated compact responses by default (flattened custom fields, ISO-8601 timestamps, absolute URLs, previews) with a raw-JSON escape hatch for granular field, link-field, and custom-field selection; deterministic pagination envelopes; single-line, actionable error messages; client-side query and field-syntax validation that catches mistakes before they reach the API; and the exact YouTrack query and command grammar embedded in the tool descriptions the model reads, so assistants get it right on the first attempt.
Working as Yourself — or Without a Token
At first, the server spoke to YouTrack through a single shared read-only account. That was enough to read the system of record, but it could not represent the many different people using it: a comment or a status change made through a shared bot loses the one thing that makes it meaningful — who did it — and any single account either sees too little for cross-team work or too much to be safe.
The server now runs many accounts through one deployment. Every request may carry the end user's own YouTrack personal access token, and the behavior follows from who is asking:
- Writes are always the real person. Creating an issue, editing an article, leaving a comment, or running a command requires a personal token and is attributed to that user — never to a faceless service account. With no token, the write tools decline with a clear explanation instead of acting anonymously.
- Reads try your token first, then reach further. A read is attempted with your own token; if YouTrack hides an entity from you, the server transparently retries through the shared read-only service account and flags the answer as such — so cross-team investigations still land, and reads can deliberately reach beyond your own permissions where the company wants that shared visibility.
- It works with no token at all. A client configured without a personal token serves anonymous reads through the service account, so one configuration can be handed to everyone unchanged — and simply upgrades itself the moment a user adds their own token.
Personal tokens are never logged and never used as cache keys — only a one-way digest is — and token-scoped responses bypass the caches entirely, so one person's private visibility can never leak into another's results. Queries about me refuse to resolve through the service account, so "issues assigned to me" always means the real caller or an explicit error, never a misleading fallback.
YouTrack Inside ChatGPT Company Knowledge
Corporate ChatGPT can treat an MCP server as a Company Knowledge source for Deep Research — but only if that server exposes exactly two actions, search and fetch, shaped to OpenAI's connector contract. A server with a rich, named tool surface (like the full YouTrack tool set) is turned away from that mode.
So the deployment runs two MCP servers side by side from one process: the full tool surface for general MCP clients, and a second, dedicated endpoint that exposes only the standards-compliant search + fetch pair. That second endpoint is what lets YouTrack register as a Company Knowledge source in corporate ChatGPT. Its fetch returns not just an issue's or article's body but a ## Comments (N) section as well — the recent discussion, trimmed to fit — because the decision, the caveat, and the "why" usually live in the conversation, not the description. Company Knowledge answers are then grounded in that discussion, not only the headline.
Where It Goes Beyond the Official Server
In late 2025, JetBrains shipped an official remote MCP server built into YouTrack 2025.3, and it has grown quickly — by mid-2026 it offers around two dozen read-and-write tools across issues, Knowledge Base articles, projects, saved searches, and time tracking, runs on both YouTrack Cloud and self-managed Server, and works with any standard MCP client. It is a capable first-party option, and much of what our server does, it now does too.
Our server still runs in production alongside it for a specific reason: a handful of capabilities our workflows rely on live only in ours. The comparison below is deliberately scoped to each server's built-in tool surface — the official server is extensible with custom tools shipped in YouTrack app packages, so a site could script some of these in, but they are not there out of the box.
| Capability | Our YouTrack MCP Server | Official YouTrack MCP Server |
|---|---|---|
| Batch issue fetch by ID (many full issues in one call) | Yes — order-preserving, with per-item error placeholders | No batch-by-ID tool; single-issue fetch only, and multiple issues come only from query-based search (basic fields) |
| Attachment access (URLs and metadata) on issues and articles | Yes | Not exposed by the built-in tools |
ChatGPT Deep Research / Company Knowledge (search + fetch contract) | Yes — dedicated endpoint; fetch includes the comment discussion | Not eligible — one endpoint with many named tools (usable only as a general ChatGPT connector) |
| Raw field / link-field / custom-field selection | Yes — curated by default, raw YouTrack JSON on demand | Fixed response shapes; no per-call field selector |
| Reading Knowledge Base article comments | Yes | Issue comments only — no article-comment tool |
Arbitrary YouTrack command execution (apply_command) | Yes — any command, assist pre-flight, dry-run, delete guard | No free-text command tool (only structured issue mutations) |
| Credential model | Personal-token-first, with shared service-account read fallback and token-less anonymous read | Strictly the calling user's own permissions — by security design |
These differences are not abstract. Agent workflows that bulk-fetch dozens of related issues in one shot, that open the files a ticket links, that register YouTrack as a Company Knowledge source in ChatGPT, that trim payloads to exactly the fields a task needs, that read the discussion under a Knowledge Base article, or that drive a state transition with a raw YouTrack command all lean on something the built-in server does not offer today. Everything else — issue and article read/write, project schema, saved searches, issue comments — the official server covers well, and where it does, reaching for it is the right call. Its strict per-user permission model, in particular, is a deliberate least-privilege design, not a shortcoming; our broader-reaching read is simply a different, more permissive posture that our cross-team work happens to want.
Integrations
The server is deployed across the AI-assisted toolchain Spotware uses every day:
- AI-assisted development and analysis. Engineers, analysts, and PMs reach the YouTrack MCP Server from MCP-aware tools such as Claude Code, Windsurf, Cursor, and VS Code Copilot Chat — pulling YouTrack context directly into coding, specification, and investigation workflows, and, with their own token, filing and updating work without leaving the IDE.
- Corporate ChatGPT, including as a Company Knowledge source. The dedicated Deep Research endpoint (see above) exposes the standards-compliant
searchandfetchpair required to register as a Company Knowledge source, so teams get YouTrack-grounded answers — discussion included — directly in the assistant they already use. - Cross-AI investigations. Because the same server speaks to multiple AI clients, an investigation started in one tool (a developer asking Claude Code about a regression's history) can continue in another (a PM asking ChatGPT about the same issue's product context) without losing the YouTrack grounding.
Measurable Impact
Scoped to calendar year 2025, based on production observations (instrumentation is partial, so the request count is given as a range rather than a precise number):
- Estimated ~15,000 retrieval and lookup requests served across analyst, PM, and developer workflows.
- Meaningful time saved on ticket discovery and investigation — work that previously required browser-based search and cross-referencing now happens inline in the AI assistant.
- Production-stable since June 2025, including continued operation after the official YouTrack MCP server became available.
Business Outcomes
- Reduced friction to use YouTrack as a factual grounding layer for both AI agents and humans — no more dead-end "AI can't see the tickets" investigations.
- AI that can act, not just read. With personal-token authentication, assistants file, update, and comment on work as the real person, so AI-assisted workflows can close the loop inside YouTrack instead of handing the human a draft to paste back.
- Faster, better-informed work across analysts, PMs, and developers, because the AI tools they already use can now reach — and update — project history directly.
- A reusable foundation for future YouTrack-aware AI workflows. The server is designed for extension, so new agent use cases (automation, summarization, cross-system retrieval) can be added without rebuilding the integration layer.
My Role
As AI Product Manager at Spotware, I led the YouTrack MCP Server from concept to production — framing it as a system-level capability rather than a per-tool integration, defining the agent-friendly tool semantics, and making the product calls that shaped it: shipping a dedicated Deep Research endpoint so YouTrack could back ChatGPT Company Knowledge, moving to a personal-token-first model so the server could serve many users as themselves while still reaching across teams, and — once JetBrains released its own remote MCP server — deciding to keep and keep investing in ours on the strength of the specific capabilities our workflows still depend on. For the broader role context, see AI Product Manager at Spotware.