Skip to main content
Glama

youtrack-mcp

一个用于 YouTrackMCP 服务器,使用 TypeScript 和 Bun 构建。它适用于任何 YouTrack 实例(Cloud 或自托管)——你只需提供基础 URL 和 API 令牌,无需硬编码任何内容。

设置

你需要一个 YouTrack 永久令牌:在 YouTrack 中,前往你的个人资料 → 账户安全新建令牌...

设置两个环境变量:

  • YOUTRACK_BASE_URL — 你的实例的 REST API 基础 URL,例如 https://mycompany.youtrack.cloud/api,或自托管安装的 https://youtrack.mycompany.com/api

  • YOUTRACK_TOKEN — 永久令牌。

使用 Bun 安装依赖:

bun install

直接运行

YOUTRACK_BASE_URL=https://mycompany.youtrack.cloud/api YOUTRACK_TOKEN=perm:xxxx bun run src/index.ts

在 MCP 客户端中配置

例如,在 Claude Code / Claude Desktop 的 mcp.json 中:

{
  "mcpServers": {
    "youtrack": {
      "command": "bun",
      "args": ["run", "/path/to/youtrack-mcp/src/index.ts"],
      "env": {
        "YOUTRACK_BASE_URL": "https://mycompany.youtrack.cloud/api",
        "YOUTRACK_TOKEN": "perm:xxxx"
      }
    }
  }
}

Related MCP server: YouTrack MCP

工具

工具按资源分组,并共享一个 fields 参数(YouTrack 的部分响应语法),带有合理的默认值,因此你只需在需要更多或更少数据时指定它。

  • 问题list_issues(搜索)、get_issuecreate_issueupdate_issuedelete_issueexecute_command(通过其自然查询语法应用任何 YouTrack 命令——状态、经办人、优先级、链接、标签、冲刺等,例如 "State Fixed assignee John.Doe"

  • 评论list_issue_commentsadd_issue_commentupdate_issue_commentdelete_issue_comment

  • 链接list_issue_linkslist_issue_link_types

  • 标签list_tagscreate_taglist_issue_tagsadd_issue_tagremove_issue_tag

  • 时间跟踪list_issue_work_itemsadd_issue_work_itemupdate_issue_work_itemdelete_issue_work_itemlist_work_items

  • 项目list_projectsget_projectcreate_projectupdate_projectlist_project_custom_fields

  • 用户与组get_current_userlist_usersget_userlist_groups

  • 知识库list_articlesget_articlecreate_articleupdate_articledelete_article

  • 敏捷看板list_agile_boardsget_agile_boardlist_sprintsget_sprint

  • 已保存的搜索list_saved_queries

  • 逃生舱youtrack_raw_request 直接调用 YouTrack REST API 的任何端点(方法、路径、查询、请求体),用于处理专用工具未涵盖的长尾管理/设置端点。

设计

  • src/youtrack/client.ts — 唯一直接与 HTTP 通信的地方:认证头、URL/查询构建、JSON 与错误处理。所有工具都通过它。

  • src/youtrack/fields.ts — 每个实体的默认 fields 预设,取自 YouTrack 自己的 OpenAPI 默认值。

  • src/youtrack/params.ts — 共享的 Zod 模式片段(fields、分页、ID),在多个工具间复用。

  • src/tool.tsdefineTool + registerTools,因此每个工具文件只需声明名称/描述/模式/处理器,MCP 响应/错误包装在一个地方完成。

  • src/youtrack/tools/*.ts — 每个资源一个文件,每个工具只有几行,基于上述共享组件构建。

开发

bun run typecheck   # tsc --noEmit
bun run dev         # run with --watch
A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    MCP server for Yandex Tracker API, enabling AI assistants to search, read, create, and edit issues, as well as manage comments, attachments, and links in Yandex Tracker.
    247
    1
    MIT
  • A
    license
    Not graded
    quality
    F
    maintenance
    MCP server for interacting with YouTrack, enabling issue management, project operations, and search via natural language.
    34
    90
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server for YouTrack integration, providing a standardized interface for LLMs to interact with YouTrack's issue tracking, agile management, and knowledge base features.
    12
    22
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for generating rough-draft project plans from natural-language prompts.

  • A MCP server built for developers enabling Git based project management with project and personal…

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bacali95/youtrack-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server