youtrack-rocket-mcp


Nameyoutrack-rocket-mcp JSON
Version 0.4.6 PyPI version JSON
download
home_pageNone
Summary🚀 Lightning-fast Model Context Protocol (MCP) server for YouTrack issue tracking system
upload_time2025-09-05 18:04:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.12
licenseMIT
keywords api async fast integration issue-tracking mcp rocket youtrack
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # YouTrack Rocket MCP 🚀

A lightning-fast Model Context Protocol (MCP) server implementation for JetBrains YouTrack, built with FastMCP for optimal performance and proper parameter schema generation. Enables AI assistants to interact with YouTrack issue tracking system with full type safety.

## What is MCP?

Model Context Protocol (MCP) is an open standard that enables AI models to interact with external tools and services through a unified interface. This project provides an MCP server that exposes YouTrack functionality to AI assistants that support the MCP standard, such as Claude in VS Code, Claude Desktop, GitHub Copilot, and Cursor IDE.

## Features

- **Issue Management**
  - `get_issue` - Get complete issue details
  - `get_issue_raw` - Get raw API response for an issue
  - `search_issues` - Quick search (returns only ID and summary, limit 100)
  - `search_issues_detailed` - Full search with custom fields filtering (limit 30)
  - `create_issue` - Create new bug reports, features, or tasks
  - `add_comment` - Add comments to issues with markdown support
  - `execute_command` - Batch update issues (assign, change state, priority, etc.)

- **Project Management**
  - `get_projects` - List all available projects
  - `get_project` - Get project configuration and custom fields
  - `get_project_by_name` - Find project by display name
  - `get_project_issues` - List issues in a project
  - `get_field_values` - Get valid values for a field (states, priorities, etc.)
  - `get_custom_fields` - List project's custom fields

- **User Management**
  - `get_current_user` - Get current API user
  - `get_user` - Fetch user details by ID
  - `get_user_by_login` - Find user by login name
  - `search_users` - Search users by name or login

- **Advanced Search**
  - `advanced_search` - Search with sorting capabilities
  - `filter_issues` - Structured filtering by multiple criteria
  - `search_with_custom_fields` - Search by custom field values

- **Search Help**
  - `get_search_syntax_guide` - Complete YouTrack query syntax reference
  - `get_common_queries` - Common query examples and templates

## Documentation

- 📖 [Full Documentation](./docs/README.md)
- ⚙️ [Configuration Guide](./docs/CONFIGURATION.md)
- 🏗️ [Architecture](./docs/ARCHITECTURE.md)
- 🚀 [Development Guide](./docs/DEVELOPMENT.md)

## Quick Start

### 🚀 Minimal Configuration Required!

**YouTrack Cloud** - Just one environment variable:
```bash
export YOUTRACK_API_TOKEN="perm:username.workspace.xxxxx"
uvx youtrack-rocket-mcp  # That's it!
```

**Self-hosted YouTrack** - Two environment variables:
```bash
export YOUTRACK_URL="https://youtrack.example.com"
export YOUTRACK_API_TOKEN="perm:xxxxx"
uvx youtrack-rocket-mcp
```

The server automatically detects your setup - no need to specify cloud vs self-hosted!

See [Configuration Guide](./docs/CONFIGURATION.md) for advanced options.

### Quick Start with Docker

```bash
# Run with Docker (for YouTrack Cloud instances)
docker run -i --rm \
     -e YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx \
     ivolnistov/youtrack-rocket-mcp:latest

# Or for self-hosted YouTrack instances
docker run -i --rm \
     -e YOUTRACK_URL=https://youtrack.example.com \
     -e YOUTRACK_API_TOKEN=perm:xxxxx \
     ivolnistov/youtrack-rocket-mcp:latest
```

For Cursor IDE, add to `.cursor/mcp.json`:

```json
{
    "mcpServers": {
        "YouTrack": {
            "type": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm",
            "-e", "YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx",
            "ivolnistov/youtrack-rocket-mcp:latest"
            ]
        }
    }
}
```

For Claude Desktop, set as MCP server:
```
docker run -i --rm -e YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx ivolnistov/youtrack-rocket-mcp:latest
```

## Installation & Usage

### Quick Start with uvx (No Installation Required)

Run it directly without installation using `uvx`:

```bash
# Run directly from PyPI (YouTrack Cloud)
export YOUTRACK_API_TOKEN="perm:username.workspace.xxxxx"
uvx youtrack-rocket-mcp

# Or for self-hosted YouTrack
export YOUTRACK_URL="https://youtrack.example.com"
export YOUTRACK_API_TOKEN="perm:xxxxx"
uvx youtrack-rocket-mcp

# Install persistently with uv tool
uv tool install youtrack-rocket-mcp
youtrack-rocket-mcp  # Run after installation
```

### Local Installation with FastMCP (Recommended)

1. Clone the repository:
   ```bash
   git clone https://github.com/ivolnistov/youtrack-rocket-mcp.git
   cd youtrack-rocket-mcp
   ```

2. Install dependencies with UV:
   ```bash
   # Install all dependencies including dev group (pytest, ruff, mypy, etc.)
   uv sync
   # Note: uv sync includes dev dependencies by default
   ```

3. Run the server:
   ```bash
   uv run python -m youtrack_rocket_mcp.server

   # Or with activated virtual environment
   python -m youtrack_rocket_mcp.server
   ```

### Testing with MCP Inspector

For development and testing, use the included inspector script:

```bash
# Make it executable (first time only)
chmod +x inspector.sh

# Run with MCP Inspector
./inspector.sh
```

This will open a browser with MCP Inspector where you can test all tools with proper parameter names (not args/kwargs).

### Using Docker Hub Image

