Environment Variables¶
Complete reference for F5XC API MCP Server environment variables.
Quick Setup
For step-by-step authentication setup, see the Authentication Guide.
Variable Reference¶
| Variable | Required | Description |
|---|---|---|
F5XC_API_URL | For auth | Tenant URL (auto-normalized) |
F5XC_API_TOKEN | Token auth | API token from XC Console |
F5XC_P12_BUNDLE | Cert auth | Absolute path to P12 certificate bundle |
F5XC_P12_PASSWORD | Cert auth | Password for P12 certificate |
F5XC_CERT | Cert auth | Absolute path to PEM certificate file |
F5XC_KEY | Cert auth | Absolute path to PEM private key file |
F5XC_PROFILE | No | Profile name from ~/.config/f5xc/profiles/ |
LOG_LEVEL | No | Logging level: debug, info, warn, error |
NODE_ENV | No | Node environment: development, production |
Authentication Variables¶
F5XC_API_URL¶
The F5 Distributed Cloud tenant URL. Multiple formats accepted (auto-normalized).
URL Normalization
See Authentication Guide for accepted URL formats.
F5XC_API_TOKEN¶
API token from F5XC Console. Required for token-based authentication.
Security
Never commit API tokens to version control.
F5XC_P12_BUNDLE¶
Absolute path to P12 certificate bundle. Required for P12-based certificate authentication.
Absolute Paths Required
Must be an absolute path, not relative.
F5XC_CERT¶
Absolute path to PEM-formatted certificate file. Use with F5XC_KEY for PEM-based certificate authentication.
Alternative to P12
Use F5XC_CERT + F5XC_KEY as an alternative to P12 bundle authentication.
F5XC_KEY¶
Absolute path to PEM-formatted private key file. Required when using F5XC_CERT.
F5XC_P12_PASSWORD¶
Password for the P12 certificate.
F5XC_PROFILE¶
Select a profile from ~/.config/f5xc/profiles/ for multi-tenant credential management.
Profile-Based Configuration
Profiles are optional. Use the f5xc-api-configure-auth MCP tool to set up profiles.
See Authentication Guide for details.
Configuration Variables¶
LOG_LEVEL¶
Controls logging verbosity. Logs go to stderr to avoid interfering with MCP protocol.
| Level | Description |
|---|---|
debug | Verbose debugging information |
info | General operational information (default) |
warn | Warning messages |
error | Error messages only |
NODE_ENV¶
Node.js environment setting.
| Value | Behavior |
|---|---|
development | Additional debug output |
production | Optimized for production (default) |
Setting Variables¶
Shell (Temporary)¶
export F5XC_API_URL="https://tenant.console.ves.volterra.io"
export F5XC_API_TOKEN="your-token"
npx f5xc-api-mcp
Shell Profile (Persistent)¶
Add to ~/.zshrc, ~/.bashrc, or equivalent:
.env File¶
Create .env in your project:
Security
Add .env to .gitignore to prevent committing credentials.
MCP Configuration¶
Set in env block:
{
"mcpServers": {
"f5xc-api": {
"command": "npx",
"args": ["f5xc-api-mcp"],
"env": {
"F5XC_API_URL": "https://tenant.console.ves.volterra.io",
"F5XC_API_TOKEN": "your-token"
}
}
}
}
Docker¶
Pass with -e flags:
docker run -it \
-e F5XC_API_URL="https://tenant.console.ves.volterra.io" \
-e F5XC_API_TOKEN="your-token" \
ghcr.io/robinmordasiewicz/f5xc-api-mcp
Or with env file:
Authentication Priority¶
When multiple authentication sources are configured:
- Environment Variables (highest priority) -
F5XC_API_URL,F5XC_API_TOKEN, etc. - Environment variables override all other sources
- Profile-Based Configuration -
F5XC_PROFILEselection from~/.config/f5xc/profiles/ - Selected by
F5XC_PROFILEenv var or active profile - Supports multiple credentials for different tenants
- No Authentication (lowest priority) - Documentation mode
- Returns API documentation without executing operations
Profile Setup
Use the f5xc-api-configure-auth MCP tool through your AI assistant to set up profiles.
Validation¶
Check Settings¶
Verify in Server¶
Ask Claude:
"Get the F5XC API server info"
Check for authenticated: true and correct authMethod.
Next Steps¶
- Authentication Guide - Detailed authentication setup and profile configuration
- Security Best Practices - Credential storage and management
- MCP Configuration - Full MCP config reference
- Troubleshooting - Common issues