Claude Code CLI Setup¶
Configure the F5XC API MCP Server with Claude Code CLI.
Prerequisites¶
- Claude Code installed
- Node.js 24+ installed (for npx)
Quick Install with claude mcp add¶
The fastest way to add the F5XC API MCP server:
Scope Options¶
| Scope | Flag | Storage Location | Use Case |
|---|---|---|---|
| Local | --scope local | .mcp.json (gitignored) | Default, private to you |
| Project | --scope project | .mcp.json (committed) | Share with team |
| User | --scope user | ~/.claude.json | Available in all projects |
Managing MCP Servers¶
# List all configured servers
claude mcp list
# Get details for a specific server
claude mcp get f5xc-api
# Remove a server
claude mcp remove f5xc-api
Manual Configuration (Alternative)¶
If you prefer manual configuration, create .mcp.json in your project root:
Global Configuration¶
For system-wide availability, add to ~/.claude/settings.local.json:
Usage¶
List Available MCP Servers¶
Interactive Mode¶
Start Claude Code and ask about F5XC:
Then:
"Show me the available F5XC API operations"
Direct Commands¶
Use prompts directly from the command line:
Environment Variables¶
Instead of hardcoding credentials in config, use environment variables:
export F5XC_API_URL="https://your-tenant.console.ves.volterra.io"
export F5XC_API_TOKEN="your-api-token"
Then use a simpler config:
Integration with Workflows¶
Example Workflow¶
"Show me how to create an HTTP load balancer at api.example.com"
"What CURL commands do I need to list all origin pools?"
Troubleshooting¶
MCP Server Not Found¶
- Check
.mcp.jsonis in your current directory or parent - Verify JSON syntax is valid
- Run
claude mcp listto see configured servers
Connection Issues¶
Enable MCP debug logging:
Tool Execution Errors¶
Check the server is responding: