VS Code
Add SealGate to VS Code (GitHub Copilot agent mode) with a one-click install link or an mcp.json entry.
VS Code uses MCP tools in GitHub Copilot agent mode. It connects to SealGate as a remote HTTP MCP server, through a one-click install link or a mcp.json entry.
The SealGate desktop client configures VS Code for you. Use this page if you don't run the desktop client, or want to set it up by hand.
Prerequisites
- VS Code with GitHub Copilot, and Copilot Chat in Agent mode.
- A SealGate account at dashboard.sealgate.ai.
1. One-Click Install
In the dashboard, open the Connect Agent page, choose VS Code, pick API key or OAuth under Authentication, and click the install button. VS Code opens and adds a server named sealgate. With OAuth, VS Code then opens your browser to sign in to SealGate.
2. Or Add It by Hand
Get your connection URL from Settings > Api key / MCP URL > Get MCP URL > VS Code. Run MCP: Open User Configuration from the Command Palette (or create .vscode/mcp.json for one workspace) and add:
{
"servers": {
"sealgate": {
"type": "http",
"url": "https://mcp.sealgate.ai/mcp/<your-api-key>/?client=vscode"
}
}
}For OAuth sign-in instead, use the keyless URL https://mcp.sealgate.ai/mcp?client=vscode. VS Code prompts you to sign in when the server starts.
Treat a key URL like a password, and don't commit it in a workspace .vscode/mcp.json. The host differs per environment, so always copy it from your own dashboard.
3. Verify
Run MCP: List Servers and check that sealgate is running. Then, in Copilot Chat agent mode, ask:
Call the sealgate builtin_whoami tool to confirm your connection to the SealGate gateway.The call appears under Sessions in the dashboard.
Troubleshooting
- No SealGate tools in chat: switch Copilot Chat to Agent mode and enable
sealgatein the tools picker. - Server stopped: run MCP: List Servers, select
sealgate, and start or restart it. - 401 Unauthorized (API key): the key was rotated. Copy a fresh URL from Settings.