1. Pull the Docker image:
   ```bash
   docker pull ivolnistov/youtrack-rocket-mcp:latest
   ```

2. Run the container with your YouTrack credentials:
   ```bash
   docker run -i --rm \
     -e YOUTRACK_URL=https://your-instance.youtrack.cloud \
     -e YOUTRACK_API_TOKEN=perm:your-api-token \
     ivolnistov/youtrack-rocket-mcp:latest
   ```

### Alternative: Build from Source

If you prefer to build the image yourself:

1. Clone the repository:
   ```bash
   git clone https://github.com/youtrack-rocket-mcp.git
   cd youtrack-rocket-mcp
   ```

2. Build the Docker image:
   ```bash
   docker build -t youtrack-rocket-mcp .
   ```

3. Run your locally built container:
   ```bash
   docker run -i --rm \
     -e YOUTRACK_URL=https://your-instance.youtrack.cloud \
     -e YOUTRACK_API_TOKEN=your-api-token \
     youtrack-rocket-mcp
   ```

### Building Multi-Platform Images

To build and push multi-architecture images (for both ARM64 and AMD64 platforms):

1. Make sure you have Docker BuildX set up:
   ```bash
   docker buildx create --use
   ```

2. Build and push for multiple platforms:
   ```bash
   docker buildx build --platform linux/amd64,linux/arm64 \
     -t ivolnistov/youtrack-rocket-mcp:latest \
     --push .
   ```

This builds the image for both ARM64 (Apple Silicon) and AMD64 (Intel/AMD) architectures and pushes it with both version-specific and latest tags.

### Security Considerations

⚠️ **API Token Security**

- Treat your mcp.json file as .env
- Rotate your YouTrack API tokens periodically
- Use tokens with the minimum required permissions for your use case

## Using with AI Applications

### Cursor IDE

To use your YouTrack MCP server with Cursor IDE:

#### Option 1: Using uvx (Recommended)

Create a `.cursor/mcp.json` file in your project:

```json
{
    "mcpServers": {
        "YouTrack": {
            "type": "stdio",
            "command": "uvx",
            "args": ["youtrack-rocket-mcp"],
            "env": {
                "YOUTRACK_API_TOKEN": "perm:username.workspace.xxxxx"
            }
        }
    }
}
```

#### Option 2: Using Docker

```json
{
    "mcpServers": {
        "YouTrack": {
            "type": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm",
            "-e", "YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx",
            "ivolnistov/youtrack-rocket-mcp:latest"
            ]
        }
    }
}
```

2. Replace `yourinstance.youtrack.cloud` with your actual YouTrack instance URL and `perm:your-token` with your actual API token.

3. Restart Cursor or reload the project for the changes to take effect.

### Claude Desktop

To use with Claude Desktop:

#### Option 1: Using uvx (Recommended)

1. Open Claude Desktop preferences
2. Navigate to the MCP section
3. Click Edit
4. Open claude_desktop_config.json
5. Add a new MCP server:

```json
{
    "mcpServers": {
        "YouTrack": {
            "type": "stdio",
            "command": "uvx",
            "args": ["youtrack-rocket-mcp"],
            "env": {
                "YOUTRACK_API_TOKEN": "perm:username.workspace.xxxxx"
            }
        }
    }
}
```

#### Option 2: Using Docker

```json
{
    "mcpServers": {
        "YouTrack": {
            "type": "stdio",
            "command": "docker",
            "args": ["run", "-i", "--rm",
            "-e", "YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx",
            "ivolnistov/youtrack-rocket-mcp:latest"
            ]
        }
    }
}
```

Replace the URL and token with your actual values.

### Claude Code CLI

For Claude Code users, add the MCP server using one of these commands:

**Option 1: Using uvx (Recommended)**
```bash
# Remove old server if exists
claude mcp remove youtrack-rocket-mcp

# Add new server with uvx
claude mcp add youtrack-rocket-mcp \
  --env YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx \
  --scope user \
  -- uvx youtrack-rocket-mcp
```

**Option 2: Using Local Installation with Python**
```bash
# Add new server with Python
claude mcp add youtrack-rocket-mcp \
  --env YOUTRACK_URL=https://your-youtrack-instance.com \
  --env YOUTRACK_API_TOKEN=your-api-token \
  --scope user \
  -- uv run --directory /path/to/youtrack-rocket-mcp python -m youtrack_rocket_mcp.server
```

**Option 3: Using Docker**
```bash
claude mcp add youtrack-rocket-mcp --env YOUTRACK_URL=https://your-youtrack-instance.com --env YOUTRACK_API_TOKEN=your-api-token --scope user -- docker run -i --rm tonyzorin/youtrack-mcp:latest
```

**Option 3: Using uv for dependency management**
```bash
claude mcp add youtrack-rocket-mcp --env YOUTRACK_URL=https://your-youtrack-instance.com --env YOUTRACK_API_TOKEN=your-api-token --scope user -- uv run --directory /path/to/youtrack-rocket-mcp python __main__.py
```

**Key syntax notes:**
- Environment variables (`--env`) must come **before** the `--` separator
- The command to run comes **after** the `--` separator
- Use `--scope user` for global access across all projects
- Replace `/path/to/youtrack-rocket-mcp` with your actual installation path

Replace the URL and API token with your actual YouTrack credentials.

**Example with real paths:**
```bash
# Working example (adjust path to your installation)
claude mcp add youtrack-rocket-mcp --env YOUTRACK_URL=https://youtrack.gaijin.team --env YOUTRACK_API_TOKEN=perm-your-token-here --scope user -- uv run --directory /Users/username/.mcp/youtrack-rocket-mcp python -m youtrack_rocket_mcp.server
```

### VS Code with Claude Extension

