Jira MCP Server

Integrations

  • Allows AI assistants to interact with Jira tickets by fetching assigned tickets, adding comments, getting available status transitions, and updating ticket status.

Jira MCP 服务器

简单模型上下文协议 (MCP) 服务器允许 AI 助手与 Jira 交互。该服务器使 AI 能够执行以下操作:

  • 获取用户分配的票证
  • 向票证添加评论
  • 获取可用的状态转换
  • 更新票证状态

先决条件

  • Docker
  • 具有 API 访问权限的 Jira 帐户
  • 配置环境变量(见下文)

环境变量

在根目录中创建一个.env文件,内容如下:

JIRA_SERVER=https://yourcompany.atlassian.net JIRA_USERNAME=yourname@yourcompany.com JIRA_API_KEY=yourapikey JIRA_PROJECT_KEY=yourprojectkey

从以下网址获取您的 API 密钥: https://id.atlassian.com/manage-profile/security/api-tokens

本地运行

选项 1:使用 Docker

# Build and run with Docker chmod +x run_docker_locally.sh ./run_docker_locally.sh

选项 2:使用 Python

  1. 安装依赖项:
pip install -r requirements.txt
  1. 运行服务器:
uvicorn src.server:app --reload

这将在http://localhost:8000上启动服务器。

使用 MCP 服务器

MCP 服务器的地址为http://localhost:8000/mcp

-
security - not tested
A
license - permissive license
-
quality - not tested

简单模型上下文协议服务器,使 AI 助手能够与 Jira 交互,允许执行获取票证、添加评论和更新票证状态等操作。

  1. Prerequisites
    1. Environment Variables
      1. Running Locally
        1. Option 1: Using Docker
        2. Option 2: Using Python
      2. Using the MCP Server
        ID: zit184vptz