Cursor Setup¶
Configure the F5XC API MCP Server with Cursor IDE.
Prerequisites
- Cursor installed
- Node.js 18+ installed (for npx)
Configuration¶
Cursor supports MCP servers through its settings.
Step 1: Open Cursor Settings¶
- Open Cursor
- Go to Settings (
Cmd/Ctrl + ,) - Navigate to the MCP section
Step 2: Add MCP Server¶
Add the F5XC API server configuration:
Step 3: Restart Cursor¶
Full Restart Required
Restart Cursor completely (quit and reopen) for the changes to take effect.
Usage¶
Chat Panel¶
Open the chat panel and ask about F5XC:
"What F5XC load balancer options are available?"
Inline Assistance¶
While working with F5XC configurations:
"Create an F5XC origin pool for this backend"
Code Generation¶
Select code and ask:
"Add WAF protection to this HTTP load balancer"
Project Configuration¶
For project-specific settings, create .cursor/mcp.json:
{
"mcpServers": {
"f5xc-api": {
"command": "npx",
"args": ["@robinmordasiewicz/f5xc-api-mcp"],
"env": {
"F5XC_API_URL": "https://your-tenant.console.ves.volterra.io",
"F5XC_API_TOKEN": "${env:F5XC_API_TOKEN}"
}
}
}
}
Composer Integration¶
Multi-Resource Generation
Use Cursor's Composer feature to generate complete infrastructure setups.
- Open Composer (
Cmd/Ctrl + I) - Describe your infrastructure needs:
"Create a complete F5XC setup with:
- HTTP load balancer at app.example.com
- Origin pool with 3 backend servers
- WAF protection with default rules"
Cursor will use the MCP tools to generate the appropriate API configurations.
Tips¶
Context Awareness¶
Cursor's AI is aware of your project context. Ask:
"What F5XC resources would complement this existing configuration?"
Multi-Resource Generation¶
Use Composer to generate multiple related resources:
"Create a full F5XC deployment including networking, load balancing, and security configurations"
Documentation Lookup¶
"What are all the required fields for an F5XC HTTP load balancer?"
Troubleshooting¶
MCP Server Not Starting¶
- Check Node.js is installed:
node --version - Verify npx works:
npx --version - Check Cursor's developer tools for errors
Configuration Not Applied¶
- Ensure JSON is valid
- Restart Cursor completely (quit and reopen)
- Check settings are in the correct location
Authentication Errors¶
Test Credentials First
Verify credentials work before configuring:
- Verify API URL format
- Check token hasn't expired