JIRA MCP 服务器是一个 MCP 服务器,它让大型语言模型(LLMs)能借助标准化工具和上下文与 JIRA 进行交互。此服务器具备使用 JQL 搜索问题以及检索特定问题详细信息的功能,为用户在 JIRA 系统中高效获取信息提供了便利。
若要使用 JIRA MCP 服务器,需完成以下先决条件的准备:
npm
JIRA_API_KEY
。JIRA_USER_EMAIL
。npm install jira-mcp-server
node index.js
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"jira": {
"command": "npx",
"args": ["-y", "jira-mcp"],
"env": {
"JIRA_INSTANCE_URL": "https://your-instance.atlassian.net",
"JIRA_USER_EMAIL": "your-email@company.com",
"JIRA_API_KEY": "your-api-token"
}
}
}
}
jql_search
)执行带有自定义参数的 JQL 查询。 输入示例:
{
"command": "jql_search",
"issueQuery": "project = ABC AND status = 'In Progress'",
"maxResults": 50,
"startIndex": 0
}
输出示例:
{
"issues": [
{
"id": "1234",
"key": "ABC-123",
"title": "Implement New Feature",
"status": "In Progress",
"priority": "High",
"assignee": "张三"
},
// 其他问题...
],
"total": 100
}
get_issue
)检索特定问题的详细信息。 输入示例:
{
"command": "get_issue",
"issueIdOrKey": "ABC-123"
}
输出示例:
{
"id": "1234",
"key": "ABC-123",
"title": "Implement New Feature",
"status": "In Progress",
"priority": "High",
"assignee": "张三",
"description": "需要实现新功能...",
"labels": ["feature", "urgent"],
"comments": [
{
"id": "5678",
"author": "李四",
"content": "请优先处理此问题。",
"createdAt": "2023-10-01T12:00:00Z"
},
// 其他评论...
],
"history": [
{
"actionDate": "2023-10-01T10:00:00Z",
"action": "status changed to 'In Progress'"
},
// 其他记录...
]
}
创建一个 .env
文件并添加以下内容:
JIRA_INSTANCE_URL=https://your-instance.atlassian.net
JIRA_USER_EMAIL=your-email@company.com
JIRA_API_KEY=your-api-token
本项目采用 MIT 许可证。
欢迎大家为项目贡献代码!请随时提交 PR。