RJ

rahulthedevil/jira-context-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

26 stars 13 forks 质量 55 趋势 0MIT

MCP服务器向像Cursor这样的AI编码代理提供Jira工单信息

概览

Jira 的模型上下文协议(MCP)实现允许您: - 输入 Jira 工单链接以获取问题详情并指示 Cursor 修复 - 检索指定 Jira 项目内分配给你的所有工单 - 根据特定问题类型过滤 Jira 问题,并自动引导 Cursor 解决 - 无缝集成 Jira 的 API 实现自动化和高效 - Node.js 20.17.0 或更高版本 - 带有 API 访问权限的 Jira 账户 - 一个 Jira API 令牌(可在 Atlassian API 令牌中生成) 通过Smithery自动安装Jira Context MCP for Claude Desktop: 3. 根据示例创建一个 .env 文件: 4. 用你的 Jira 信息编辑 .env 文件: 1. 在光标中,打开命令面板(Ctrl+Shift+P 或 Cmd+Shift+P)2.输入 3.选择 4。输入服务器 URL(默认:http://localhost:3000/sse) 连接后,你可以在光标中使用以下工具:

概述(AI 翻译)

Jira 的模型上下文协议(MCP)实现允许您:

  • 输入Jira工单链接以获取问题详情并指示光标修复
  • 检索指定Jira项目中分配给你的所有工单
  • 根据特定问题类型过滤Jira问题,并自动引导光标解决
  • 无缝集成Jira的API,实现自动化和效率

布置

先决条件

  • Node.js 20.17.0 或更高
  • 一个带有API访问权限的Jira账户
  • Jira API 令牌(可在 Atlassian API 令牌生成)

安装

通过Smithery安装

通过Smithery自动安装Jira Context MCP for Claude Desktop:

手动安装

  1. 克隆此仓库:

  2. 安装依赖:

  3. 基于示例创建 .env 文件:

  4. 编辑包含你的Jira信息的.env文件:

建造

构建项目时有:

用途

启动服务器

启动HTTP服务器:

或者使用CLI模式:

连接光标

  1. 在光标中,打开命令面板(Ctrl+Shift+P 或 Cmd+Shift+P)
  2. 输入 “连接到 MCP 服务器”
  3. 选择**“连接到MCP服务器”**

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Jira Context MCP

A Model Context Protocol (MCP) implementation for Jira that allows you to:

  • Input a Jira ticket link to fetch issue details and instruct Cursor to fix it
  • Retrieve all tickets assigned to you within a specified Jira project
  • Filter Jira issues based on a specific issue type and automatically direct Cursor to resolve them
  • Integrate seamlessly with Jira’s API for automation and efficiency

Setup

Prerequisites

  • Node.js 20.17.0 or higher
  • A Jira account with API access
  • A Jira API token (can be generated at Atlassian API Tokens)

Installation

Installing via Smithery

To install Jira Context MCP for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @rahulthedevil/Jira-Context-MCP --client claude

Installing manually

  1. Clone this repository:

    git clone https://github.com/yourusername/Jira-Context-MCP.git
    cd Jira-Context-MCP
    
  2. Install dependencies:

    npm install
    # or if you use pnpm
    pnpm install
    
  3. Create a .env file based on the example:

    cp .env.example .env
    
  4. Edit the .env file with your Jira details:

    JIRA_BASE_URL=https://your-domain.atlassian.net
    [email protected]
    JIRA_API_TOKEN=your-api-token-here
    HTTP_PORT=3000
    

Build

Build the project with:

npm run build
# or
pnpm build

Usage

Starting the Server

Start the HTTP server:

npm start
# or
pnpm start

Or use the CLI mode:

npm run start:cli
# or
pnpm start:cli

Connecting with Cursor

  1. In Cursor, open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  2. Type “Connect to MCP Server”
  3. Select “Connect to MCP Server”
  4. Enter the server URL (default: http://localhost:3000/sse)

Available Tools

Once connected, you can use the following tools in Cursor:

1. Get Jira Issue Details

Fetch detailed information about a specific Jira issue:

在 GitHub 查看完整 README

安装

npx -y @smithery/cli install @rahulthedevil/Jira-Context-MCP --client claude
新手?先看 mcpskill.org 教程 →