Altimate Setup
Guide the user through configuring their Altimate platform credentials.
Steps
- Check existing config: Read
~/.altimate/altimate.json. If it exists and is valid, show the current config (mask the API key) and ask if they want to update it.
- Gather credentials: Ask the user for:
- Altimate URL (default:
https://api.myaltimate.com) - Instance name (their tenant/org name, e.g.
megatenant) - API key (from Altimate platform settings)
- MCP server URL (optional, default:
https://mcpserver.getaltimate.com/sse)
- Write config: Create
~/.altimate/directory if needed, then write~/.altimate/altimate.json:
```json
{
"altimateUrl": "<url>",
"altimateInstanceName": "<instance>",
"altimateApiKey": "<key>",
"mcpServerUrl": "<mcp-url>"
}
```
Then set permissions to owner-only: chmod 600 ~/.altimate/altimate.json
- Validate: If the
datamate_managertool is available, call it withoperation: "list"to verify the credentials work, and report success or failure to the user. If it is not (it is turned off in a project linked to an Altimate workspace), ask the user to run/workspace→ Refresh instead, which calls the Altimate API with these credentials and reports an error if they don't work.