mcpField
C
Confluence Communication Server MCP Server

Confluence Communication Server MCP Server

本地服务
github.com/KS-GEN-AI记忆与知识1427 周前更新

关于 Confluence Communication Server MCP Server

这是一个用于与 Confluence 交互的 TypeScript MCP 服务,适合需要搜索、读取或更新页面的客户端。它提供 CQL 搜索和页面内容管理工具。

主要功能

  1. 01使用 CQL 查询页面
  2. 02获取页面内容
  3. 03更新页面内容和标题

适用场景

  1. 01查找符合 CQL 条件的页面
  2. 02读取 Confluence 页面
  3. 03修改页面内容或标题

MCP 相关

向 MCP 客户端提供 Confluence 搜索、页面读取和页面更新工具。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

mcp.json · 通用配置
{
"mcpServers": {
"confluence": {
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
启动命令npx -y @smithery/cli

本地服务需要在你的电脑上安装运行环境(如 Node.js 18+)。各客户端的配置文件位置不同,请参考客户端文档。

安装包
npm@smithery/cli

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

Confluence Communication Server MCP 服务

smithery badge

与 Confluence 交互

这是一个基于 TypeScript 的 MCP 服务,提供用于与 Confluence 交互的工具。它通过提供以下功能展示了 MCP 的核心概念:

  • 用于执行 CQL 查询以搜索页面的工具
  • 用于获取 Confluence 页面内容的工具
  • 用于更新 Confluence 页面内容的工具
Confluence Communication Server MCP server

功能

Confluence 工具

execute_cql_search
  • 用途:运行 CQL 查询以搜索 Confluence 页面。
  • 参数:cql、limit(默认值:10)。
get_page_content
  • 用途:获取 Confluence 页面的内容。
  • 参数:pageId。
update_page_content
  • 用途:更新 Confluence 页面的内容。
  • 参数:pageId、content、title(可选,如果要更改标题)。

开发

安装依赖项:

npm install

构建服务:

npm run build

在开发模式下自动重新构建:

npm run watch

安装

通过 Smithery 安装

通过 Smithery 自动为 Claude Desktop 安装 Confluence Communication Server MCP 服务:

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": "Your email",
        "CONFLUENCE_API_KEY": "KEY_FROM: https://id.atlassian.com/manage-profile/security/api-tokens"
      }
    }
  }
}
调试

由于 MCP 服务通过 stdio 通信,调试可能颇具挑战。我们建议使用 MCP Inspector,它以包脚本的形式提供:

npm run inspector

Inspector 会提供一个 URL,供你在浏览器中访问调试工具。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。