A Visual Studio Code extension that integrates YouTrack issue management and knowledge base capabilities directly into your development environment.
DISCLAIMER: This project is currently under active development. Features may change, and some functionality might be incomplete or experimental. We welcome feedback and contributions as we work toward a stable release.
- Browse and manage YouTrack projects, issues, and knowledge base articles
- Search for issues with advanced filtering and text completion
- View and edit issues with metadata and linked issues
- View and edit knowledge base articles
- Recent items tracking for quick access to frequently used content
- Status bar indicator for connection status
- Model Context Protocol (MCP) integration
- YouTrack data accessible through AI assistants like GitHub Copilot, Cursor, and VS Code Copilot
- Custom MCP server for direct AI interaction with YouTrack issues and articles
- Seamless querying of YouTrack projects and entities from within your AI coding assistant
- Visual Studio Code 1.74.0 or higher
- YouTrack instance with REST API access
- Permanent authentication token for YouTrack
This extension contributes the following settings that can be modified in your settings.json
file or through the Settings UI:
youtrack.instanceUrl
: URL of the YouTrack instance (e.g.,https://youtrack.example.com
orhttps://example.youtrack.cloud
)youtrack.tokenStorage
: Where to store the authentication token (Default:"secure"
)
youtrack.recentItemsLimit
: Maximum number of recent items to display in the Recent Items view (Default:15
)youtrack.tempFolderPath
: Directory path for storing temporary files used for editing YouTrack content (Default:"${workspaceFolder}/temp"
)
youtrack.mcpServer.enabled
: Enable/disable the AI Model Context Protocol server (Default:false
)youtrack.mcpServer.port
: Port number for the MCP server (Default:4777
)
Note: When changing MCP server settings, you need to reload VS Code for the changes to take effect.
- Install the extension from the VSCode Marketplace
- Open the command palette (Ctrl+Shift+P / Cmd+Shift+P)
- Run the command "YouTrack: Connect to YouTrack Instance"
- Enter your YouTrack URL and authentication token
- Access YouTrack content from the YouTrack view in the Activity Bar
- Configure MCP (optional)
The YouTrack extension now includes Model Context Protocol (MCP) server integration, allowing you to interact with YouTrack through AI assistants. This cutting-edge feature enables developers to:
- Query YouTrack projects and entities directly from AI coding assistants
- Retrieve issue and article information without leaving your coding environment
- Use natural language to interact with YouTrack data
- youtrack-get-projects: Lists all available YouTrack projects you have access to
- youtrack-get-entities-by-id: Retrieves specific issues and articles by their IDs
If you're having issues with the MCP server integration:
-
Verify MCP Server Status
- Check the VS Code output panel (View → Output → YouTrack)
- Look for messages like "MCP server started on port 4777"
- Ensure no port conflicts with other applications
-
Connection Test
- After enabling the MCP server, you can test if it's running correctly by opening a browser and navigating to
http://localhost:4777/
- You should see a message indicating the MCP server is running
- After enabling the MCP server, you can test if it's running correctly by opening a browser and navigating to
-
Common Issues
- Port already in use: Change the port in settings
- Authentication errors: Verify your YouTrack token is valid
- MCP tool not found by AI assistant: Ensure the extension is correctly configured in your AI assistant settings
In your mcp_config.json file (File → Preferences → Windsurf Settings → Click “Manage Plugins” button → Click “View raw config” button), add the following:
{
"mcpServers": {
"youtrack-mcp-server": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:4777/mcp", "--allow-http"]
}
}
}
In config (Agent Tools → Add Custom MCP), use “YouTrack” name and add the following MCP server config:
{
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:4777/mcp/"
]
}
In your User settings.json file (File → Preferences → Settings → Click “Edit in settings.json” link in “Mcp” section), add:
{
"mcp": {
"servers": {
"youtrack-mcp-server": {
"type": "http",
"url": "http://localhost:4777/mcp/"
}
}
}
}
- Node.js 18 or higher
- Bun package manager
- Visual Studio Code
# Clone the repository
git clone https://github.com/udamir/youtrack-vscode.git
cd youtrack-vscode
# Install dependencies
bun install
# Build the extension
bun run compile
# Run tests
bun run test
Integration tests require a real YouTrack instance and valid credentials.
- Create a
.env
file in the project root (copy from.env.example
) - Add your YouTrack credentials:
YOUTRACK_BASE_URL=https://your-instance.youtrack.cloud YOUTRACK_TOKEN=perm:your-permanent-token
- Run the integration tests:
bun run test:integration
Note: Integration tests will be skipped if no credentials are provided.
This extension is being actively developed with the following roadmap:
-
Current Phase: Implementation of core functionality and MCP integration
- YouTrack project, issue, and article browsing ✅
- Authentication and secure token storage ✅
- MCP server for AI assistant integration ✅
-
Coming Soon:
- Enhanced issue editing capabilities
- Improved offline support
- Advanced search filters
- Additional MCP tools for richer AI interactions
We welcome bug reports, feature requests, and contributions. Please submit issues on our GitHub repository.