To use the YouTrack MCP server with VS Code:

1. Create a `.vscode/mcp.json` file with the following content:

   ```json
   {
     "servers": {
       "YouTrack": {
         "type": "stdio",
         "command": "docker",
         "args": ["run", "-i", "--rm",
           "-e", "YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx",
           "youtrack-rocket-mcp:latest"
         ]
       }
     }
   }
   ```

2. Replace `yourinstance.youtrack.cloud` with your actual YouTrack instance URL and `perm:your-token` with your actual API token.

## Available Tools (19 total)

The YouTrack MCP server provides the following tools with proper parameter schemas generated by FastMCP:

### Issues

- `get_issue` - Get details of a specific issue by ID
- `search_issues` - Search for issues using YouTrack query language
- `create_issue` - Create a new issue with custom fields support
- `add_comment` - Add a comment to an existing issue

### Projects

- `get_projects` - Get a list of all projects
- `get_project` - Get details of a specific project
- `get_project_by_name` - Get project by its full name
- `get_project_issues` - Get issues for a specific project
- `get_custom_fields` - Get custom fields configuration for a project

### Users

- `get_current_user` - Get information about the currently authenticated user
- `get_user` - Get information about a specific user
- `search_users` - Search for users
- `get_user_by_login` - Find a user by login name
- `get_user_groups` - Get groups for a user

### Search

- `advanced_search` - Advanced search with sorting options
- `filter_issues` - Search with structured filtering (supports date ranges)
- `search_with_custom_fields` - Search using custom field values
- `get_search_syntax_guide` - Get comprehensive guide for YouTrack search query syntax
- `get_common_queries` - Get common search query examples organized by use case

## Tool Parameter Format

When using the YouTrack MCP tools, it's important to use the correct parameter format to ensure your requests are processed correctly. Here's how to use the most common tools:

### Get Issue

To get information about a specific issue, you must provide the `issue_id` parameter:

```python
# Correct format
get_issue(issue_id="DEMO-123")
```

The issue ID can be either the readable ID (e.g., "DEMO-123") or the internal ID (e.g., "3-14").

### Add Comment

To add a comment to an issue, you must provide both the `issue_id` and `text` parameters:

```python
# Correct format
add_comment(issue_id="DEMO-123", text="This is a test comment")
```

### Create Issue

To create a new issue, you must provide at least the `project` and `summary` parameters:

```python
# Correct format
create_issue(project="DEMO", summary="Bug: Login page not working")

# With optional description and custom fields
create_issue(
    project="DEMO",
    summary="Bug: Login page not working",
    description="Users cannot log in after the latest update",
    custom_fields={"Priority": "Critical", "Type": "Bug"}
)
```

The project parameter can be either the project's short name (e.g., "DEMO") or its internal ID.

### Search Issues

To search for issues using YouTrack query language:

```python
# Simple search
search_issues(query="project: DEMO #Unresolved", limit=10)

# Advanced search with sorting
advanced_search(
    query="assignee: me priority: Critical created: {this week}",
    limit=20,
    sort_by="updated",
    sort_order="desc"
)

# Structured filter search
filter_issues(
    project="DEMO",
    assignee="me",
    state="Open",
    priority="High",
    created_after="2024-01-01",
    limit=10
)
```

#### Common Search Query Examples

- `project: MyProject #Unresolved` - All unresolved issues in MyProject
- `assignee: me state: Open` - Open issues assigned to current user
- `priority: Critical, Major` - Critical OR Major priority issues
- `created: today` - Issues created today
- `updated: {this week}` - Issues updated this week
- `"exact phrase"` - Search for exact phrase in summary/description
- `-state: Resolved` - Exclude resolved issues
- `type: Bug has: attachments` - Bugs with attachments

Use `get_search_syntax_guide()` to get a comprehensive reference of all search attributes and syntax.

### Working with Custom Fields

YouTrack projects often have required custom fields. Here's how to work with them effectively:

#### Getting Project Field Information

Before creating issues, use `get_custom_fields()` to see all custom fields:

```python
# Get custom fields for a project
get_custom_fields(project_id="ITSFT")
# or
get_custom_fields(project="ITSFT")
```

This returns:
- All custom fields with their IDs and names
- Whether each field is required or optional
- Possible values for enum/bundle fields
- Sample values from existing issues

#### Creating Issues with Custom Fields

```python
# Basic issue creation
create_issue(
    project="ITSFT",
    summary="Test task for Benderbot",
    description="Testing the Benderbot subsystem"
)

# With custom fields (use field names)
create_issue(
    project="ITSFT",
    summary="Server monitoring issue",
    description="Need to monitor server health",
    custom_fields={
        "Subsystem": "Bender Bot",
        "Type": "Task",
        "Priority": "Normal"
    }
)

# With custom fields (using field IDs for precise control)
create_issue(
    project="ITSFT",
    summary="Server monitoring issue",
    custom_fields={
        "93-1507": "Bender Bot",  # Subsystem field ID
        "93-2069": "Task",        # Type field ID
        "93-1505": "Normal"       # Priority field ID
    }
)
```

#### Common Custom Field Types

1. **Enum Fields** (Type, Priority, Severity):
   - Use the exact value name from possible_values
   - Case-sensitive matching

2. **Bundle Fields** (Subsystem, Component):
   - Use the name or ID from the bundle values
   - Example: "Bender Bot" or "100-561"

3. **User Fields** (Assignee, Owner):
   - Use login name or user ID
   - Example: "john.doe" or "1-234"

4. **Date Fields** (Due Date, Start Date):
   - Use timestamp in milliseconds
   - Example: 1750420800000

5. **Version Fields** (Fix Version, Affected Version):
   - Use version name or ID
   - Example: "2.0" or "99-123"

### Common MCP Format Issues

When using MCP tools through AI assistants, parameters may sometimes be passed in different formats. The YouTrack MCP server is designed to handle various parameter formats, but using the explicit format above is recommended for best results.

If you encounter errors with parameter format, try using the explicit key=value format shown in the examples above.

### Troubleshooting Issue Creation

If you get errors when creating issues:

1. **"Field required" error**:
   - Use `get_project_detailed()` to see required fields
   - Add the missing field to custom_fields

2. **"Project not found" error**:
   - Use `get_projects()` to list all projects
   - Use the project short name (e.g., "ITSFT") not the full name
   - Check if you have access to the project

3. **"Invalid field value" error**:
   - Check possible_values in get_project_detailed() output
   - Field values are often case-sensitive
   - For bundle fields, use exact names from the bundle

## Examples

Here are some examples of using the YouTrack MCP server with AI assistants:

### Get Issue

```
Can you get the details for issue DEMO-1?
```

### Search for Issues

```
Find all open issues assigned to me that are high priority
```

### Create a New Issue

```
Create a new bug report in the PROJECT with the summary "Login page is not working" and description "Users are unable to log in after the recent update."
```

### Add a Comment

```
Add a comment to issue PROJECT-456 saying "I've fixed this issue in the latest commit. Please review."
```

## Technical Details

### FastMCP Implementation

This server is built with FastMCP, which provides:
- Automatic JSON Schema generation from Python type hints
- Proper parameter validation
- Correct parameter names in MCP Inspector (no more args/kwargs)
- Full async support for optimal performance

### Configuration

The server can be configured via environment variables:

| Variable | Description | Default |
|----------|-------------|---------|
| `YOUTRACK_API_TOKEN` | YouTrack API token (required) | - |
| `YOUTRACK_URL` | YouTrack instance URL (for self-hosted) | - |
| `YOUTRACK_VERIFY_SSL` | Verify SSL certificates | `true` |
| `MCP_SERVER_NAME` | Name of the MCP server | `youtrack-rocket-mcp` |
| `MCP_DEBUG` | Enable debug logging | `false` |

### SSL Certificate Verification

For self-hosted instances with self-signed SSL certificates, you can disable SSL verification:

```bash
docker run -i --rm \
  -e YOUTRACK_URL=https://youtrack.internal.company.com \
  -e YOUTRACK_API_TOKEN=perm:your-permanent-token \
  -e YOUTRACK_VERIFY_SSL=false \
  ivolnistov/youtrack-rocket-mcp:latest
```

This option is only recommended for development or in controlled environments where you cannot add the certificate to the trust store.

### Debug Mode

You can enable debug logging for troubleshooting:

