VS Code
Add fastn to VS Code in one click and use it from GitHub Copilot's agent mode.
VS Code runs fastn as an MCP server for GitHub Copilot's Agent mode. Add it once from fastn, sign in, then ask Copilot for the integration in the Chat panel.
Add fastn
Click Install in VS Code
In fastn, click Connect AI tools in the top bar (or open Embed → API keys and MCP → MCP server), pick the VS Code tile and click Install in VS Code. When your browser asks to open Visual Studio Code, allow it.

Install the server
VS Code opens an MCP Server: fastn page with the URL https://mcp.fastn.dev/fastn-workspace. Click Install to add fastn for all your projects, or Install in Workspace to add it to the open folder only.

mcp.json; Install in Workspace writes .vscode/mcp.json in the folder.Start it and sign in
Installing does not start the server. Press Cmd+Shift+P (Ctrl+Shift+P on Windows and Linux), run MCP: List Servers, pick fastn and choose Start Server.
The first time, VS Code asks to let fastn authenticate. Click Allow. fastn opens in your browser: sign in and, if you belong to more than one fastn org, pick the workspace VS Code works in and click Connect.

The browser then hands you back to VS Code.

If you signed in to fastn from VS Code before, the server starts without asking. MCP: List Servers then shows fastn as Running.
Use it
Open the Chat panel and set the mode to Agent.
Click the tools icon in the chat box and check that fastn is ticked.
Ask for the outcome in one sentence. To check the connection first, ask Who am I in fastn?
Copilot asks before it runs a fastn tool. Click Allow (or Continue).

From here Copilot works through the same steps as every agent: see Building from your AI agent.
Add it by hand
Instead of the button, run this from a terminal:
Or add fastn to .vscode/mcp.json in a project. VS Code's key is servers, not mcpServers:
Troubleshooting
fastn is installed but Copilot never uses it. Check the chat is in Agent mode and that fastn is ticked under the tools icon. Then run MCP: List Servers and make sure fastn is Running.
The list shows servers you did not add, or asks you to pick an MCP server "for this session". That is a GitHub Copilot CLI session, which reads its own config (
~/.copilot/mcp-config.json). Start a local chat instead.Copilot works on the wrong org. Run MCP: List Servers → fastn → Stop Server, sign out of fastn from the Accounts menu (bottom left), then start the server again and pick the workspace.
Last updated
Was this helpful?

