Jira MCP Server for Cursor
用于 Cursor 的 Jira MCP 服务器
基于 TypeScript 的 MCP 服务器与 Jira 集成,允许 Cursor 与 Jira 票证进行交互。
特征
列出 Jira 票证
获取票务详情
获取票证评论
创建新票证
向票证添加评论
更新票证状态
完整的 MCP 协议支持 Cursor 集成
Related MCP server: JIRA MCP Server
设置
安装依赖项:
npm install根据
.env.example创建一个.env文件并填写您的 Jira 凭据:
JIRA_HOST=https://your-domain.atlassian.net
JIRA_EMAIL=your-email@example.com
JIRA_API_TOKEN=your-api-token
PORT=3000要获取您的 Jira API 令牌:
点击“创建 API 令牌”
复制令牌并将其粘贴到您的
.env文件中
发展
运行开发服务器:
npm run dev构建并运行
构建项目:
npm run build启动服务器:
npm start光标集成
要将此 MCP 服务器与 Cursor 一起使用,您有两个选择:
选项 1:基于命令的集成(推荐)
构建项目:
npm run build打开光标的设置:
点击光标菜单
选择“设置”(或使用键盘快捷键)
导航至“扩展”或“集成”部分
添加 MCP 配置:
{
"mcpServers": {
"jira": {
"command": "node",
"args": ["/path/to/jira-mcp-cursor/dist/server.js"]
}
}
}将/path/to/jira-mcp-cursor替换为项目的绝对路径。
选项 2:基于 HTTP 的集成(替代)
启动 MCP 服务器(如果尚未运行):
npm start打开光标的设置:
点击光标菜单
选择“设置”(或使用键盘快捷键)
导航至“扩展”或“集成”部分
添加 MCP 配置:
{
"mcpServers": {
"jira": {
"url": "http://localhost:3000",
"capabilities": [
"list_tickets",
"get_ticket",
"get_comments",
"create_ticket",
"update_status",
"add_comment"
]
}
}
}在 Cursor 中使用 Jira
配置完 MCP 服务器后,就可以在 Cursor 中直接使用 Jira 命令了:
/jira list– 列出您的票证/jira view TICKET-123- 查看工单详情/jira comments TICKET-123- 获取工单评论/jira create创建新票据/jira comment TICKET-123- 添加评论/jira status TICKET-123- 更新票据状态
MCP 协议支持
服务器实现了 Cursor 所需的模型-客户端协议 (MCP):
基于命令的集成的 Stdio 通信
Jira 操作工具注册
API 端点
列出门票
检索 Jira 票证列表,可选择通过 JQL 查询进行过滤。
端点: GET /api/tickets
查询参数:
范围 | 类型 | 必需的 | 描述 |
jql | 细绳 | 不 | 用于过滤工单的 Jira 查询语言 (JQL) 字符串 |
示例请求:
GET /api/tickets?jql=project=TEST+AND+status=Open响应示例:
TEST-123: Example ticket (Open)
TEST-124: Another ticket (In Progress)获取门票
检索有关特定票证的详细信息。
端点: GET /api/tickets/:id
路径参数:
范围 | 类型 | 必需的 | 描述 |
ID | 细绳 | 是的 | Jira 票证 ID(例如,TEST-123) |
示例请求:
GET /api/tickets/TEST-123响应示例:
Key: TEST-123
Summary: Example ticket
Status: Open
Type: Task
Description:
Detailed ticket description获取票务评论
检索特定票证的所有评论。
端点: GET /api/tickets/:id/comments
路径参数:
范围 | 类型 | 必需的 | 描述 |
ID | 细绳 | 是的 | Jira 票证 ID(例如,TEST-123) |
示例请求:
GET /api/tickets/TEST-123/comments响应示例:
[3/20/2024, 10:00:00 AM] John Doe:
Comment text
---
[3/20/2024, 9:30:00 AM] Jane Smith:
Another comment
---创建工单
创建一个新的 Jira 票证。
端点: POST /api/tickets
请求正文:
范围 | 类型 | 必需的 | 描述 |
概括 | 细绳 | 是的 | 票务摘要 |
描述 | 细绳 | 是的 | 票证描述 |
项目密钥 | 细绳 | 是的 | 项目密钥(例如,TEST) |
问题类型 | 细绳 | 是的 | 问题类型(例如,任务、错误) |
示例请求:
POST /api/tickets
Content-Type: application/json
{
"summary": "New feature request",
"description": "Implement new functionality",
"projectKey": "TEST",
"issueType": "Task"
}响应示例:
Created ticket: TEST-124添加评论
向现有票证添加新评论。
端点: POST /api/tickets/:id/comments
路径参数:
范围 | 类型 | 必需的 | 描述 |
ID | 细绳 | 是的 | Jira 票证 ID(例如,TEST-123) |
请求正文:
范围 | 类型 | 必需的 | 描述 |
身体 | 细绳 | 是的 | 评论文本 |
示例请求:
POST /api/tickets/TEST-123/comments
Content-Type: application/json
{
"body": "This is a new comment"
}响应示例:
Added comment to TEST-123更新状态
更新现有票证的状态。
端点: POST /api/tickets/:id/status
路径参数:
范围 | 类型 | 必需的 | 描述 |
ID | 细绳 | 是的 | Jira 票证 ID(例如,TEST-123) |
请求正文:
范围 | 类型 | 必需的 | 描述 |
转换ID | 细绳 | 是的 | 要执行的转换的 ID |
示例请求:
POST /api/tickets/TEST-123/status
Content-Type: application/json
{
"transitionId": "21"
}响应示例:
Updated status of TEST-123搜索门票
使用文本搜索在指定项目中搜索票证。
端点: GET /api/tickets/search
查询参数:
范围 | 类型 | 必需的 | 描述 |
搜索文本 | 细绳 | 是的 | 在票证中搜索的文本 |
项目密钥 | 细绳 | 是的 | 要搜索的项目键的逗号分隔列表 |
最大结果 | 数字 | 不 | 返回的最大结果数(默认值:50) |
示例请求:
GET /api/tickets/search?searchText=login+bug&projectKeys=TEST,PROD&maxResults=10响应示例:
Found 2 tickets matching "login bug"
[TEST] TEST-123: Login page bug
Status: Open (Updated: 3/20/2024, 10:00:00 AM)
Description:
Users unable to login using SSO
----------------------------------------
[PROD] PROD-456: Fix login performance
Status: In Progress (Updated: 3/19/2024, 3:30:00 PM)
Description:
Login page taking too long to load
----------------------------------------Available Tools
7 toolsadd_commentC
Add a comment to a Jira ticket
| Name | Required | Description | Default |
|---|---|---|---|
| ticketId | Yes | The Jira ticket ID | |
| comment | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It states the tool 'Adds a comment,' implying a write/mutation operation, but doesn't disclose behavioral traits such as required permissions, whether the action is reversible, rate limits, or what happens on success/failure. This leaves significant gaps for a mutation tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, making it easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (a mutation with nested parameters) and lack of annotations or output schema, the description is incomplete. It doesn't cover behavioral aspects like error handling, return values, or usage context, which are critical for effective tool invocation by an AI agent.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 50%, with 'ticketId' documented but 'comment' only partially described (its 'body' property is documented). The description adds no parameter semantics beyond the schema, such as format examples or constraints. With moderate schema coverage, this meets the baseline but doesn't compensate for gaps.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Add a comment') and target resource ('to a Jira ticket'), providing a specific verb+resource combination. However, it doesn't distinguish this tool from potential sibling alternatives like 'get_comments' or 'update_status' that might also involve comments, leaving room for improvement.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives. With siblings like 'get_comments' (for reading) and 'create_ticket' (for creating), the description lacks context about prerequisites (e.g., needing an existing ticket) or exclusions, offering minimal usage direction.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
create_ticketC
Create a new Jira ticket
| Name | Required | Description | Default |
|---|---|---|---|
| ticket | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states 'Create' which implies a write/mutation operation, but doesn't mention permissions required, whether the operation is idempotent, error handling, or what happens on success (e.g., returns ticket ID). This is inadequate for a mutation tool with zero annotation coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that states the core function without unnecessary words. It's appropriately sized and front-loaded, making it easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a mutation tool with no annotations, no output schema, and 1 complex nested parameter (5 sub-properties), the description is incomplete. It doesn't cover behavioral aspects like authentication needs, error cases, or return values, nor does it explain parameter usage, making it inadequate for safe and effective tool invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description adds no parameter information beyond what's in the schema. With 0% schema description coverage (the schema has descriptions but they're not counted in coverage), the description fails to compensate by explaining the 'ticket' object structure, required fields like 'summary' and 'projectKey', or their purposes. This leaves parameters largely undocumented.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('Create') and resource ('new Jira ticket'), making the purpose immediately understandable. It doesn't differentiate from siblings like 'add_comment' or 'update_status', but it's specific enough to understand the core function without being tautological.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'update_status' or 'add_comment'. There's no mention of prerequisites, context, or exclusions, leaving the agent to infer usage solely from the tool name and schema.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_commentsB
Get comments for a specific Jira ticket
| Name | Required | Description | Default |
|---|---|---|---|
| ticketId | Yes | The Jira ticket ID (e.g., PROJECT-123) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, and the description does not disclose any behavioral traits such as read-only nature, authentication requirements, rate limits, or pagination. The agent has no additional context beyond the operation.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence with no wasted words. It is front-loaded and efficient.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple read tool with one parameter, the description is mostly complete. However, it lacks any mention of return format or potential limitations (e.g., pagination, ordering), but given the simplicity, a 4 is reasonable.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents the ticketId parameter. The description does not add extra meaning beyond what the schema provides, which is acceptable for a simple parameter.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb 'Get' and the resource 'comments for a specific Jira ticket', which distinguishes it from sibling tools like add_comment or delete_comment.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives (e.g., get_worklog for worklogs, or add_comment for adding). The description only states what it does, with no exclusions or context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_ticketC
Get details of a specific Jira ticket
| Name | Required | Description | Default |
|---|---|---|---|
| ticketId | Yes | The Jira ticket ID (e.g., PROJECT-123) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description must disclose behavioral traits. It only says 'get details' without specifying what data is returned (e.g., full issue object, including comments, attachments), authentication needs, or any side effects. Minimal transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Extremely concise, one sentence. No unnecessary words. However, the brevity sacrifices valuable context that could be added without bloating.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given one simple parameter and no output schema, the description is complete on a surface level but fails to provide necessary context such as expected output structure or how to handle errors. Lacks depth compared to complexity of Jira API.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% for the single parameter ticketId, which is well-described with format example. The description adds no additional meaning beyond the schema, so baseline score of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description 'Get details of a specific Jira ticket' clearly states the action (get) and resource (ticket). It is specific enough to distinguish from create or update tools, but lacks differentiation from closely related siblings like get_ticket_fields or get_comments.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives such as list_tickets or search_tickets. The description does not mention scenarios where retrieving a single ticket's details is appropriate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_ticketsB
List Jira tickets assigned to you
| Name | Required | Description | Default |
|---|---|---|---|
| jql | No | Optional JQL query to filter tickets |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations provided, so description must bear the burden. It only mentions listing assigned tickets, omitting details such as pagination, sorting, or behavior when no tickets exist. The 'list' nature suggests read-only, but this is implicit.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Single concise sentence with no extraneous information. Every word serves its purpose.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the simple nature (one optional parameter, no output schema), the description is minimally adequate. However, it lacks completeness in terms of expected behavior and differentiation from similar tools.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The only parameter 'jql' is already fully described in the schema (coverage 100%). The description adds no additional meaning or context beyond what the schema provides.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description clearly states it lists tickets assigned to the user, implying a default filter. However, it does not distinguish from sibling tools like search_tickets or get_board_issues, which may have overlapping functionality.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives like search_tickets or get_project_issues. The description simply states what it does without context for selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_ticketsB
Search for tickets in specific projects using text search
| Name | Required | Description | Default |
|---|---|---|---|
| searchText | Yes | The text to search for in tickets | |
| projectKeys | Yes | Comma-separated list of project keys | |
| maxResults | No | Maximum number of results to return |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations exist, so the description must fully disclose behavior. It lacks details on text matching (case sensitivity, wildcards), pagination beyond maxResults, and return format. The description is too brief for a search tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence that front-loads the action and purpose. No redundant or extraneous information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema and no annotations, the description provides basic intent but lacks details on search behavior, result structure, and edge cases. It is adequate but not comprehensive.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100% with descriptions for all parameters. The tool description adds no additional meaning beyond what the schema already provides, so it meets the baseline of 3.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (search), resource (tickets), and scope (specific projects via projectKeys). It distinguishes from siblings like 'list_tickets' (no text search) and 'get_ticket' (single ticket).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance on when to use this tool versus alternatives such as 'list_tickets' or 'get_project_issues'. Does not specify when not to use or provide criteria for selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
update_statusB
Update the status of a Jira ticket
| Name | Required | Description | Default |
|---|---|---|---|
| ticketId | Yes | The Jira ticket ID | |
| status | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It only states 'update' but does not disclose side effects, required permissions, reversibility, or return value. For a write operation, this is insufficient.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence with no extraneous words, conveying the core purpose efficiently.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no output schema, no annotations, and a nested parameter (status), the description lacks crucial details like how to obtain transitionId, what happens on success, and error conditions. It is insufficient for reliable tool invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 50%, and the description adds no additional context to parameters. It does not explain that status requires a valid transitionId from get_transitions, nor the meaning of ticketId beyond its schema description.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Update the status of a Jira ticket' clearly states the verb (update) and the resource (status of a Jira ticket). It effectively distinguishes from sibling tools like assign_ticket or update_ticket_fields.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives, such as that the status requires a valid transitionId obtained via get_transitions. Prerequisites and context for usage are absent.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
7 tool updates
v1.0.0- Added
add_comment - Added
create_ticket - Added
get_comments - Added
get_ticket - Added
list_tickets - Added
search_tickets - Added
update_status
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose targeting specific Jira operations: list_tickets vs. search_tickets differentiate between personal assignment and project-wide text search, while get_ticket vs. get_comments separate ticket details from comment retrieval. No tools appear to overlap in functionality, making misselection unlikely.
All tools follow a consistent verb_noun pattern using snake_case (e.g., add_comment, create_ticket, get_comments). The verbs are appropriately chosen for each action (add, create, get, list, search, update), creating a predictable and readable naming convention throughout the set.
With 7 tools, this server is well-scoped for Jira ticket management. Each tool earns its place by covering essential operations like creating, retrieving, listing, searching, updating status, and managing comments, without being overly sparse or bloated for the domain.
The tool set provides strong coverage for core Jira ticket workflows, including CRUD-like operations (create, get, list, update_status) and comment management. A minor gap exists in the lack of a tool to update ticket details beyond status (e.g., edit description or fields), but agents can work around this by creating new tickets or using comments.
Maintenance
Related MCP Connectors
Opinionated sprint tracker. Read/update tickets, sprints, velocity from Claude/Cursor/Zed.
Connect to Atlassian Jira, Confluence, Loom, and more to search, create, and manage your work.
Task management for people and AI agents, with scoped OAuth access to issues, projects, and docs.
Task management for people and AI agents, with scoped OAuth access to issues, projects, and docs.
Related MCP Servers
- AlicenseBqualityFmaintenanceA TypeScript-based server that enables interaction with Jira, providing tools to execute JQL queries, manage tickets, list projects and statuses through natural language.1126MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables seamless integration between Cursor IDE and JIRA, allowing users to retrieve issues, execute JQL searches, and log work through natural language interactions.-
- FlicenseNot gradedqualityDmaintenanceModel Context Protocol server that allows AI assistants to interact with Jira, supporting operations like creating tickets and fetching project information directly from the cursor.1-
- FlicenseAqualityDmaintenanceA Model Context Protocol (MCP) server that provides tools for interacting with Jira. Enables Cursor and other MCP clients to fetch tickets, manage linked tickets, and update ticket status.3-