```bash
docker run -i --rm \
  -e YOUTRACK_URL=https://your-instance.youtrack.cloud \
  -e YOUTRACK_API_TOKEN=perm:your-permanent-token \
  -e MCP_DEBUG=true \
  ivolnistov/youtrack-rocket-mcp:latest
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "youtrack-rocket-mcp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "api, async, fast, integration, issue-tracking, mcp, rocket, youtrack",
    "author": null,
    "author_email": "Ilya Volnistov <ivolnistov@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/26/a5/a494c805c5b60a6c53ec75a2c9d55922033c7bc6b7944137a014746a9695/youtrack_rocket_mcp-0.4.6.tar.gz",
    "platform": null,
    "description": "# YouTrack Rocket MCP \ud83d\ude80\n\nA lightning-fast Model Context Protocol (MCP) server implementation for JetBrains YouTrack, built with FastMCP for optimal performance and proper parameter schema generation. Enables AI assistants to interact with YouTrack issue tracking system with full type safety.\n\n## What is MCP?\n\nModel Context Protocol (MCP) is an open standard that enables AI models to interact with external tools and services through a unified interface. This project provides an MCP server that exposes YouTrack functionality to AI assistants that support the MCP standard, such as Claude in VS Code, Claude Desktop, GitHub Copilot, and Cursor IDE.\n\n## Features\n\n- **Issue Management**\n  - `get_issue` - Get complete issue details\n  - `get_issue_raw` - Get raw API response for an issue\n  - `search_issues` - Quick search (returns only ID and summary, limit 100)\n  - `search_issues_detailed` - Full search with custom fields filtering (limit 30)\n  - `create_issue` - Create new bug reports, features, or tasks\n  - `add_comment` - Add comments to issues with markdown support\n  - `execute_command` - Batch update issues (assign, change state, priority, etc.)\n\n- **Project Management**\n  - `get_projects` - List all available projects\n  - `get_project` - Get project configuration and custom fields\n  - `get_project_by_name` - Find project by display name\n  - `get_project_issues` - List issues in a project\n  - `get_field_values` - Get valid values for a field (states, priorities, etc.)\n  - `get_custom_fields` - List project's custom fields\n\n- **User Management**\n  - `get_current_user` - Get current API user\n  - `get_user` - Fetch user details by ID\n  - `get_user_by_login` - Find user by login name\n  - `search_users` - Search users by name or login\n\n- **Advanced Search**\n  - `advanced_search` - Search with sorting capabilities\n  - `filter_issues` - Structured filtering by multiple criteria\n  - `search_with_custom_fields` - Search by custom field values\n\n- **Search Help**\n  - `get_search_syntax_guide` - Complete YouTrack query syntax reference\n  - `get_common_queries` - Common query examples and templates\n\n## Documentation\n\n- \ud83d\udcd6 [Full Documentation](./docs/README.md)\n- \u2699\ufe0f [Configuration Guide](./docs/CONFIGURATION.md)\n- \ud83c\udfd7\ufe0f [Architecture](./docs/ARCHITECTURE.md)\n- \ud83d\ude80 [Development Guide](./docs/DEVELOPMENT.md)\n\n## Quick Start\n\n### \ud83d\ude80 Minimal Configuration Required!\n\n**YouTrack Cloud** - Just one environment variable:\n```bash\nexport YOUTRACK_API_TOKEN=\"perm:username.workspace.xxxxx\"\nuvx youtrack-rocket-mcp  # That's it!\n```\n\n**Self-hosted YouTrack** - Two environment variables:\n```bash\nexport YOUTRACK_URL=\"https://youtrack.example.com\"\nexport YOUTRACK_API_TOKEN=\"perm:xxxxx\"\nuvx youtrack-rocket-mcp\n```\n\nThe server automatically detects your setup - no need to specify cloud vs self-hosted!\n\nSee [Configuration Guide](./docs/CONFIGURATION.md) for advanced options.\n\n### Quick Start with Docker\n\n```bash\n# Run with Docker (for YouTrack Cloud instances)\ndocker run -i --rm \\\n     -e YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx \\\n     ivolnistov/youtrack-rocket-mcp:latest\n\n# Or for self-hosted YouTrack instances\ndocker run -i --rm \\\n     -e YOUTRACK_URL=https://youtrack.example.com \\\n     -e YOUTRACK_API_TOKEN=perm:xxxxx \\\n     ivolnistov/youtrack-rocket-mcp:latest\n```\n\nFor Cursor IDE, add to `.cursor/mcp.json`:\n\n```json\n{\n    \"mcpServers\": {\n        \"YouTrack\": {\n            \"type\": \"stdio\",\n            \"command\": \"docker\",\n            \"args\": [\"run\", \"-i\", \"--rm\",\n            \"-e\", \"YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx\",\n            \"ivolnistov/youtrack-rocket-mcp:latest\"\n            ]\n        }\n    }\n}\n```\n\nFor Claude Desktop, set as MCP server:\n```\ndocker run -i --rm -e YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx ivolnistov/youtrack-rocket-mcp:latest\n```\n\n## Installation & Usage\n\n### Quick Start with uvx (No Installation Required)\n\nRun it directly without installation using `uvx`:\n\n```bash\n# Run directly from PyPI (YouTrack Cloud)\nexport YOUTRACK_API_TOKEN=\"perm:username.workspace.xxxxx\"\nuvx youtrack-rocket-mcp\n\n# Or for self-hosted YouTrack\nexport YOUTRACK_URL=\"https://youtrack.example.com\"\nexport YOUTRACK_API_TOKEN=\"perm:xxxxx\"\nuvx youtrack-rocket-mcp\n\n# Install persistently with uv tool\nuv tool install youtrack-rocket-mcp\nyoutrack-rocket-mcp  # Run after installation\n```\n\n### Local Installation with FastMCP (Recommended)\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/ivolnistov/youtrack-rocket-mcp.git\n   cd youtrack-rocket-mcp\n   ```\n\n2. Install dependencies with UV:\n   ```bash\n   # Install all dependencies including dev group (pytest, ruff, mypy, etc.)\n   uv sync\n   # Note: uv sync includes dev dependencies by default\n   ```\n\n3. Run the server:\n   ```bash\n   uv run python -m youtrack_rocket_mcp.server\n\n   # Or with activated virtual environment\n   python -m youtrack_rocket_mcp.server\n   ```\n\n### Testing with MCP Inspector\n\nFor development and testing, use the included inspector script:\n\n```bash\n# Make it executable (first time only)\nchmod +x inspector.sh\n\n# Run with MCP Inspector\n./inspector.sh\n```\n\nThis will open a browser with MCP Inspector where you can test all tools with proper parameter names (not args/kwargs).\n\n### Using Docker Hub Image\n\n1. Pull the Docker image:\n   ```bash\n   docker pull ivolnistov/youtrack-rocket-mcp:latest\n   ```\n\n2. Run the container with your YouTrack credentials:\n   ```bash\n   docker run -i --rm \\\n     -e YOUTRACK_URL=https://your-instance.youtrack.cloud \\\n     -e YOUTRACK_API_TOKEN=perm:your-api-token \\\n     ivolnistov/youtrack-rocket-mcp:latest\n   ```\n\n### Alternative: Build from Source\n\nIf you prefer to build the image yourself:\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/youtrack-rocket-mcp.git\n   cd youtrack-rocket-mcp\n   ```\n\n2. Build the Docker image:\n   ```bash\n   docker build -t youtrack-rocket-mcp .\n   ```\n\n3. Run your locally built container:\n   ```bash\n   docker run -i --rm \\\n     -e YOUTRACK_URL=https://your-instance.youtrack.cloud \\\n     -e YOUTRACK_API_TOKEN=your-api-token \\\n     youtrack-rocket-mcp\n   ```\n\n### Building Multi-Platform Images\n\nTo build and push multi-architecture images (for both ARM64 and AMD64 platforms):\n\n1. Make sure you have Docker BuildX set up:\n   ```bash\n   docker buildx create --use\n   ```\n\n2. Build and push for multiple platforms:\n   ```bash\n   docker buildx build --platform linux/amd64,linux/arm64 \\\n     -t ivolnistov/youtrack-rocket-mcp:latest \\\n     --push .\n   ```\n\nThis builds the image for both ARM64 (Apple Silicon) and AMD64 (Intel/AMD) architectures and pushes it with both version-specific and latest tags.\n\n### Security Considerations\n\n\u26a0\ufe0f **API Token Security**\n\n- Treat your mcp.json file as .env\n- Rotate your YouTrack API tokens periodically\n- Use tokens with the minimum required permissions for your use case\n\n## Using with AI Applications\n\n### Cursor IDE\n\nTo use your YouTrack MCP server with Cursor IDE:\n\n#### Option 1: Using uvx (Recommended)\n\nCreate a `.cursor/mcp.json` file in your project:\n\n```json\n{\n    \"mcpServers\": {\n        \"YouTrack\": {\n            \"type\": \"stdio\",\n            \"command\": \"uvx\",\n            \"args\": [\"youtrack-rocket-mcp\"],\n            \"env\": {\n                \"YOUTRACK_API_TOKEN\": \"perm:username.workspace.xxxxx\"\n            }\n        }\n    }\n}\n```\n\n#### Option 2: Using Docker\n\n```json\n{\n    \"mcpServers\": {\n        \"YouTrack\": {\n            \"type\": \"stdio\",\n            \"command\": \"docker\",\n            \"args\": [\"run\", \"-i\", \"--rm\",\n            \"-e\", \"YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx\",\n            \"ivolnistov/youtrack-rocket-mcp:latest\"\n            ]\n        }\n    }\n}\n```\n\n2. Replace `yourinstance.youtrack.cloud` with your actual YouTrack instance URL and `perm:your-token` with your actual API token.\n\n3. Restart Cursor or reload the project for the changes to take effect.\n\n### Claude Desktop\n\nTo use with Claude Desktop:\n\n#### Option 1: Using uvx (Recommended)\n\n1. Open Claude Desktop preferences\n2. Navigate to the MCP section\n3. Click Edit\n4. Open claude_desktop_config.json\n5. Add a new MCP server:\n\n```json\n{\n    \"mcpServers\": {\n        \"YouTrack\": {\n            \"type\": \"stdio\",\n            \"command\": \"uvx\",\n            \"args\": [\"youtrack-rocket-mcp\"],\n            \"env\": {\n                \"YOUTRACK_API_TOKEN\": \"perm:username.workspace.xxxxx\"\n            }\n        }\n    }\n}\n```\n\n#### Option 2: Using Docker\n\n```json\n{\n    \"mcpServers\": {\n        \"YouTrack\": {\n            \"type\": \"stdio\",\n            \"command\": \"docker\",\n            \"args\": [\"run\", \"-i\", \"--rm\",\n            \"-e\", \"YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx\",\n            \"ivolnistov/youtrack-rocket-mcp:latest\"\n            ]\n        }\n    }\n}\n```\n\nReplace the URL and token with your actual values.\n\n### Claude Code CLI\n\nFor Claude Code users, add the MCP server using one of these commands:\n\n**Option 1: Using uvx (Recommended)**\n```bash\n# Remove old server if exists\nclaude mcp remove youtrack-rocket-mcp\n\n# Add new server with uvx\nclaude mcp add youtrack-rocket-mcp \\\n  --env YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx \\\n  --scope user \\\n  -- uvx youtrack-rocket-mcp\n```\n\n**Option 2: Using Local Installation with Python**\n```bash\n# Add new server with Python\nclaude mcp add youtrack-rocket-mcp \\\n  --env YOUTRACK_URL=https://your-youtrack-instance.com \\\n  --env YOUTRACK_API_TOKEN=your-api-token \\\n  --scope user \\\n  -- uv run --directory /path/to/youtrack-rocket-mcp python -m youtrack_rocket_mcp.server\n```\n\n**Option 3: Using Docker**\n```bash\nclaude mcp add youtrack-rocket-mcp --env YOUTRACK_URL=https://your-youtrack-instance.com --env YOUTRACK_API_TOKEN=your-api-token --scope user -- docker run -i --rm tonyzorin/youtrack-mcp:latest\n```\n\n**Option 3: Using uv for dependency management**\n```bash\nclaude mcp add youtrack-rocket-mcp --env YOUTRACK_URL=https://your-youtrack-instance.com --env YOUTRACK_API_TOKEN=your-api-token --scope user -- uv run --directory /path/to/youtrack-rocket-mcp python __main__.py\n```\n\n**Key syntax notes:**\n- Environment variables (`--env`) must come **before** the `--` separator\n- The command to run comes **after** the `--` separator\n- Use `--scope user` for global access across all projects\n- Replace `/path/to/youtrack-rocket-mcp` with your actual installation path\n\nReplace the URL and API token with your actual YouTrack credentials.\n\n**Example with real paths:**\n```bash\n# Working example (adjust path to your installation)\nclaude mcp add youtrack-rocket-mcp --env YOUTRACK_URL=https://youtrack.gaijin.team --env YOUTRACK_API_TOKEN=perm-your-token-here --scope user -- uv run --directory /Users/username/.mcp/youtrack-rocket-mcp python -m youtrack_rocket_mcp.server\n```\n\n### VS Code with Claude Extension\n\nTo use the YouTrack MCP server with VS Code:\n\n1. Create a `.vscode/mcp.json` file with the following content:\n\n   ```json\n   {\n     \"servers\": {\n       \"YouTrack\": {\n         \"type\": \"stdio\",\n         \"command\": \"docker\",\n         \"args\": [\"run\", \"-i\", \"--rm\",\n           \"-e\", \"YOUTRACK_API_TOKEN=perm:username.workspace.xxxxx\",\n           \"youtrack-rocket-mcp:latest\"\n         ]\n       }\n     }\n   }\n   ```\n\n2. Replace `yourinstance.youtrack.cloud` with your actual YouTrack instance URL and `perm:your-token` with your actual API token.\n\n## Available Tools (19 total)\n\nThe YouTrack MCP server provides the following tools with proper parameter schemas generated by FastMCP:\n\n### Issues\n\n- `get_issue` - Get details of a specific issue by ID\n- `search_issues` - Search for issues using YouTrack query language\n- `create_issue` - Create a new issue with custom fields support\n- `add_comment` - Add a comment to an existing issue\n\n### Projects\n\n- `get_projects` - Get a list of all projects\n- `get_project` - Get details of a specific project\n- `get_project_by_name` - Get project by its full name\n- `get_project_issues` - Get issues for a specific project\n- `get_custom_fields` - Get custom fields configuration for a project\n\n### Users\n\n- `get_current_user` - Get information about the currently authenticated user\n- `get_user` - Get information about a specific user\n- `search_users` - Search for users\n- `get_user_by_login` - Find a user by login name\n- `get_user_groups` - Get groups for a user\n\n### Search\n\n- `advanced_search` - Advanced search with sorting options\n- `filter_issues` - Search with structured filtering (supports date ranges)\n- `search_with_custom_fields` - Search using custom field values\n- `get_search_syntax_guide` - Get comprehensive guide for YouTrack search query syntax\n- `get_common_queries` - Get common search query examples organized by use case\n\n## Tool Parameter Format\n\nWhen using the YouTrack MCP tools, it's important to use the correct parameter format to ensure your requests are processed correctly. Here's how to use the most common tools:\n\n### Get Issue\n\nTo get information about a specific issue, you must provide the `issue_id` parameter:\n\n```python\n# Correct format\nget_issue(issue_id=\"DEMO-123\")\n```\n\nThe issue ID can be either the readable ID (e.g., \"DEMO-123\") or the internal ID (e.g., \"3-14\").\n\n### Add Comment\n\nTo add a comment to an issue, you must provide both the `issue_id` and `text` parameters:\n\n```python\n# Correct format\nadd_comment(issue_id=\"DEMO-123\", text=\"This is a test comment\")\n```\n\n### Create Issue\n\nTo create a new issue, you must provide at least the `project` and `summary` parameters:\n\n```python\n# Correct format\ncreate_issue(project=\"DEMO\", summary=\"Bug: Login page not working\")\n\n# With optional description and custom fields\ncreate_issue(\n    project=\"DEMO\",\n    summary=\"Bug: Login page not working\",\n    description=\"Users cannot log in after the latest update\",\n    custom_fields={\"Priority\": \"Critical\", \"Type\": \"Bug\"}\n)\n```\n\nThe project parameter can be either the project's short name (e.g., \"DEMO\") or its internal ID.\n\n### Search Issues\n\nTo search for issues using YouTrack query language:\n\n```python\n# Simple search\nsearch_issues(query=\"project: DEMO #Unresolved\", limit=10)\n\n# Advanced search with sorting\nadvanced_search(\n    query=\"assignee: me priority: Critical created: {this week}\",\n    limit=20,\n    sort_by=\"updated\",\n    sort_order=\"desc\"\n)\n\n# Structured filter search\nfilter_issues(\n    project=\"DEMO\",\n    assignee=\"me\",\n    state=\"Open\",\n    priority=\"High\",\n    created_after=\"2024-01-01\",\n    limit=10\n)\n```\n\n#### Common Search Query Examples\n\n- `project: MyProject #Unresolved` - All unresolved issues in MyProject\n- `assignee: me state: Open` - Open issues assigned to current user\n- `priority: Critical, Major` - Critical OR Major priority issues\n- `created: today` - Issues created today\n- `updated: {this week}` - Issues updated this week\n- `\"exact phrase\"` - Search for exact phrase in summary/description\n- `-state: Resolved` - Exclude resolved issues\n- `type: Bug has: attachments` - Bugs with attachments\n\nUse `get_search_syntax_guide()` to get a comprehensive reference of all search attributes and syntax.\n\n### Working with Custom Fields\n\nYouTrack projects often have required custom fields. Here's how to work with them effectively:\n\n#### Getting Project Field Information\n\nBefore creating issues, use `get_custom_fields()` to see all custom fields:\n\n```python\n# Get custom fields for a project\nget_custom_fields(project_id=\"ITSFT\")\n# or\nget_custom_fields(project=\"ITSFT\")\n```\n\nThis returns:\n- All custom fields with their IDs and names\n- Whether each field is required or optional\n- Possible values for enum/bundle fields\n- Sample values from existing issues\n\n#### Creating Issues with Custom Fields\n\n```python\n# Basic issue creation\ncreate_issue(\n    project=\"ITSFT\",\n    summary=\"Test task for Benderbot\",\n    description=\"Testing the Benderbot subsystem\"\n)\n\n# With custom fields (use field names)\ncreate_issue(\n    project=\"ITSFT\",\n    summary=\"Server monitoring issue\",\n    description=\"Need to monitor server health\",\n    custom_fields={\n        \"Subsystem\": \"Bender Bot\",\n        \"Type\": \"Task\",\n        \"Priority\": \"Normal\"\n    }\n)\n\n# With custom fields (using field IDs for precise control)\ncreate_issue(\n    project=\"ITSFT\",\n    summary=\"Server monitoring issue\",\n    custom_fields={\n        \"93-1507\": \"Bender Bot\",  # Subsystem field ID\n        \"93-2069\": \"Task\",        # Type field ID\n        \"93-1505\": \"Normal\"       # Priority field ID\n    }\n)\n```\n\n#### Common Custom Field Types\n\n1. **Enum Fields** (Type, Priority, Severity):\n   - Use the exact value name from possible_values\n   - Case-sensitive matching\n\n2. **Bundle Fields** (Subsystem, Component):\n   - Use the name or ID from the bundle values\n   - Example: \"Bender Bot\" or \"100-561\"\n\n3. **User Fields** (Assignee, Owner):\n   - Use login name or user ID\n   - Example: \"john.doe\" or \"1-234\"\n\n4. **Date Fields** (Due Date, Start Date):\n   - Use timestamp in milliseconds\n   - Example: 1750420800000\n\n5. **Version Fields** (Fix Version, Affected Version):\n   - Use version name or ID\n   - Example: \"2.0\" or \"99-123\"\n\n### Common MCP Format Issues\n\nWhen using MCP tools through AI assistants, parameters may sometimes be passed in different formats. The YouTrack MCP server is designed to handle various parameter formats, but using the explicit format above is recommended for best results.\n\nIf you encounter errors with parameter format, try using the explicit key=value format shown in the examples above.\n\n### Troubleshooting Issue Creation\n\nIf you get errors when creating issues:\n\n1. **\"Field required\" error**:\n   - Use `get_project_detailed()` to see required fields\n   - Add the missing field to custom_fields\n\n2. **\"Project not found\" error**:\n   - Use `get_projects()` to list all projects\n   - Use the project short name (e.g., \"ITSFT\") not the full name\n   - Check if you have access to the project\n\n3. **\"Invalid field value\" error**:\n   - Check possible_values in get_project_detailed() output\n   - Field values are often case-sensitive\n   - For bundle fields, use exact names from the bundle\n\n## Examples\n\nHere are some examples of using the YouTrack MCP server with AI assistants:\n\n### Get Issue\n\n```\nCan you get the details for issue DEMO-1?\n```\n\n### Search for Issues\n\n```\nFind all open issues assigned to me that are high priority\n```\n\n### Create a New Issue\n\n```\nCreate a new bug report in the PROJECT with the summary \"Login page is not working\" and description \"Users are unable to log in after the recent update.\"\n```\n\n### Add a Comment\n\n```\nAdd a comment to issue PROJECT-456 saying \"I've fixed this issue in the latest commit. Please review.\"\n```\n\n## Technical Details\n\n### FastMCP Implementation\n\nThis server is built with FastMCP, which provides:\n- Automatic JSON Schema generation from Python type hints\n- Proper parameter validation\n- Correct parameter names in MCP Inspector (no more args/kwargs)\n- Full async support for optimal performance\n\n### Configuration\n\nThe server can be configured via environment variables:\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `YOUTRACK_API_TOKEN` | YouTrack API token (required) | - |\n| `YOUTRACK_URL` | YouTrack instance URL (for self-hosted) | - |\n| `YOUTRACK_VERIFY_SSL` | Verify SSL certificates | `true` |\n| `MCP_SERVER_NAME` | Name of the MCP server | `youtrack-rocket-mcp` |\n| `MCP_DEBUG` | Enable debug logging | `false` |\n\n### SSL Certificate Verification\n\nFor self-hosted instances with self-signed SSL certificates, you can disable SSL verification:\n\n```bash\ndocker run -i --rm \\\n  -e YOUTRACK_URL=https://youtrack.internal.company.com \\\n  -e YOUTRACK_API_TOKEN=perm:your-permanent-token \\\n  -e YOUTRACK_VERIFY_SSL=false \\\n  ivolnistov/youtrack-rocket-mcp:latest\n```\n\nThis option is only recommended for development or in controlled environments where you cannot add the certificate to the trust store.\n\n### Debug Mode\n\nYou can enable debug logging for troubleshooting:\n\n```bash\ndocker run -i --rm \\\n  -e YOUTRACK_URL=https://your-instance.youtrack.cloud \\\n  -e YOUTRACK_API_TOKEN=perm:your-permanent-token \\\n  -e MCP_DEBUG=true \\\n  ivolnistov/youtrack-rocket-mcp:latest\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "\ud83d\ude80 Lightning-fast Model Context Protocol (MCP) server for YouTrack issue tracking system",
    "version": "0.4.6",
    "project_urls": null,
    "split_keywords": [
        "api",
        " async",
        " fast",
        " integration",
        " issue-tracking",
        " mcp",
        " rocket",
        " youtrack"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d9fd3b7232786feca3134cc9d919108e15cafe46bec666ba61e4bf45f2df8959",
                "md5": "38d22e3a2b9ee86dde79a1e6065276f4",
                "sha256": "e6b944afbabfa090abcacce4495e068e5dd610a0c5b1d865989b729deb0036a9"
            },
            "downloads": -1,
            "filename": "youtrack_rocket_mcp-0.4.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "38d22e3a2b9ee86dde79a1e6065276f4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 58417,
            "upload_time": "2025-09-05T18:04:52",
            "upload_time_iso_8601": "2025-09-05T18:04:52.527329Z",
            "url": "https://files.pythonhosted.org/packages/d9/fd/3b7232786feca3134cc9d919108e15cafe46bec666ba61e4bf45f2df8959/youtrack_rocket_mcp-0.4.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "26a5a494c805c5b60a6c53ec75a2c9d55922033c7bc6b7944137a014746a9695",
                "md5": "93ee1a632faeffc312b4368bb9541dd6",
                "sha256": "b0c1f3196050ef39512c7a4efb30687d269a29051f47626d9bef26d374ab94a1"
            },
            "downloads": -1,
            "filename": "youtrack_rocket_mcp-0.4.6.tar.gz",
            "has_sig": false,
            "md5_digest": "93ee1a632faeffc312b4368bb9541dd6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 65882,
            "upload_time": "2025-09-05T18:04:53",
            "upload_time_iso_8601": "2025-09-05T18:04:53.728422Z",
            "url": "https://files.pythonhosted.org/packages/26/a5/a494c805c5b60a6c53ec75a2c9d55922033c7bc6b7944137a014746a9695/youtrack_rocket_mcp-0.4.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-05 18:04:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "youtrack-rocket-mcp"
}
        
Elapsed time: 0.99591s