mason_set_confluence
Configure Confluence API credentials for Mason in two steps: validate the token and list spaces, then persist your chosen space key.
Instructions
Configure Confluence credentials. Two-step flow: (1) call without spaceKey to validate the credentials and receive a list of available spaces — relay them to the user. (2) call again with the same baseUrl/email/apiToken plus the chosen spaceKey to persist. Credentials are stored in ~/.mason/config.json. Warn the user that the API token will be visible in chat history before they paste it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | User's Atlassian account email | ||
| baseUrl | Yes | Confluence base URL. Accepts `acme`, `acme.atlassian.net`, or `https://acme.atlassian.net` (normalized automatically). | |
| apiToken | Yes | API token from id.atlassian.com/manage-profile/security/api-tokens | |
| spaceKey | No | Confluence space key. Omit on the first call to list available spaces. | |
| parentPageId | No | Optional parent page ID under which Mason's index page is created |