Skip to main content

JIRA MCP for querying JIRA details and lists

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

personal_jira_mcp-0.1.0.tar.gz (37.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

personal_jira_mcp-0.1.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file personal_jira_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: personal_jira_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for personal_jira_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c6fd502083a042d780ca4b2b292fd4e8f6cc1f7baba3af97d284c7ebc1bc7c30
MD5 ba1cd5de442d4f837150f7ff8ff880b8
BLAKE2b-256 0600758a38548ba80c00f65fa60071e9d45d4d8e779c9e740fad761c0401c072

See more details on using hashes here.

File details

Details for the file personal_jira_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for personal_jira_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8727d02cfb7d5ee27b4b13ae25892d5ff223b626b0f4dffea852e7336dec5c4
MD5 a4a665a4ab3bda1ae1ded4d185a69d6e
BLAKE2b-256 efa6ac1612844905e125bf144bd86dda130d98aa6d83adb814b7048ba020403e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page