Skip to content
Documentation hero background

Cline

To connect Flyweel MCP to Cline (the VS Code autonomous agent extension), add a streamableHttp server entry to cline_mcp_settings.json pointing at https://api.flyweel.co/mcp-server/mcp with an X-API-Key header. The fastest path is the Cline UI (MCP Servers tab, then Edit settings); editing the JSON by hand also works.


Step 1: Get your API token

  1. Go to app.flyweel.co
  2. Click Settings, then API Tokens
  3. Click Create New Token, name it “Cline”
  4. Click Generate and copy the fwl_… token

Step 2: Open Cline’s MCP settings

In VS Code with Cline installed:

  1. Open the Cline sidebar
  2. Click the MCP Servers tab
  3. Click Edit settings (opens cline_mcp_settings.json in an editor)

Step 3: Add Flyweel

Paste this inside mcpServers:

{
"mcpServers": {
"flyweel": {
"type": "streamableHttp",
"url": "https://api.flyweel.co/mcp-server/mcp",
"headers": {
"X-API-Key": "fwl_YOUR_TOKEN_HERE"
},
"disabled": false,
"autoApprove": ["query_metrics", "list_ad_accounts", "get_setup_status"]
}
}
}

Replace fwl_YOUR_TOKEN_HERE with your token.

Settings file path (for reference)

~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json

The UI flow (MCP Servers tab, Edit settings, paste JSON, save) is easier than hunting for the file path.


Step 4: Reload Cline

Cline hot-reloads the settings file; if the server does not appear, run Developer: Reload Window in the VS Code command palette.


Step 5: Test it

In Cline, ask:

What Google Ads accounts do I have connected to Flyweel?

Troubleshooting

”Server failed to connect”

URL is wrong, or the API key is missing.

Fix: Verify the URL is exactly https://api.flyweel.co/mcp-server/mcp and that the X-API-Key header starts with fwl_.

Tools are not visible

Cline caches the tool list.

Fix: Toggle disabled: true then back to false, or reload the VS Code window.

”Authentication error” (code -32001)

Token is invalid or revoked.

Fix: Generate a new token at app.flyweel.co, then Settings, then API Tokens.


Next Steps

Ready to get started?

Start optimizing your ad spend today with Flyweel.