与 Confluence 交互
这是一个基于 TypeScript 的 MCP 服务器,提供了与 Confluence 交互的工具。它通过提供以下内容来展示核心 MCP 概念:
execute_cql_searchcql, limit(默认值:10)。get_page_contentpageId。update_page_contentpageId, content, title(可选,如果您想更改它)。安装依赖项:
npm install
构建服务器:
npm run build
开发时自动重建:
npm run watch
要通过 Smithery 自动安装 Confluence Communication Server MCP 服务器到 Claude Desktop:
npx -y @smithery/cli install @KS-GEN-AI/confluence-mcp-server --client claude
要在 Claude Desktop 中使用,请添加服务器配置:
在 MacOS 上:~/Library/Application Support/Claude/claude_desktop_config.json
在 Windows 上:%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"Confluence communication server": {
"command": "node",
"args": ["/PATH_TO_THE_PROJECT/build/index.js"],
"env": {
"CONFLUENCE_URL": "https://XXXXXXXX.atlassian.net/wiki",
"CONFLUENCE_API_MAIL": "您的邮箱",
"CONFLUENCE_API_KEY": "从 https://id.atlassian.com/manage-profile/security/api-tokens 获取的密钥"
}
}
}
}
由于 MCP 服务器通过标准 I/O 进行通信,调试可能会很困难。我们推荐使用 MCP Inspector,它作为一个包脚本可用:
npm run inspector
Inspector 将提供一个 URL,您可以在浏览器中访问调试工具。