confluence-dc-advops-mcp
confluence-dc-advops-mcp
Local MCP helpers for Confluence Data Center used from Cursor.
Русская документация: README.ru.md.
Talks to the same proxy/auth as @atlassian-dc-mcp/confluence
(local TLS proxy + token from keychain / env). Prefer these tools over
ad-hoc curl to the public Confluence hostname.
Auth
Same sources as @atlassian-dc-mcp/confluence:
CONFLUENCE_HOST(env or~/.atlassian-dc-mcp/confluence.env) — typically your local proxy, e.g.https://localhost:8443CONFLUENCE_API_TOKEN(env), or macOS Keychain serviceatlassian-dc-mcp/ accountconfluence-token
Do not commit tokens or *.env files. See SECURITY.md.
Tools
Tool | When |
| Reparent only (until upstream |
| Direct children + tree |
| Sibling order / append: |
| Exact full child order (permutation; sequential movepage) |
| Page version metadata only (who / when / message); no bodies |
| Dump page |
| Tiny link |
| Publish page storage XML from file (auto version bump) |
| Headings in a local storage file (no bodies) |
| One section as text / markdown / storage fragment (optional |
| Replace one section body on disk ( |
| Macro inventory (no bodies) |
| Replace one macro body (e.g. mermaid CDATA) |
| List attachments on a page |
| Download attachment binary to a local file |
| Upload / new version of attachment from local file |
| Footer (page) comments; quote page text in the body (no inline create) |
| Read inline comments (open vs resolved) and reply in thread |
| Page labels ( |
| List space page templates ( |
| Dump space template body to a local XML file |
| Create new space template from file (POST); optional |
| Publish space template body from file |
| Set labels on a space template (body unchanged) |
| Fast path: copy page body and labels → space Create-from-template snapshot |
| Destructive. Delete Create template(s). Requires human chat OK + |
Fast path for large pages (BRD/SRS/…)
confluence_getStorageToFile→/path/to/page.xmlconfluence_storage_listHeadings/getSection(format: text) — do not@or Read the dump file into chatconfluence_storage_replaceSectionorconfluence_storage_replaceMacroBody(dryRunfirst if unsure)confluence_updateStorageFromFile(omitversionto auto-bump, or pass current+1)Verify with
user-confluence-dc/confluence_getContentbodyMode: text(limit chars)If the page is also a Create-from-template snapshot → sync space template (below)
Delete the temp file
These storage tools do not publish and do not return the full XML. Python/StrReplace on the dump is a fallback when they do not cover the case.
Page versions (who / when — not full blame)
confluence_listVersions— metadata only (number,when,message,by). Paginate withstart/limit; cap withmaxResults.To inspect an old body:
confluence_getStorageToFilewithversion: N→ local XML, thenstorage_getSection/ search on disk. Do not pull historical XML into chat.Not git-blame: a version author is who saved that snapshot; use snippet search on the dump for “who wrote this line”.
Do not round-trip the whole page through Markdown (macros/layout will not survive).
For tiny pages that are not templates, user-confluence-dc confluence_updateContent is still ok.
Links in text/markdown
Confluence often stores page links as empty ac:link with the target only in ri:* attributes (UI fills the title). format: storage is unchanged. For format: text / markdown (and headings that are only a link), the converter fills a label so agents do not treat the field as empty:
Prefer visible anchor text (
ac:plain-text-link-body/ac:link-body); do not also appendri:content-title.Otherwise first target:
ri:page/ri:blog-post→ri:content-titleplus[spaceKey]whenri:space-keyis set;ri:url→ri:value;ri:attachment→ri:filename;ri:space→ key/name;ri:user→[user](no invented display name).Markdown: same labels;
ri:urlmay become[label](url). Page links stay bare titles (no invented/wiki/…URLs).No REST lookup of titles/ids; no default space when
ri:space-keyis missing; tiny/pageIdnot resolved here.
Same contract as user-confluence-dc confluence_getContent with bodyMode: text (upstream mapper). Non-expand macros still appear as [macro: …] stubs in getSection text — bodies inside those macros are not walked.
Tiny URLs (/x/{code})
DC encodes pageId as little-endian uint32 → standard base64, then /→- and +→_ (Atlassian KB). This is not RFC4648 base64url. confluence_resolveTinyUrl:
Decode with the DC alphabet →
GET /content/{id}.On 404, retry decode with
-↔_swapped (codes produced by a base64url encoder).If still 404, follow
pages/tinyurl.action?urlIdentifier={code}(undocumented; CONFSERVER-102023).Response includes
resolvedVia:decode|decode-swapped|tinyurl-action.
Use before getContent / getStorageToFile when the user pasted a short link — not CQL by title. Anchors after the code (/x/ZIAB#fragment) are ignored.
Fast path: page → space template (Create from template)
Catalog / BSA page = source of truth. Space template = snapshot for «Create from template».
confluence_syncPageToSpaceTemplate
contentId: "<pageId>"
spaceKey: "<spaceKey>"
templateId: "<templateId>"
descriptionSuffix: "(sync note)" # optional
# copyPageLabels: true by default — template labels come from the pageDC notes:
List:
/rest/experimental/template/page?spaceKey=…GET by template id alone often 404 — always pass
spaceKeyUpdate:
PUT /rest/experimental/templatewithtemplateType: "page"andbody.storageDelete:
DELETE /rest/experimental/template/{id}— only via MCP delete tools after human confirmation (confirm: "DELETE"+ exactconfirmName/confirmNames). No trash restore.
Labels (pages + Create from template)
Confluence copies space-template labels onto pages created from that template. Put labels on the catalog page, then sync (or set them on the template). New pages from «Create from template» inherit them.
Tool | When |
| Read labels on a page |
| Add without removing others |
| Remove by name |
| Replace global labels ( |
| Labels on the template only (keeps body) |
confluence_syncPageToSpaceTemplate copies the page’s global labels onto the template (copyPageLabels default true). If the page has none, current template labels are kept. Pass labels: [...] to set them explicitly. Create/update-from-file accept labels and copyLabelsFromContentId.
Page API: GET/POST /rest/api/content/{id}/label, DELETE …/label?name=. Template labels go in the experimental template PUT payload (omitting them can wipe labels on DC — tools always send a list unless you set keepLabels: false with no replacement).
Footer comments (page comments)
No inline comments. Put a quote from the page in the comment body so the subject is clear.
Tool | When |
| List footer comments ( |
| New footer comment under a page |
| Reply in a footer thread |
bodyFormat: plain (default — wrap in <p>, blank lines = paragraphs) or storage (raw Confluence storage XML).
Inline comments (read + reply only)
Does not create new text anchors. Use footer comments with a quote if you need a new note.
Tool | When |
| List inline comments; |
| Reply in an existing inline thread |
Each item includes status (open|resolved), visibleOnPage (true when open on the page), and originalSelection (anchored text when present).
Cursor config
"confluence-dc-advops": {
"command": "node",
"args": ["/path/to/confluence-dc-advops-mcp/index.js"],
"env": {
"CONFLUENCE_HOST": "https://localhost:8443",
"NODE_TLS_REJECT_UNAUTHORIZED": "0"
}
}After changing index.js, reload MCP servers in Cursor so new tools appear.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/iljasorokin/confluence-dc-advops-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server