使用说明
引言
此存储库提供了一个模型上下文提供程序(MCP)服务器,该服务器集成了 Jira通过GitHub Copilot Chat获得门票。它从以下位置获取相关信息 Jira增强了AI驱动代码建议的上下文。
特性
- 根据提供的票证ID获取Jira票证详细信息。
- 获取任何链接的Jira门票
- 提供Jira票证的票证类型、摘要、描述和组件。
设置
促进地方发展
-
克隆存储库:
git clone https://github.com/amattu2/jira-mcp-server.git cd jira-mcp-server -
安装依赖项:
npm install -
构建项目:
npm run build -
设置VSCode MCP(
.vscode/mcp.json):{ "servers": { "jira-ticket-mcp": { "type": "stdio", "command": "node", "args": [ "path_to_the_project/build/index.js" ], "env": { "JIRA_API_TOKEN": "${input:jira-api-token}", "JIRA_BASE_URL": "${input:jira-base-url}" } } }, "inputs": [ { "type": "promptString", "id": "jira-api-token", "description": "The Jira API token to use for authentication", "password": true }, { "type": "promptString", "id": "jira-base-url", "description": "The base URL of the Jira instance (e.g. https://example.com)", "password": false } ] }
适用于GitHub MCP(复制品编码代理)
-
导航到存储库设置
-
查找复制品>编码代理
-
MCP配置
-
添加具有以下详细信息的新MCP配置:
{ "mcpServers": { "jira": { "type": "local", "command": "npx", "args": [ "jira-cloud-mcp-server@latest" ], "env": { "JIRA_API_TOKEN": "COPILOT_MCP_JIRA_API_TOKEN", "JIRA_BASE_URL": "COPILOT_MCP_JIRA_BASE_URL" }, "tools": ["*"] } } } -
添加
COPILOT_MCP_JIRA_API_TOKEN和COPILOT_MCP_JIRA_BASE_URL“环境机密”下存储库的机密>copilot环境。
