---
title: VS Code | FLORA API
description: Add FLORA MCP to VS Code with one CLI command or by editing mcp.json.
---

FLORA MCP works in VS Code with **GitHub Copilot Chat** (agent mode) or any extension that consumes MCP servers.

## One-click install

[Install in VS Code](vscode:mcp/install?%7B%22name%22%3A%22FLORA%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fagents.flora.ai%2Fmcp%22%7D)

Opens VS Code and prompts you to confirm adding the FLORA server to your user-level MCP settings. After install, sign in with FLORA on the first tool call.

## Option A — One command

Terminal window

```
code --add-mcp '{"name":"flora","type":"http","url":"https://agents.flora.ai/mcp"}'
```

VS Code will prompt for confirmation, then add the entry to your user-level MCP settings. Open agent mode and the FLORA tools appear in the tools picker.

## Option B — Workspace config

For a project-scoped config that teammates can share, create **`.vscode/mcp.json`** at the repo root:

```
{
  "servers": {
    "flora": {
      "type": "http",
      "url": "https://agents.flora.ai/mcp"
    }
  }
}
```

Commit the file. Anyone who opens the workspace will be prompted to start the FLORA server on first use.

## Authorize

First tool call opens an OAuth browser tab. Sign in to FLORA and approve. VS Code stores the token in the OS keychain.

## Verify

In Copilot Chat (agent mode), click the **tools** icon to open the tools picker. `flora` should be listed with its tools (`execute`, `search_docs`). Try:

> \#flora List my Techniques.

The `#flora` mention prioritizes the FLORA toolset for that turn.

## Remove

Remove the `flora` entry from your settings (use the command palette: **MCP: List Servers** → select `flora` → **Remove**). Then revoke server-side in FLORA → Settings → Connected apps.

## Troubleshooting

- **`code --add-mcp` shell quoting** — on Windows PowerShell, escape inner quotes: `code --add-mcp '{\"name\":\"flora\",\"type\":\"http\",\"url\":\"https://agents.flora.ai/mcp\"}'`.
- **Tools not in agent mode** — make sure you’re in **Agent** mode, not **Ask** mode. Tools only execute in Agent.
- **Server shows as stopped** — open **MCP: List Servers**, select `flora`, click **Start**.

## Next

- [Authentication details](/mcp/authentication/index.md)
- [Recipes](/mcp/recipes/batch-with-coding-agent/index.md) — VS Code + agent mode is a great place for batch jobs.
