Jira MCP Server

Jira MCP Server

镜像的

简介

Jira MCP 服务器让您能够使用自然语言与 Jira 对话,轻松获取和修改项目信息。基于 Model Context Protocol 构建,可与 Claude Desktop 无缝集成。

设置步骤

  1. 克隆并安装

    git clone https://github.com/George5562/Jira-MCP-Server.git
    cd Jira-MCP-Server
    npm install
    
  2. 配置环境变量
    创建 .env 文件并添加:

    JIRA_HOST=your-instance.atlassian.net
    JIRA_EMAIL=your-email@example.com
    JIRA_API_TOKEN=your-api-token
    

    https://id.atlassian.com/manage-profile/security/api-tokens 获取 API 令牌

  3. 构建并启动

    npm run build
    npm start
    
  4. 配置 Claude Desktop
    在 Claude Desktop 配置文件中添加:

    {
      "mcp_servers": [
        {
          "name": "jira-server",
          "command": "npm start",
          "cwd": "/path/to/jira-server",
          "env": {
            "JIRA_HOST": "your-instance.atlassian.net",
            "JIRA_EMAIL": "your-email@example.com",
            "JIRA_API_TOKEN": "your-api-token"
          }
        }
      ]
    }
    

核心功能

  • 获取项目问题

    {
      projectKey: "PROJECT",
      jql: "status = 'In Progress' AND assignee = currentUser()"
    }
    
  • 创建问题

    {
      projectKey: "PROJECT",
      summary: "问题标题",
      issueType: "Task",
      description: "详细描述",
      assignee: "accountId",
      labels: ["前端", "紧急"]
    }
    
  • 更新问题

    {
      issueKey: "PROJECT-123",
      summary: "更新后的标题",
      description: "新的描述",
      status: "进行中"
    }
    
  • 创建问题链接

    {
      linkType: "Blocks",
      inwardIssueKey: "PROJECT-124",
      outwardIssueKey: "PROJECT-123"
    }
    

描述字段格式

支持 Markdown 风格的格式化:

任务概述:

此任务涉及实现新功能:
- 功能 A 的实现
- 功能 B 的测试

步骤:
1. 设计组件
2. 实现逻辑

验收标准:
- 所有测试通过

更多资源