使用说明
工作整合MCP
这是一个小型MCP服务器,为多个工作系统提供工具 (Jira现在,Slack/GitHub和其他计划)。
当前工具
jira_get_issue-按密钥获取Jira问题jira_search-使用JQL搜索Jiraslack_get_message_by_url-按URL获取Slack消息slack_get_channel_history-获取最近的Slack消息slack_find_channel-将频道名称解析为IDslack_find_user-通过电子邮件或显示名称解析用户confluence_get_page-按ID获取Confluence页面(包括页脚+嵌套回复的内联评论)confluence_get_page_by_url-按URL获取Confluence页面(包括页脚+嵌套回复的内联评论)confluence_search-使用CQL搜索汇流
设置
-
安装依赖项:
npm install
-
配置环境变量(示例):
JIRA_BASE=https://company.atlassian.netJIRA_EMAIL=you@company.comJIRA_TOKEN=your_api_tokenJIRA_API_VERSION=3SLACK_TOKEN=xoxb-your-slack-bot-tokenCONFLUENCE_BASE=https://company.atlassian.net/wikiCONFLUENCE_EMAIL=you@company.comCONFLUENCE_TOKEN=your_api_token
-
在Cursor中注册MCP服务器(
~/.cursor/mcp.json):{ "mcpServers": { "work-integrations-mcp": { "command": "npx", "args": [ "tsx", "/ABS/PATH/jira-mcp/server.ts" ], "env": { "JIRA_BASE": "https://company.atlassian.net", "JIRA_EMAIL": "you@company.com", "JIRA_TOKEN": "your_api_token", "JIRA_API_VERSION": "3", "SLACK_TOKEN": "xoxb-your-slack-bot-token", "CONFLUENCE_BASE": "https://company.atlassian.net/wiki", "CONFLUENCE_EMAIL": "you@company.com", "CONFLUENCE_TOKEN": "your_api_token" } } } } -
重新启动游标。
用法示例
- “使用
jira_get_issue带钥匙CVR-248" - “使用JQL搜索Jira:
project = CVR ORDER BY updated DESC" - “使用
slack_get_message_by_url带urlhttps://..." - “使用
slack_get_channel_history带频道general" - “使用
slack_find_user通过电子邮件user@company.com" - “使用
confluence_get_page带有id123456" - “使用
confluence_get_page_by_url带urlhttps://.../wiki/..." - “使用
confluence_search与cqlspace = DOCS and type = page"
Slack设置说明
创建一个Slack应用程序并将其安装在您的工作区中。最小范围 公共频道:
channels:readchannels:historyusers:readusers:read.email
对于私人频道,请添加:
groups:readgroups:history
延伸
通过添加新文件夹为Slack、GitHub或其他服务添加新工具
在...之下 services/ 并在中注册该模块 server.ts:
- 创建
services/<service>/client.ts用于auth+neneneba API调用 - 创建
services/<service>/tools.ts出口aToolModule - 将模块导入
server.ts并将其传递给mergeToolModules - 如果需要,在Cursor MCP配置中添加任何新的环境变量
保持工具名称稳定,以便现有提示继续工作。