Skip to main content

runspec-confluence

A Confluence runnable for runspec, ported from the Atlassian MCP server onto atlassian-python-api — pages, spaces, comments, labels, restrictions and attachments, on Cloud and Server/Data Center. One runnable — confluence — with 20-plus verbs. pip install it into a venv and it's discoverable by runspec local, runspec serve (MCP), and runspec-console.

runspec serve flattens each verb into a leaf MCP tool (confluence_get-page, …). Read verbs are autonomy = "autonomous"; writes are autonomy = "confirm".

Install

pip install runspec-confluence

Verbs

Area Verbs
Search search (CQL), search-text, search-by-label
Spaces list-spaces, get-space, get-space-pages
Pages (read) get-page, get-page-children, get-page-ancestors, get-page-history, get-page-restrictions, whoami
Pages (write) create-page, update-page, delete-page, move-page
Labels & comments get-labels, add-label, get-comments, add-comment
Attachments get-attachments, download-attachments, upload-attachment, delete-attachment
Macros & diagrams list-macros, get-diagram, download-diagram

Page bodies pass in a Confluence representation via --content-format (storage / wiki / editor / markdown); markdown is converted to storage XHTML client-side (best-effort).

Macros and diagrams

get-page --markdown renders macros readably: code and PlantUML/Mermaid macros become fenced blocks tagged with their language, info/note/tip/warning panels become block quotes, expand becomes a bold title over its body, and a draw.io or Gliffy diagram becomes a placeholder such as [draw.io diagram "arch" rev 3].

draw.io and Gliffy keep the diagram itself as a page attachment, so:

  • list-macros --page-id 123 lists every macro on the page with its parameters.
  • get-diagram --page-id 123 [--name arch] reads the diagram as text: its shapes (labels, containing group) and connectors (source -> target [label]). Works with draw.io's compressed and uncompressed formats; Gliffy is best-effort. A diagram embedded from another page (inc-drawio) is read from that page.
  • download-diagram --page-id 123 --dest ./out saves the .drawio / .gliffy source and the .png preview.

Reading only, for now: creating or editing a draw.io diagram would also need a fresh PNG preview, which needs draw.io itself to render.

Auth — env vars only

export CONFLUENCE_URL=https://your-org.atlassian.net/wiki
# Cloud (API token):
export CONFLUENCE_USERNAME=you@example.com
export CONFLUENCE_API_TOKEN=<api-token>
# …or Server/DC (Personal Access Token):
export CONFLUENCE_PERSONAL_TOKEN=<pat>

Cloud vs Server/DC is detected from a .atlassian.net host or set with CONFLUENCE_CLOUD. Every verb takes --env, selecting CONFLUENCE_<ENV>_* prefixed vars. The PAT can instead ride the runspec-console secret channel via the optional --confluence-pat (a password-typed arg, refused on the CLI, kept out of logs).

confluence search --cql "space = OPS AND type = page"
confluence get-page --page-id 123456
confluence create-page --space OPS --title "Runbook" --content-format markdown --body "# Steps"

Public Python API

The pure logic is in runspec-confluence-core — over atlassian-python-api + markdown, no runspec dependency, no entry points. Every op takes a ConfluenceConfig first arg and raises ConfluenceError, so a private wrapper can inject credentials and bake in a default space / env:

from runspec_confluence_core import config_from_env, build_client, get_page

cfg = config_from_env(env="prod")
page = get_page(cfg, page_id="123456")

Development

python -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]"
ruff check . && ruff format --check .
pytest

Metadata

Release files for runspec-confluence 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for runspec-confluence 0.7.0
File Size Uploaded
runspec_confluence-0.7.0.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for runspec-confluence 0.7.0
File Interpreter ABI Platform
runspec_confluence-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.3 kB

Release files / runspec_confluence-0.7.0.tar.gz

Download URL runspec_confluence-0.7.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cb1e6fb043ea03237bbd8c42883c964ab4de980015a65f5c0d9648063165398b
BLAKE2b-256 checksum
How to use checksums
d078d8879189b81e11e8a6f3516dddfc0b7657062a1a3121f5073cd291db25c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / runspec_confluence-0.7.0-py3-none-any.whl

Download URL runspec_confluence-0.7.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1c2d19cfde87ee2cab860e6bbbd6531471408842ba92282406307a5c3fc98a6
BLAKE2b-256 checksum
How to use checksums
69adca7aca5ff39947072283d95b587561a29d0f5186f0f26d4b41f8da1b2d4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

0.8.0

2 release files

This release

0.7.0 This release

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page