MCP Overview
ctk implements the Model Context Protocol
over stdio. When you run ctk mcp, it starts a server that AI agents can call
to interact with Confluence Cloud.
Starting the Server
Section titled “Starting the Server”ctk mcpThe server reads credentials from environment variables or stored credentials (same as the CLI).
Write Gating
Section titled “Write Gating”Write operations are disabled by default. When writes are disabled, tools
like manage_pages only expose read actions (get, list, get_children,
etc.). Create, update, delete, and move actions return an error.
To enable writes:
CTK_ENABLE_WRITES=true ctk mcpThe tool descriptions dynamically reflect which actions are available based on
the CTK_ENABLE_WRITES setting.
Disabling Tools
Section titled “Disabling Tools”You can disable specific tools with the CTK_DISABLED_TOOLS environment
variable:
CTK_DISABLED_TOOLS="manage_comments,manage_attachments" ctk mcpAvailable Tools
Section titled “Available Tools”ctk registers 8 multiplexed tools. Each tool accepts an action parameter that determines the operation.