--- 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. ## Option A — One command Terminal window ``` code --add-mcp '{"name":"flora","type":"http","url":"https://florafauna-ai.stlmcp.com/"}' ``` 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://florafauna-ai.stlmcp.com/" } } } ``` 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 sub-tools (`list_techniques`, `run_technique`, …). 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://florafauna-ai.stlmcp.com/\"}'`. - **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.