Confluence Integration
DevBoy tools provide integration with Confluence Server and Data Center for reading and updating internal documentation through AI assistants. Confluence is the first provider in the KnowledgeBase category.
Quick Config Generator
Authentication
Confluence self-hosted supports two authentication modes:
When confluence.username is set, DevBoy can use basic auth. Without a username, it uses bearer token auth.
Configuration
Basic configuration
Basic auth configuration
Configuration file
Settings are stored in ~/.config/devboy-tools/config.toml:
The token is stored separately in the OS keychain for security.
confluence.space_key is currently a stored default-space hint for the provider context. Knowledge base tools such as list_knowledge_base_pages and create_knowledge_base_page still expect an explicit spaceKey argument today.
Environment variables
API version selection
Confluence self-hosted installations are not uniform. DevBoy supports:
Use v2 for newer Data Center installs when available. If a v2 endpoint is missing, DevBoy falls back to the classic REST API for supported operations.
MCP tools
Once configured, the following MCP tools are available:
Tool behavior
Page content format
Confluence stores content in its own storage format. DevBoy handles conversion for agent-friendly workflows:
- Reads return page content as Markdown.
- Writes accept
contentTypevalues ofmarkdown,html, orstorage. markdownis the best default for agent-generated docs.
Labels
create_knowledge_base_page and update_knowledge_base_page support a labels parameter:
- On create, labels are added after the page is created.
- On update, labels replace the previous set when the parameter is provided.
- If
labelsis omitted on update, existing labels are left unchanged.
Optimistic locking
update_knowledge_base_page supports an optional version field:
- If provided, DevBoy verifies the current page version before writing.
- If the current version differs, the tool returns a conflict error instead of overwriting newer content.
Search and CQL
search_knowledge_base supports two modes:
- Free-text search: pass
queryand optionallyspaceKey - Raw CQL: set
rawQuery: trueand provide a full Confluence query
Example:
Example usage
List pages in a space
Create a page from Markdown
Update a page with version checking
Testing
Verify your Confluence configuration:
This checks connectivity against the spaces endpoint and confirms that the configured auth method can reach the API.
Proxy support
Confluence self-hosted instances are often only reachable through internal routing or gateway services. DevBoy supports proxy-mode provider wiring for Confluence using the same proxy mechanism used for other self-hosted providers.
Use this when:
- the Confluence base URL is not directly reachable from the assistant runtime
- authentication must be injected by a gateway
- custom routing headers are required
Troubleshooting
"401 Unauthorized" error
- Verify the token is valid and not expired
- If using basic auth, check that
confluence.usernameis set correctly - If using bearer auth, make sure the token is a Confluence PAT and not a Jira token
"404 Not Found" error
- Use the site root as
base_url, for examplehttps://wiki.company.com - Do not include
/rest/apior/api/v2inbase_url - If
api_version = "v2"is configured, your instance may not expose all v2 endpoints; DevBoy will fall back where supported
"space not found" error
- Verify the
spaceKeyis the short Confluence space key, not the display name - Confirm the authenticated user can access that space
Version conflict on update
- Another user or automation updated the page after you read it
- Re-fetch the page, inspect the latest content, then retry with the new version
Markdown formatting looks different in Confluence
- Confluence storage format is not identical to Markdown
- Basic headings, paragraphs, links, lists, and code blocks are handled, but some Confluence-specific macros may not round-trip exactly