Configuration
Token Storage
Git Maestro stores authentication tokens securely in your home directory:
This file is automatically created when you first authenticate with GitHub, GitLab, or Azure DevOps.
Important: This file is outside your repository and should never be committed to version control.
Environment Variables
Git Maestro supports the following environment variables:
GitHub Token
Environment variable: GITHUB_TOKEN
If set, Git Maestro will use this token for GitHub API authentication instead of prompting you.
GitLab Token
Environment variable: GITLAB_TOKEN
If set, Git Maestro will use this token for GitLab API authentication.
Azure DevOps Token
Environment variable: AZURE_DEVOPS_PAT
If set, Git Maestro will use this token for Azure DevOps API authentication.
Configuration Files
Currently, Git Maestro stores minimal configuration:
- Token storage:
~/.config/git-maestro/tokens.conf
Future versions may add support for: - Default repository visibility (public/private) - Preferred remote provider - Custom action configurations
MCP Server Configuration
To use Git Maestro as an MCP server with Claude Code, add this to your mcp.json:
Or with a custom Python environment:
{
"mcpServers": {
"git-maestro": {
"command": "/path/to/your/venv/bin/git-maestro",
"args": ["mcp"]
}
}
}
Security Best Practices
Token Management
- Never commit tokens to version control
- Rotate tokens regularly (every 90 days recommended)
- Use fine-grained tokens when available
- Revoke unused tokens immediately
- Store tokens securely (use environment variables or secure config files)
Repository Security
Git Maestro's default .gitignore templates block common sensitive files:
- *.token
- .env
- credentials.json
- secrets.*
- ~/.config/git-maestro/tokens.conf
Permissions
Ensure your token storage directory has restrictive permissions:
Troubleshooting
Token Not Saved
If Git Maestro keeps prompting for your token:
- Check that
~/.config/git-maestro/exists and is writable - Verify file permissions allow writing
- Check for errors in the console output
API Rate Limiting
If you hit GitHub's rate limit:
- Verify you're using an authenticated token
- Check your rate limit status:
curl -H "Authorization: token YOUR_TOKEN" https://api.github.com/rate_limit - Wait for the limit to reset (shown in the response)
MCP Server Not Connecting
If Claude Code can't connect to the MCP server:
- Verify
git-maestro mcpruns successfully in your terminal - Check that the path in
mcp.jsonis correct - Ensure Git Maestro is installed in the environment Claude Code is using