# VS Code

Connect Flovia to GitHub Copilot in VS Code and check that a chat can use it.

## Sign in with OAuth

Open a project in VS Code with GitHub Copilot enabled and select **Copilot** as the chat session target. Open the Command Palette and run **Chat: Open Customizations**, then open **MCP Servers**.

1. If you already see `flovia` in the session's MCP servers, check that its URL is https://api.flovia.dev/mcp and reuse it if it matches.
2. If it is missing, add an HTTP server with that URL and the name `flovia`. Choose **Global → Copilot Global** to use it across your projects on this machine. You can also start the add flow with **MCP: Add Server** from the Command Palette.
3. When VS Code asks you to authenticate, sign in to Flovia in your browser. If you have no Flovia account, create one during sign-in. Choose **Authenticate** from the server's actions if VS Code offers it.

You can also start from **Add to VS Code** in Quick Install in [Flovia Console](https://console.flovia.dev/groupbuy/). That link adds an editor-managed server. If you can see it in the editor but your Copilot session cannot use it, check [which editor-managed servers Copilot can reuse](https://code.visualstudio.com/docs/agent-customization/migrate-customizations).

## Check the connection

Open a new Copilot chat and ask it to call `flovia_status` once. A successful reply confirms that this chat can use Flovia. The check does not fetch provider data.

If the tools are missing, check the selected session's MCP servers and whether Flovia needs to be enabled or signed in again. For a remote workspace or container, use the configuration on the host that runs the session. [VS Code's MCP troubleshooting guide](https://code.visualstudio.com/docs/agents/run/manage-mcp-servers) explains where to check.

Read [Check your connection](/connect/check.md) for the status prompt and recovery steps.
