pi-confluence-multiproject

Confluence Cloud integration for the pi coding agent — pages, search, comments, and spaces.

Packages

Package details

extensionprompt

Install pi-confluence-multiproject from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-confluence-multiproject
Package
pi-confluence-multiproject
Version
1.0.0
Published
Sep 10, 2026
Downloads
155/mo · 155/wk
Author
lauritz30
License
MIT
Types
extension, prompt
Size
41.7 KB
Dependencies
1 dependency · 3 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ],
  "prompts": [
    "./prompts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-confluence-multiproject

Confluence Cloud integration for the pi coding agent — page retrieval, CQL search, page hierarchy, comments, and safety-gated write actions.

Status: npm-installable pi package (TypeScript, loaded natively by pi — no build step).

Installation

From npm:

pi install npm:pi-confluence-multiproject

From git:

pi install git:github.com/Lauritz30/pi-confluence-multiproject

For a one-off session: pi -e npm:pi-confluence-multiproject.

Quick Start

  1. Generate an API token at https://id.atlassian.com/manage-profile/security/api-tokens.
  2. Create ~/.pi/agent/pi-confluence-multiproject.json with your site, email, and API token.
  3. Run /confluence-doctor to verify configuration and connectivity.

Example configuration

{
  "defaultSite": "acme",
  "safetyLevel": "confirm",
  "sites": [
    {
      "name": "acme",
      "url": "https://acme.atlassian.net",
      "email": "you@acme.com",
      "apiToken": "your-api-token"
    }
  ]
}

Multi-site

{
  "defaultSite": "acme",
  "sites": [
    { "name": "acme", "url": "https://acme.atlassian.net", "email": "you@acme.com", "apiToken": "token-a" },
    { "name": "client-xyz", "url": "https://client-xyz.atlassian.net", "email": "you@client-xyz.com", "apiToken": "token-b", "safetyLevel": "readonly" }
  ]
}

Mock mode

Set "mock": true in the config to let confluence_doctor validate config shape without making a live request.

Tools

Read

Tool Description
confluence_doctor Verify configuration and connection health
confluence_get_page Fetch a Confluence page by id
confluence_search_content Search with CQL
confluence_get_page_children List child pages of a page
confluence_list_spaces List spaces
confluence_get_page_comments List comments on a page

Write (safety-gated)

Tool Description
confluence_create_page Create a page in a space
confluence_update_page Update a page with version increment
confluence_add_comment Add a page comment
confluence_add_label Add a page label

Commands

Command Description
/confluence-status Show current connection status (site, safety level)
/confluence-doctor Check configuration, auth, and API reachability

Prompt templates

Template Description
/confluence-daily-status Summarize daily updates from recently changed pages
/confluence-release-notes Prepare/update release notes page
/confluence-space-search Search and summarize content for a specific space

Configuration reference

Key Type Default Description
sites array List of { name, url, email, apiToken, safetyLevel?, headlessApprovals? }
defaultSite string first site Default site name used when a tool call omits site
safetyLevel string "confirm" Global default: "open", "confirm", or "readonly"
mock boolean false Skip live request in confluence_doctor

Headless write approvals

In confirm mode, writes without an interactive UI remain blocked unless the selected site defines a matching headlessApprovals rule.

{
  "sites": [{
    "name": "automation",
    "url": "https://acme.atlassian.net",
    "email": "bot@acme.com",
    "apiToken": "your-api-token",
    "headlessApprovals": [
      { "action": "confluence_create_page", "spaceKey": "ENG" },
      { "action": "confluence_update_page", "pageIds": ["123456"] }
    ]
  }]
}

Development

npm install
npm test
npm run check

Run against a local checkout from anywhere with:

pi install /absolute/path/to/pi-confluence-multiproject
# or, for a one-off session:
pi -e /absolute/path/to/pi-confluence-multiproject

Requirements

  • Node.js 22.19+
  • pi coding agent
  • Confluence Cloud site with API token

License

MIT — see LICENSE.