An AI-friendly JIRA integration server using the Model Context Protocol (MCP). This server provides semantic tools for searching, retrieving, and interacting with JIRA issues without requiring knowledge of JQL or JIRA internals.
- π€ AI-Friendly Interface: Uses semantic parameters instead of JQL
- π Automatic JIRA Detection: Leverages gouqi 0.14.0 for Cloud/Server detection
- β‘ Smart Caching: Metadata caching with TTL for performance
- π οΈ Comprehensive Tools: Search, issue details, user issues
- π¦ Error Handling: MCP-compliant error codes and messages
- π Flexible Authentication: Supports PAT, Basic, Bearer, and Anonymous auth
- Rust 1.75.0 or later
- Access to a JIRA instance (Cloud or Server)
- JIRA authentication credentials
Set up your JIRA connection using environment variables:
# Required: JIRA instance URL
export JIRA_URL="https://your-company.atlassian.net"
# Required: Authentication
export JIRA_AUTH_TYPE="pat" # or "basic", "bearer", "anonymous"
export JIRA_TOKEN="your_personal_access_token"
# Optional: Advanced settings
export JIRA_CACHE_TTL="300" # Cache TTL in seconds (default: 300)
export JIRA_MAX_RESULTS="50" # Max search results (default: 50, max: 200)
export JIRA_REQUEST_TIMEOUT="30" # Request timeout in seconds (default: 30)# Clone and build
git clone https://github.com/yourusername/gouqi-mcp-server.git
cd gouqi-mcp-server
cargo build --release
# Run the server
./target/release/jira-mcp-server# Test tools
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' | ./target/debug/jira-mcp-server
# Test connection
echo '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"test_connection","arguments":{}}}' | ./target/debug/jira-mcp-serverSearch for JIRA issues using AI-friendly semantic parameters.
Example Usage:
{
"issue_types": ["story", "bug"],
"assigned_to": "me",
"status": ["open", "in_progress"],
"project_key": "PROJ",
"created_after": "7 days ago",
"limit": 25
}Get detailed information about a specific JIRA issue.
Example Usage:
{
"issue_key": "PROJ-123",
"include_comments": true,
"include_attachments": true
}Get issues assigned to a specific user with filtering options.
Example Usage:
{
"username": "me",
"status_filter": ["open", "in_progress"],
"issue_types": ["story", "bug"],
"due_date_filter": "overdue"
}Get server status and JIRA connection information.
Test JIRA connection and authentication.
Clear all cached metadata.
jira-mcp-server/
βββ Cargo.toml # Package configuration
βββ src/
β βββ main.rs # Server entry point
β βββ lib.rs # Main server implementation
β βββ config.rs # Configuration management
β βββ cache.rs # Metadata caching
β βββ jira_client.rs # JIRA API wrapper
β βββ semantic_mapping.rs # AI-friendly parameter mapping
β βββ error.rs # Error types and handling
β βββ tools/ # MCP tool implementations
β βββ mod.rs
β βββ search_issues.rs
β βββ issue_details.rs
β βββ user_issues.rs
βββ config/
β βββ jira-mcp-config.toml.example # Configuration example
βββ README.md
# Required
JIRA_URL="https://your-instance.atlassian.net"
JIRA_AUTH_TYPE="pat" # "pat", "basic", "bearer", "anonymous"
JIRA_TOKEN="your_token"
# For Basic Auth
JIRA_USERNAME="your_username"
JIRA_PASSWORD="your_password" # pragma: allowlist secret
# Optional
JIRA_CACHE_TTL="300"
JIRA_MAX_RESULTS="50"
JIRA_REQUEST_TIMEOUT="30"
JIRA_RATE_LIMIT="60"Copy config/jira-mcp-config.toml.example to jira-mcp-config.toml and customize:
jira_url = "https://your-company.atlassian.net"
cache_ttl_seconds = 300
max_search_results = 50
[auth]
type = "personal_access_token"
token = "your_token_here"
[issue_type_mappings]
story = ["Story", "User Story"]
bug = ["Bug", "Defect"]
feature = ["Feature", "Enhancement"]Add to your MCP configuration:
{
"servers": {
"jira": {
"command": "/path/to/jira-mcp-server",
"env": {
"JIRA_URL": "https://your-company.atlassian.net",
"JIRA_AUTH_TYPE": "pat",
"JIRA_TOKEN": "your_token"
}
}
}
}{
"mcpServers": {
"jira": {
"command": "/path/to/jira-mcp-server",
"env": {
"JIRA_URL": "https://your-company.atlassian.net",
"JIRA_AUTH_TYPE": "pat",
"JIRA_TOKEN": "your_token"
}
}
}
}The server translates AI-friendly parameters to JIRA concepts:
"story"β Story, User Story"bug"β Bug, Defect"feature"β Feature, Enhancement"task"β Task, Sub-task"capability"β Capability, Epic
"open"β Open, To Do, Backlog, New"in_progress"β In Progress, In Development, In Review"done"β Done, Closed, Resolved, Complete"blocked"β Blocked, On Hold, Waiting
"me"or"current_user"β Authenticated user"unassigned"β Unassigned issues- Any username or account ID
cargo buildRUST_LOG=debug cargo run# Install MCP Inspector
npm install -g @modelcontextprotocol/inspector
# Test your server
npx @modelcontextprotocol/inspector ./target/debug/jira-mcp-servercargo testFind my open stories:
AI: "Show me all the stories assigned to me that are currently open or in progress"
β Uses: search_issues with {"issue_types": ["story"], "assigned_to": "me", "status": ["open", "in_progress"]}
Get issue details:
AI: "What's the current status and description of PROJ-123?"
β Uses: get_issue_details with {"issue_key": "PROJ-123"}
Find overdue bugs:
AI: "Show me all bugs that are overdue"
β Uses: search_issues with {"issue_types": ["bug"], "created_after": "30 days ago", "status": ["open", "in_progress"]}
- Verify JIRA_URL is correct and accessible
- Check authentication credentials
- Test with
test_connectiontool - Check firewall/network restrictions
- Jira Cloud: Use Personal Access Token (PAT)
- Jira Server: Use username/password or API token
- Verify token permissions and expiration
- Check cache TTL settings
- Monitor API rate limits
- Use more specific search filters
- Consider increasing
JIRA_REQUEST_TIMEOUT
- Never commit credentials to version control
- Use environment variables for sensitive data
- Rotate tokens regularly
- Use least-privilege access tokens
- Monitor API usage and access logs
Set log levels for debugging:
RUST_LOG=debug ./target/debug/jira-mcp-server # Debug level
RUST_LOG=trace ./target/debug/jira-mcp-server # Verbose trace levelLog output includes:
- Tool invocations and parameters
- JIRA API calls and responses
- Cache operations and hit/miss rates
- Performance timing information
- Error details and stack traces
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License. See LICENSE for details.
- Model Context Protocol Specification
- Gouqi JIRA Client Documentation
- PulseEngine MCP Framework
- JIRA REST API Documentation
- GitHub Issues
π Happy JIRA automation with AI!