Personal JIRA MCP
一个基于FastMCP框架的个人JIRA集成插件,用于查询JIRA问题详情、列表及进行基本操作,支持JIRA附件管理。
主要功能
- 查询JIRA问题详情和问题列表
- 创建和更新JIRA问题
- 获取项目列表和详情
- 管理和下载JIRA问题附件
- 自动将附件保存到~/.jira_mcp目录
- 按问题ID组织的子目录结构
- 支持下载单个或所有附件
安装
前提条件
- Python 3.10 或更高版本
- 安装 uv (推荐) 或 pip
安装 uv
uv 是一个快速的 Python 包管理器,推荐用于安装和管理 Python 包。
Linux / macOS
# 使用 curl 安装
curl -sSf https://astral.sh/uv/install.sh | sh
# 或使用 pip 安装
pip install uv
Windows
# 使用 PowerShell 安装
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# 或使用 pip 安装
pip install uv
验证安装
uv --version
从PyPI安装
# 使用 uv (推荐)
uv pip install personal-jira-mcp
# 或使用 pip
pip install personal-jira-mcp
从GitHub安装
# 使用 uv (推荐)
uv pip install git+https://github.com/yuezheng2006/mcp-server-jira.git
# 或使用 pip
pip install git+https://github.com/yuezheng2006/mcp-server-jira.git
本地开发安装
# 克隆仓库
git clone https://github.com/yuezheng2006/mcp-server-jira.git
cd mcp-server-jira
# 使用 uv 安装依赖并开发模式安装
uv pip install -e .
# 或使用 pip
pip install -e .
配置
创建一个.env文件,设置以下环境变量:
JIRA_SERVER_URL=http://your-jira-instance.com
JIRA_USERNAME=your_username
JIRA_PASSWORD=your_password
# 或者使用API令牌
JIRA_API_TOKEN=your_api_token
Cursor配置
在 .cursor/mcp.json 中添加以下配置:
{
"mcpServers": {
"personal-jira-mcp": {
"command": "personal-jira-mcp",
"args": ["--transport", "stdio"],
"env": {
"JIRA_SERVER_URL": "http://your-jira-instance.com",
"JIRA_USERNAME": "your_username",
"JIRA_PASSWORD": "your_password"
}
}
}
}
快速开始
启动MCP服务器
# 使用stdio传输模式
personal-jira-mcp --transport stdio
# 使用sse传输模式
personal-jira-mcp --transport sse
命令行工具
# 下载单个附件
personal-jira-extract ERP-161 example.png --output saved_file.png
# 下载问题的所有附件
personal-jira-attachments ERP-161
# 仅列出问题的所有附件,不下载
personal-jira-attachments ERP-161 --list-only
# 输出附件信息到JSON文件
personal-jira-attachments ERP-161 --output attachments.json
在Cursor中使用
配置好mcp.json后,可以在Cursor中使用以下自然语言命令:
查看JIRA问题ERP-161的详情
下载JIRA问题ERP-161的所有附件
搜索所有处于"进行中"状态的JIRA问题
详细文档
更详细的使用指南和API参考,请查看使用指南。
开发
安装开发依赖
# 使用 uv
uv pip install -e ".[dev]"
# 或使用 pip
pip install -e ".[dev]"
发布
构建并发布到PyPI
# 确保已安装构建工具
pip install build twine
# 构建包
python -m build
# 上传到PyPI
python -m twine upload dist/*
许可证
MIT
Metadata
Release files for personal-jira-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| personal_jira_mcp-0.1.0.tar.gz | 37.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| personal_jira_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.4 kB
Release files / personal_jira_mcp-0.1.0.tar.gz
| Download URL | personal_jira_mcp-0.1.0.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6fd502083a042d780ca4b2b292fd4e8f6cc1f7baba3af97d284c7ebc1bc7c30
|
|
BLAKE2b-256 checksum How to use checksums |
0600758a38548ba80c00f65fa60071e9d45d4d8e779c9e740fad761c0401c072
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Release files / personal_jira_mcp-0.1.0-py3-none-any.whl
| Download URL | personal_jira_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8727d02cfb7d5ee27b4b13ae25892d5ff223b626b0f4dffea852e7336dec5c4
|
|
BLAKE2b-256 checksum How to use checksums |
efa6ac1612844905e125bf144bd86dda130d98aa6d83adb814b7048ba020403e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Security for personal-jira-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.