YouTrack MCP
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.
README
YouTrack MCP TypeScript Server
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.
Features
-
Issue Management
- Create, read, update, delete issues
- Add comments and attachments
- Search issues with advanced filtering
- Track issue time and estimation
-
Agile & Sprint Management
- Create and manage sprints
- Assign issues to sprints
- Track sprint progress
-
State Management & Workflows
- Transition issues through states
- Start working on issues with automatic assignment
- Complete issues with proper resolution
-
Knowledge Base Integration
- Create and manage articles
- Link issues to knowledge base articles
- Search knowledge base content
-
Project Management
- List and filter projects
- Get project details and customization options
Installation
# Clone the repository
git clone https://github.com/itsalfredakku/youtrack-mcp.git
cd youtrack-mcp-ts
# Install dependencies
npm install
# Build the project
npm run build
Configuration
Copy the example environment file and configure it with your YouTrack instance details:
cp .env.example .env
Edit the .env file with your specific configuration:
# YouTrack instance URL (without trailing slash)
YOUTRACK_URL=https://your-instance.youtrack.cloud
# YouTrack permanent token
# Generate from: Profile > Account Security > Tokens
YOUTRACK_TOKEN=your-permanent-token-here
# Optional: Default project ID
PROJECT_ID=PROJECT-1
# Optional: Enable webhooks (true/false)
ENABLE_WEBHOOKS=false
# Optional: Webhook server port (default: 3000)
WEBHOOK_PORT=3000
# Optional: Webhook secret for signature verification
WEBHOOK_SECRET=your-webhook-secret
# Optional: Log level (error, warn, info, debug)
LOG_LEVEL=info
# Optional: Cache TTL in milliseconds (default: 300000 = 5 minutes)
CACHE_TTL=300000
# Optional: Enable cache (true/false, default: true)
CACHE_ENABLED=true
Usage
Starting the Server
# Start the MCP server
npm start
# Start in development mode with auto-reload
npm run dev
Interacting with the Server
The YouTrack MCP server exposes tools following the Model Context Protocol. LLM applications can discover and use these tools to interact with YouTrack.
Example: Creating an Issue
{
"tool": "create_issue",
"params": {
"projectId": "PROJECT-1",
"summary": "Implement new feature",
"description": "We need to implement the new feature as described in the specs.",
"type": "Task",
"priority": "Normal"
}
}
Example: Searching Issues
{
"tool": "search_issues",
"params": {
"query": "project: PROJECT-1 #bug state: Open",
"limit": 10
}
}
Example: Starting Work on an Issue
{
"tool": "start_working_on_issue",
"params": {
"issueId": "PROJECT-1-123",
"comment": "Starting implementation of this feature",
"estimatedTime": "2d"
}
}
Available Tools
The server provides 60+ tools for interacting with YouTrack. Here are some of the most commonly used:
Issue Management
create_issue- Create a new issueget_issue- Get issue detailsupdate_issue- Update an issueadd_issue_comment- Add a comment to an issuesearch_issues- Search for issues
Agile & Sprint Management
list_sprints- List all sprintscreate_sprint- Create a new sprintassign_issue_to_sprint- Add an issue to a sprintget_sprint_issues- Get all issues in a sprint
State Management
start_working_on_issue- Begin work on an issuechange_issue_state- Change an issue's statecomplete_issue- Mark an issue as completed
Knowledge Base
create_article- Create a knowledge base articleupdate_article- Update an articleget_article- Get article detailssearch_articles- Search knowledge base articles
Project Management
list_projects- List all accessible projectsget_project_details- Get project information
Development
Prerequisites
- Node.js 18.x or later
- npm 8.x or later
- A YouTrack instance with API access
Development Workflow
# Install dependencies
npm install
# Start in development mode with auto-reload
npm run dev
# Run linting
npm run lint
# Run type checking
npm run type-check
# Build the project
npm run build
Project Structure
src/index.ts- Main entry pointsrc/youtrack-client.ts- YouTrack API clientsrc/tools/- Individual MCP tool implementationssrc/utils/- Utility functions and helperssrc/types/- TypeScript type definitionssrc/config/- Configuration management
Testing
# Run all tests
npm test
# Run specific test suites
npm run test:queries
npm run test:issues
Troubleshooting
Common Issues
-
Authentication errors: Verify your YouTrack token has the necessary permissions and hasn't expired.
-
Project not found: Ensure the project ID exists and is accessible to your account.
-
API rate limiting: YouTrack may impose rate limits. Consider implementing retry logic for critical operations.
-
State transition errors: Some state transitions may be prohibited by your YouTrack workflow configuration.
Logs
Logs are stored in the logs directory:
combined.log- All log entrieserror.log- Error-level logs only
Set the LOG_LEVEL environment variable to control logging verbosity (error, warn, info, debug).
Contributing
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。