← Confluence Node MCP Server

Confluence Node MCP Server 1245690e06d5dbd8168759cac9e437ddcf4dd6df

source_git · caijohnny/confluence-node · current release

24
Tools
0
Resources
0
Templates
0
Prompts

Observation

Observed 2026-08-25T10:51:53.865Z using mcpSecurity-inventory. Status: succeeded. Negotiated protocol: 2025-06-18.

Server capabilities
{
  "tools": {}
}

Tools 24

ToolCategoryAnnotationsRisk
confluence_add_comment在页面评论区添加评论(可选:回复某条评论)。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "pageId": {
      "type": "string",
      "description": "要评论的页面 ID"
    },
    "content": {
      "type": "string",
      "description": "评论内容(Confluence Storage Format HTML;纯文本也可,但需自行转义/包裹)"
    },
    "parentCommentId": {
      "type": "string",
      "description": "可选:父评论 ID(用于回复某条评论;不传则为页面下的顶层评论)"
    }
  },
  "required": [
    "pageId",
    "content"
  ]
}
— · —
confluence_build_code_macro生成 Confluence (KMS) 的代码宏(storage format HTML),用于安全插入代码块,避免 InvalidValueException 错误。
Input schema
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "代码内容(原始文本,会自动用 CDATA 包裹并处理特殊序列)"
    },
    "language": {
      "type": "string",
      "description": "可选:语言(支持常见别名,如 js/ts/sh/yml,会自动归一化;无法识别时将省略 language 参数)"
    },
    "linenumbers": {
      "type": "boolean",
      "description": "可选:是否显示行号(true/false)",
      "default": false
    },
    "collapse": {
      "type": "boolean",
      "description": "可选:是否折叠(true/false)",
      "default": false
    }
  },
  "required": [
    "code"
  ]
}
— · —
confluence_copy_page复制 Confluence (KMS) 页面到新位置。支持复制页面内容和附件。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "sourcePageId": {
      "type": "string",
      "description": "源页面 ID(要复制的页面)"
    },
    "targetSpace": {
      "type": "string",
      "description": "目标 Space Key(如果不提供则使用源页面的 Space)"
    },
    "newTitle": {
      "type": "string",
      "description": "新页面标题"
    },
    "parentId": {
      "type": "string",
      "description": "可选:新页面的父页面 ID"
    },
    "parentTitle": {
      "type": "string",
      "description": "可选:新页面的父页面标题(会自动查找 ID)"
    },
    "atRoot": {
      "type": "boolean",
      "description": "可选:是否创建在 Space 根目录",
      "default": false
    },
    "copyAttachments": {
      "type": "boolean",
      "description": "是否复制附件(默认为 true)",
      "default": true
    }
  },
  "required": [
    "sourcePageId",
    "newTitle"
  ]
}
— · —
confluence_create_page在指定的 Space 中创建新的 Confluence (KMS) 页面。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "space": {
      "type": "string",
      "description": "Space Key,如果不提供则使用环境变量中的 CONF_SPACE"
    },
    "title": {
      "type": "string",
      "description": "页面标题"
    },
    "content": {
      "type": "string",
      "description": "页面内容(Confluence Storage Format HTML)"
    },
    "parentId": {
      "type": "string",
      "description": "可选:父页面 ID,用于创建子页面"
    },
    "parentTitle": {
      "type": "string",
      "description": "可选:父页面标题(在同一个 space 下查找并解析出 parentId,用于创建子页面)"
    },
    "atRoot": {
      "type": "boolean",
      "description": "可选:是否创建在 Space 根目录(true/false)。不指定父页面时会先追问确认。",
      "default": false
    }
  },
  "required": [
    "title"
  ]
}
— · —
confluence_delete_page删除指定的 Confluence (KMS) 页面。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "pageId": {
      "type": "string",
      "description": "要删除的页面 ID"
    }
  },
  "required": [
    "pageId"
  ]
}
— · —
confluence_download_attachment下载 Confluence (KMS) 页面的附件到本地。默认保存到用户的下载目录。
Input schema
{
  "type": "object",
  "properties": {
    "downloadUrl": {
      "type": "string",
      "description": "附件的下载 URL(可以从 confluence_get_page_attachments 获取)"
    },
    "filename": {
      "type": "string",
      "description": "保存的文件名(可选,如果不提供则从 URL 中提取)"
    },
    "outputDir": {
      "type": "string",
      "description": "保存目录(可选,默认为用户的下载目录)"
    }
  },
  "required": [
    "downloadUrl"
  ]
}
— · —
confluence_fix_code_macros修复 Confluence (KMS) 页面中代码宏的 InvalidValueException 错误。自动扫描页面内容,将无效的 language 参数归一化或移除,然后更新页面。
Input schema
{
  "type": "object",
  "properties": {
    "pageId": {
      "type": "string",
      "description": "要修复的页面 ID"
    }
  },
  "required": [
    "pageId"
  ]
}
— · —
confluence_get_child_pages获取指定 Confluence (KMS) 页面的所有子页面。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "parentId": {
      "type": "string",
      "description": "父页面 ID"
    },
    "limit": {
      "type": "number",
      "description": "返回结果数量限制",
      "default": 50
    }
  },
  "required": [
    "parentId"
  ]
}
— · —
confluence_get_page获取指定 Confluence (KMS) 页面的详细信息。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "space": {
      "type": "string",
      "description": "Space Key"
    },
    "title": {
      "type": "string",
      "description": "页面标题"
    },
    "pageId": {
      "type": "string",
      "description": "页面 ID(如果提供则直接使用 ID)"
    }
  }
}
— · —
confluence_get_page_attachments获取指定 Confluence (KMS) 页面的所有附件列表。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "pageId": {
      "type": "string",
      "description": "页面 ID"
    },
    "limit": {
      "type": "number",
      "description": "返回结果数量限制",
      "default": 100
    }
  },
  "required": [
    "pageId"
  ]
}
— · —
confluence_get_page_comments获取指定 Confluence (KMS) 页面的所有评论(包括回复)。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "pageId": {
      "type": "string",
      "description": "页面 ID"
    },
    "limit": {
      "type": "number",
      "description": "返回评论数量限制",
      "default": 50
    }
  },
  "required": [
    "pageId"
  ]
}
— · —
confluence_get_page_history获取 Confluence (KMS) 页面的版本历史。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "pageId": {
      "type": "string",
      "description": "页面 ID"
    },
    "limit": {
      "type": "number",
      "description": "返回历史记录数量",
      "default": 10
    }
  },
  "required": [
    "pageId"
  ]
}
— · —
confluence_get_page_version_detail获取 Confluence (KMS) 页面某个特定版本的详细内容,包括该版本的正文内容、作者、修改时间和版本链接。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "pageId": {
      "type": "string",
      "description": "页面 ID"
    },
    "versionNumber": {
      "type": "number",
      "description": "版本号"
    }
  },
  "required": [
    "pageId",
    "versionNumber"
  ]
}
— · —
confluence_get_page_versions获取 Confluence (KMS) 页面的版本列表,包含每个版本的版本号、作者、修改时间、版本备注以及对应的版本链接。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "pageId": {
      "type": "string",
      "description": "页面 ID"
    },
    "limit": {
      "type": "number",
      "description": "返回版本数量,默认 20",
      "default": 20
    },
    "start": {
      "type": "number",
      "description": "分页起始位置,默认 0",
      "default": 0
    }
  },
  "required": [
    "pageId"
  ]
}
— · —
confluence_list_spaces列出当前用户可访问的所有 Confluence (KMS) Spaces。注意:KMS 是公司内部对 Confluence 知识管理系统的别名,两者是同一个系统。
Input schema
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "Space 类型: global 或 personal",
      "enum": [
        "global",
        "personal"
      ],
      "default": "global"
    }
  }
}
— · —
confluence_move_page将 Confluence (KMS) 页面移动到另一个页面下(成为目标页面的子页面),或移动到目标页面的前面/后面(成为同级页面)。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "pageId": {
      "type": "string",
      "description": "要移动的页面 ID"
    },
    "targetPageId": {
      "type": "string",
      "description": "目标页面 ID"
    },
    "position": {
      "type": "string",
      "enum": [
        "append",
        "above",
        "below"
      ],
      "description": "移动位置:append=成为目标页面的子页面(追加到末尾),above=移动到目标页面前面(同级),below=移动到目标页面后面(同级)。默认 append。",
      "default": "append"
    }
  },
  "required": [
    "pageId",
    "targetPageId"
  ]
}
— · —
confluence_render_mermaid将 Mermaid 图表文本渲染为 PNG 图片,上传为 Confluence (KMS) 页面附件,并可选嵌入页面内容。通过 mermaid.ink 在线服务渲染,支持自建服务(环境变量 MERMAID_INK_URL)。
Input schema
{
  "type": "object",
  "properties": {
    "mermaidCode": {
      "type": "string",
      "description": "Mermaid 图表文本,例如 'graph TD; A-->B;'"
    },
    "pageId": {
      "type": "string",
      "description": "要上传附件的页面 ID"
    },
    "filename": {
      "type": "string",
      "description": "附件文件名(默认 mermaid-diagram.png)",
      "default": "mermaid-diagram.png"
    },
    "theme": {
      "type": "string",
      "description": "Mermaid 主题",
      "enum": [
        "default",
        "forest",
        "dark",
        "neutral"
      ]
    },
    "bgColor": {
      "type": "string",
      "description": "背景色,例如 'white'、'!white'(透明背景加 ! 前缀)"
    },
    "width": {
      "type": "number",
      "description": "图片宽度(像素)"
    },
    "height": {
      "type": "number",
      "description": "图片高度(像素)"
    },
    "embedInPage": {
      "type": "boolean",
      "description": "是否自动将图片嵌入页面末尾(默认 false)",
      "default": false
    }
  },
  "required": [
    "mermaidCode",
    "pageId"
  ]
}
— · —
confluence_search_pages在 Confluence (KMS) 中搜索页面。KMS 是公司内部 Confluence 知识管理系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "搜索关键词"
    },
    "space": {
      "type": "string",
      "description": "可选:限制在指定 Space 中搜索"
    },
    "limit": {
      "type": "number",
      "description": "返回结果数量限制",
      "default": 25
    }
  },
  "required": [
    "query"
  ]
}
— · —
confluence_search_user_comments搜索指定用户在 Confluence (KMS) 中发表的所有评论。可按 Space 和日期范围筛选。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "username": {
      "type": "string",
      "description": "用户名(评论作者)"
    },
    "space": {
      "type": "string",
      "description": "可选:限制在指定 Space 中搜索"
    },
    "startDate": {
      "type": "string",
      "description": "可选:开始日期(格式:YYYY-MM-DD),搜索该日期及之后的评论"
    },
    "endDate": {
      "type": "string",
      "description": "可选:结束日期(格式:YYYY-MM-DD),搜索该日期及之前的评论"
    },
    "limit": {
      "type": "number",
      "description": "返回结果数量限制",
      "default": 50
    }
  },
  "required": [
    "username"
  ]
}
— · —
confluence_set_page_restriction设置 Confluence (KMS) 页面的访问权限。支持三种模式:无限制(所有人可访问)、限制编辑(所有人可查看但只有指定用户可编辑)、只有自己能查看(只有指定用户可查看和编辑)。
Input schema
{
  "type": "object",
  "properties": {
    "pageId": {
      "type": "string",
      "description": "页面 ID"
    },
    "restrictionType": {
      "type": "string",
      "description": "权限类型:none(无限制)、edit_only(限制编辑,所有人可查看)、view_only(只有自己能查看和编辑)",
      "enum": [
        "none",
        "edit_only",
        "view_only"
      ]
    },
    "username": {
      "type": "string",
      "description": "可选:指定用户名(默认使用当前登录用户)"
    }
  },
  "required": [
    "pageId",
    "restrictionType"
  ]
}
— · —
confluence_sort_child_pages对 Confluence (KMS) 父页面下的子页面进行排序。支持按标题字母排序或按自定义顺序排序。
Input schema
{
  "type": "object",
  "properties": {
    "parentId": {
      "type": "string",
      "description": "父页面 ID"
    },
    "sortBy": {
      "type": "string",
      "enum": [
        "title",
        "custom"
      ],
      "description": "排序方式:title=按标题字母排序,custom=按自定义顺序排序",
      "default": "title"
    },
    "order": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "description": "排序方向(仅 sortBy=title 时有效),默认 asc",
      "default": "asc"
    },
    "pageIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "自定义排序的页面 ID 列表(仅 sortBy=custom 时必填),按此顺序排列"
    }
  },
  "required": [
    "parentId"
  ]
}
— · —
confluence_update_page更新现有的 Confluence (KMS) 页面。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "space": {
      "type": "string",
      "description": "Space Key"
    },
    "title": {
      "type": "string",
      "description": "页面标题(用于查找页面)"
    },
    "pageId": {
      "type": "string",
      "description": "页面 ID(如果提供则直接使用 ID 而不是标题查找)"
    },
    "content": {
      "type": "string",
      "description": "新的页面内容"
    },
    "newTitle": {
      "type": "string",
      "description": "可选:新的页面标题"
    }
  }
}
— · —
confluence_upload_attachment上传附件到指定 Confluence (KMS) 页面。支持本地文件路径(filePath)或 base64 内容(contentBase64)。注意:需要页面编辑权限。
Input schema
{
  "type": "object",
  "properties": {
    "pageId": {
      "type": "string",
      "description": "要上传附件的页面 ID"
    },
    "filePath": {
      "type": "string",
      "description": "本地文件路径(优先使用)。建议使用绝对路径。"
    },
    "filename": {
      "type": "string",
      "description": "附件文件名(当使用 contentBase64 时必填;使用 filePath 时可选)"
    },
    "contentBase64": {
      "type": "string",
      "description": "附件内容 base64(与 filename 配合使用;与 filePath 二选一)"
    },
    "comment": {
      "type": "string",
      "description": "可选:附件备注"
    }
  },
  "required": [
    "pageId"
  ]
}
— · —
confluence_upsert_page创建或更新 Confluence (KMS) 页面(如果页面存在则更新,否则创建)。KMS 是公司内部 Confluence 系统的别名。
Input schema
{
  "type": "object",
  "properties": {
    "space": {
      "type": "string",
      "description": "Space Key"
    },
    "title": {
      "type": "string",
      "description": "页面标题"
    },
    "content": {
      "type": "string",
      "description": "页面内容"
    },
    "parentId": {
      "type": "string",
      "description": "可选:父页面 ID(仅在创建新页面时使用)"
    },
    "parentTitle": {
      "type": "string",
      "description": "可选:父页面标题(仅在创建新页面时使用;会在同一个 space 下查找并解析出 parentId)"
    },
    "atRoot": {
      "type": "boolean",
      "description": "可选:是否创建在 Space 根目录(true/false)。不指定父页面时会先追问确认。",
      "default": false
    }
  },
  "required": [
    "title"
  ]
}
— · —

Resources 0

Resource templates 0

Prompts 0

Let’s talk about MCP security.

Share your details and our security team will contact you.