# Connect VS Code

> Use f1ow's crypto market data tools from GitHub Copilot agent mode in VS Code with a workspace mcp.json.

Source: https://www.f1ow.com/docs/connect/vscode

VS Code's GitHub Copilot agent mode reads MCP servers from `.vscode/mcp.json`. It uses a top-level `servers` object, not `mcpServers`.

## Configure

1. Create an API key in the [dashboard](https://www.f1ow.com/dashboard).
2. Create or open **mcp.json in your workspace**.
3. Add the entry below, replacing `<your-key>`.

`.vscode/mcp.json`:

```json
{
  "servers": {
    "f1ow": {
      "url": "https://mcp.f1ow.com/",
      "type": "http",
      "headers": {
        "Authorization": "Bearer <your-key>"
      }
    }
  }
}
```

Already have a `servers` object? Copy just the inner `f1ow` entry into it.

4. In the Copilot chat, switch to **Agent** mode and open the tools picker. The f1ow tools appear under the server name.

> **Don't commit your key** A workspace `mcp.json` is often committed. Keep the key out of git, either with a user-level MCP configuration or with VS Code's input variables.

## Try it

> Using f1ow, chart the last 30 days of BTC open interest against price and explain the divergence.

> Check my trade plan: long ETH at 2,200, stop 2,120, target 2,450, 1% risk on a $25k account.

> Get your API key: https://www.f1ow.com/dashboard
