Environment Variables
Fizzy MCP can be configured through environment variables. This is useful for keeping secrets out of config files and for CI/CD environments.
Required Variables
FIZZY_TOKEN
Your Fizzy API token. Required for all operations.
export FIZZY_TOKEN="your-fizzy-api-token"Get your token from Fizzy Settings > API Tokens.
Optional Variables
FIZZY_API_URL
Override the Fizzy API base URL. Defaults to https://api.fizzy.do.
export FIZZY_API_URL="https://api.fizzy.do"Useful for development/testing against staging environments.
Setting Environment Variables
Shell Profile (Persistent)
Add to your shell profile for persistent configuration:
# ~/.bashrc or ~/.bash_profile
export FIZZY_TOKEN="your-fizzy-api-token"# ~/.zshrc
export FIZZY_TOKEN="your-fizzy-api-token"# ~/.config/fish/config.fish
set -gx FIZZY_TOKEN "your-fizzy-api-token"# $PROFILE
$env:FIZZY_TOKEN = "your-fizzy-api-token"Then reload your shell:
source ~/.zshrc # or ~/.bashrcPer-Session
Set temporarily for the current session:
export FIZZY_TOKEN="your-token"
npx fizzy-do-mcp@latestPer-Command
Set for a single command:
FIZZY_TOKEN="your-token" npx fizzy-do-mcp@latestEditor Configuration
With Environment Variables
If you set FIZZY_TOKEN in your shell, you can simplify editor configs:
{
"mcpServers": {
"fizzy": {
"command": "npx",
"args": ["-y", "fizzy-do-mcp@latest"]
}
}
}The MCP server will inherit environment variables from your shell.
Without Environment Variables
If you can't use shell environment variables, set them in the editor config:
{
"mcpServers": {
"fizzy": {
"command": "npx",
"args": ["-y", "fizzy-do-mcp@latest"],
"env": {
"FIZZY_TOKEN": "your-fizzy-api-token"
}
}
}
}Security Considerations
Don't Commit Tokens
Never commit your Fizzy token to version control. Add config files to .gitignore:
# MCP configs with tokens
.cursor/mcp.json
.continue/config.jsonUse Environment Variables
Environment variables are more secure than config files:
- Not visible in editor UI
- Not accidentally committed
- Can be managed by secret managers
Rotate Tokens Regularly
Generate new tokens periodically from Fizzy settings and revoke old ones.
Troubleshooting
"FIZZY_TOKEN environment variable is required"
The token isn't set. Either:
- Export it in your shell
- Add it to your editor's MCP config
envsection
Token not found despite being set
Your editor might not inherit shell environment:
- GUI apps on macOS don't always get shell env vars. Set in editor config instead.
- Windows - Use system environment variables or editor config.
- Linux - Ensure you're starting the editor from a shell with the variable set.
Verify token is set
echo $FIZZY_TOKEN
# Should print: fz_abc123...If empty, the variable isn't exported in your current shell.