Pick your client below. Each section covers both auth methods: OAuth (browser login, recommended for humans) and API Key (headless, for CI/CD and automation).
Claude Code is Anthropic's CLI. It supports the MCP http transport natively since v1.x — no mcp-remote proxy needed. Config lives in .mcp.json at project root or ~/.claude/ for global use.
Recommended for interactive use. Claude Code opens a browser window on first connect; you authenticate with your Aviatrix CoPilot credentials. The token is cached and refreshed automatically.
.mcp.json (project) or ~/.claude/mcp.json (global):{
"mcpServers": {
"aviatrix": {
"type": "http",
"url": "https://platform.mcp.aviatrix.com/mcp"
}
}
}
aviatrix_list_gateways). Claude Code will open a browser tab to complete OAuth. Approve the request.~/.claude/ and refreshed silently.For CI/CD pipelines, automation scripts, or any context where a browser is unavailable. Generate a key from the login portal, then add it to the config.
{
"mcpServers": {
"aviatrix": {
"type": "http",
"url": "https://platform.mcp.aviatrix.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
$AVX_MCP_KEY in shell profiles, or store in your secrets manager.Claude Desktop uses a JSON config file to register MCP servers. It does not support the native http transport yet — use mcp-remote as a local proxy. Config path: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows). Restart Claude Desktop after editing.
On first use, mcp-remote opens a browser tab for OAuth. After approval the token is cached locally and refreshed automatically.
claude_desktop_config.json and add:{
"mcpServers": {
"aviatrix": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://platform.mcp.aviatrix.com/mcp"
]
}
}
}
nodejs.org if npx is not available.Passes the key as a bearer token via mcp-remote's --header flag. No browser required.
claude_desktop_config.json:{
"mcpServers": {
"aviatrix": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://platform.mcp.aviatrix.com/mcp",
"--header",
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}
Cursor supports MCP servers via Settings → MCP (GUI) or by editing ~/.cursor/mcp.json directly. Both methods produce the same config. Cursor uses mcp-remote for SSE/HTTP transports.
On first connect Cursor (via mcp-remote) opens a browser tab for OAuth. Tokens are cached per-project.
~/.cursor/mcp.json:{
"mcpServers": {
"aviatrix": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://platform.mcp.aviatrix.com/mcp"
]
}
}
}
~/.cursor/mcp.json:{
"mcpServers": {
"aviatrix": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://platform.mcp.aviatrix.com/mcp",
"--header",
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}
Windsurf (Codeium) supports MCP via Settings → MCP Servers or by editing ~/.codeium/windsurf/mcp_config.json. The config format mirrors Claude Desktop.
~/.codeium/windsurf/mcp_config.json:{
"mcpServers": {
"aviatrix": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://platform.mcp.aviatrix.com/mcp"
]
}
}
}
npx command and args directly.mcp_config.json:{
"mcpServers": {
"aviatrix": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://platform.mcp.aviatrix.com/mcp",
"--header",
"Authorization: Bearer YOUR_API_KEY"
]
}
}
}
Cline is a VS Code extension with deep MCP support. Config lives at VS Code Settings → Cline → MCP Servers (GUI) or in the Cline MCP settings JSON. Cline supports both stdio (via mcp-remote) and native http transports depending on version.
mcp-remote internally:{
"aviatrix": {
"url": "https://platform.mcp.aviatrix.com/mcp",
"disabled": false
}
}
mcp-remote automatically for HTTP servers. If your version requires manual config, use the mcp-remote stdio pattern from the Claude Desktop tab above.headers field:{
"aviatrix": {
"url": "https://platform.mcp.aviatrix.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
},
"disabled": false
}
}