Jira CLI as an MCP
Project description
Jira CLI MCP
A Model Context Protocol (MCP) server that wraps the Jira CLI tool, exposing Jira commands through MCP resources, tools, and prompts for AI assistant integration.
Features
- MCP Resources: Access Jira data through standardized URL endpoints
- MCP Tools: Execute Jira commands (create issues, edit, assign, etc.)
- MCP Prompts: Use templates for common Jira workflows
- Authentication: Uses existing Jira CLI authentication
- Project Configuration: Customize default project and config
Prerequisites
- Python 3.11+
- Jira CLI installed and configured
- Access to a Jira instance
Installation
-
Clone this repository:
git clone https://github.com/yourusername/jira-cli-mcp.git cd jira-cli-mcp
-
Install dependencies with uv:
uv sync source .venv/bin/activate # On Windows: .venv\Scripts\activate
Configuration
The server can be configured via environment variables:
JIRA_CONFIG_FILE: Path to a custom Jira CLI config fileJIRA_PROJECT: Default Jira project to use
Example:
export JIRA_PROJECT="PROJ"
export JIRA_CONFIG_FILE="/path/to/config.yml"
Usage
Starting the Server
python main.py
By default, the server will start on port 8080.
Available Resources
jira://issues- List recent issuesjira://issue/{issue_key}- View issue detailsjira://epics- List epicsjira://sprints- List sprintsjira://projects- List projectsjira://boards- List boardsjira://search/{jql}- Search issues with JQL
Available Tools
create_issue- Create a new Jira issueedit_issue- Edit an existing Jira issueassign_issue- Assign issue to a usermove_issue- Move/transition issue to new statusadd_comment- Add comment to issuesearch_issues_tool- Search issues with flexible criteriaclone_issue- Clone an existing issuelink_issues- Link two issuescreate_epic- Create a new epicadd_to_sprint- Add issues to sprint
Available Prompts
create_bug_report- Template for creating a bug reportcreate_feature_request- Template for creating a feature requestdaily_standup_search- Search for issues relevant to daily standupissue_triage_workflow- Workflow for triaging new issues
Integrating with AI Assistants
This MCP server can be integrated with AI assistants that support the Model Context Protocol. Example integration:
from mcp.client import MCPClient
# Connect to the MCP server
client = MCPClient("http://localhost:8080")
# Use resources
issues = client.fetch_resource("jira://issues")
# Execute tools
result = client.execute_tool("create_issue", {
"summary": "Fix login bug",
"issue_type": "Bug",
"priority": "High"
})
# Get prompts
template = client.get_prompt("create_bug_report", {
"component": "Authentication",
"severity": "High"
})
License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jira_cli_mcp-0.1.0.tar.gz.
File metadata
- Download URL: jira_cli_mcp-0.1.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e97f5090a9c54c687c5c8931c7824a84b83807f2b2e09e311369f5af1f2b331
|
|
| MD5 |
dc4f77a7480e3370117a518ab880148a
|
|
| BLAKE2b-256 |
6dfa3499e6a0bbf85803f39fcb0eb356aa108c2587c7ca59ecdb3564abe51071
|
Provenance
The following attestation bundles were made for jira_cli_mcp-0.1.0.tar.gz:
Publisher:
publish.yaml on benomahony/jira_cli_mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jira_cli_mcp-0.1.0.tar.gz -
Subject digest:
3e97f5090a9c54c687c5c8931c7824a84b83807f2b2e09e311369f5af1f2b331 - Sigstore transparency entry: 237065543
- Sigstore integration time:
-
Permalink:
benomahony/jira_cli_mcp@8ffa17f065380082479ea8c7b528bebedc2af806 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/benomahony
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@8ffa17f065380082479ea8c7b528bebedc2af806 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file jira_cli_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jira_cli_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1368833d80ccef7d78f8f2f78dd752f65770ddbb5b34be829b49d5e0f725324a
|
|
| MD5 |
ae0f5d856e3bfc34abcb4c8e1ae74f84
|
|
| BLAKE2b-256 |
4ad9d29669b3f94e02d4d87560114bfdfa00892116749c620185a093d0de3ac8
|
Provenance
The following attestation bundles were made for jira_cli_mcp-0.1.0-py3-none-any.whl:
Publisher:
publish.yaml on benomahony/jira_cli_mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jira_cli_mcp-0.1.0-py3-none-any.whl -
Subject digest:
1368833d80ccef7d78f8f2f78dd752f65770ddbb5b34be829b49d5e0f725324a - Sigstore transparency entry: 237065544
- Sigstore integration time:
-
Permalink:
benomahony/jira_cli_mcp@8ffa17f065380082479ea8c7b528bebedc2af806 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/benomahony
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@8ffa17f065380082479ea8c7b528bebedc2af806 -
Trigger Event:
workflow_dispatch
-
Statement type: