更新时间:2026-07-30 GMT+08:00
Atlassin-MCP连接失败
问题现象
如果您的Atlassian-MCP连接失败,并返回如下报错信息:
MCP error -32000: Connection closed Server stderr: (node:36788) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. (Use `node --trace-warnings ...` to show where the warning was created) [9860] Using existing client port: 39570 [9860] Discovering OAuth server configuration... (node:9860) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. (Use `node --trace-warnings ...` to show where the warning was created) [9860] Discovered authorization server: https://auth.atlassian.com/VCeDsk8ZHncYF1g234fKtc4lNipbBhu3 [9860] [9860] Connecting to remote server: https://mcp.atlassian.com/v1/mcp/authv2 [9860] Using transport strategy: http-first [9860] Please authorize this client by visiting: https://auth.atlassian.com/authorize?response_type=code&client_id=wfiikAOsPzJNcW94j9xZQCxyDRF5yqOt&code_challenge=9xv1nceaTjD0iE_MCCJiZSujUXDCE090V91EKlVP-C8&code_challenge_method=S256&redirect_uri=http%3A%2F%2Flocalhost%3A39570%2Foauth%2Fcallback&state=5a86d09f-43f3-48de-9ad3-ec915094f6c1&scope=read%3Ame+read%3Aaccount+offline_access+email+read%3Ajira-work+write%3Ajira-work+search%3Aconfluence+read%3Aconfluence-user+read%3Apage%3Aconfluence+write%3Apage%3Aconfluence+read%3Acomment%3Aconfluence+write%3Acomment%3Aconfluence+read%3Aspace%3Aconfluence+read%3Ahierarchical-content%3Aconfluence+write%3Acomponent%3Acompass+read%3Acomponent%3Acompass+read%3Ascorecard%3Acompass+write%3Ascorecard%3Acompass+read%3Aevent%3Acompass+read%3Ametric%3Acompass+read%3Aall%3Atwg+write%3Aall%3Atwg&prompt=consent&resource=https%3A%2F%2Fmcp.atlassian.com%2Fv1%2Fmcp%2Fauthv2 [9860] Browser opened automatically. [9860] Authentication required. Initializing auth... [9860] Initializing auth coordination on-demand node:events:486 throw er; // Unhandled 'error' event ^ Error: listen EADDRINUSE: address already in use 127.0.0.1:39570 at Server.setupListenHandle [as _listen2] (node:net:1948:16) at listenInCluster (node:net:2005:12) at node:net:2214:7 at process.processTicksAndRejections (node:internal/process/task_queues:90:21) Emitted 'error' event on Server instance at: at emitErrorNT (node:net:1984:8) at process.processTicksAndRejections (node:internal/process/task_queues:90:21) { code: 'EADDRINUSE', errno: -4091, syscall: 'listen', address: '127.0.0.1', port: 39570 } Node.js v24.14.1 原因分析
以下任一原因都会导致您的Atlassian-MCP连接失败:
- Atlassian官方远程MCP接入地址:https://mcp.atlassian.com/v1/mcp/authv2,支持OAuth网页登录授权,您可能没有及时在弹出的网页确认授权。
- 您可能之前登录过其他Atlassian账号,因此您的服务端已经为其他账号授权。
解决方案
- 关闭mcp_settings.json文件。
- 执行命令,删除mcp-remote本地OAuth授权缓存。
- Windows(PowerShell管理员或普通终端)
Remove-Item -Recurse -Force "$env:USERPROFILE\.mcp-auth"
- Mac/Linux
rm -rf ~/.mcp-auth
- Windows(PowerShell管理员或普通终端)
- 您可选择以下任一方式准备浏览器环境。
- (推荐)使用浏览器无痕或隐私窗口访问授权页面,规避浏览器Cookie自动登录其他账号。
- 手动访问Atlassian统一登录页,若当前登录为其他账号,请退出登录。在常规浏览器下进入JIRA统一账号登录页。
- 在“已安装”页签,单击“Atlassian-MCP”所在行的
,如果MCP服务的状态为绿色,表示启用成功。 如果仍未解决问题,您可以通过华为云工单系统提交工单获取华为云的客户服务支持。