# Connect VS Code

VS Code: The full authenticated connector, through GitHub Copilot agent mode.

Where it runs: VS Code with GitHub Copilot (agent mode), Desktop.

## Add the connector

1. Either run "MCP: Add Server" from the Command Palette (choose HTTP, paste the URL), or write the file yourself. A remote server is `"type": "http"` plus `url`:

```text
Command Palette → MCP: Add Server → HTTP (HTTP or Server-Sent Events)
```

`.vscode/mcp.json`:

```json
{
  "servers": {
    "sleeperhit": {
      "type": "http",
      "url": "https://sleeperhit.studio/mcp"
    }
  }
}
```
2. In agent mode, open the MCP Servers section (or the MCP SERVERS view) and start the server; the first call opens the Sleeper Hit Studio sign-in.

## Signing in

Copilot handles the OAuth flow in the browser and retries the call after you authorize. Servers show under MCP SERVERS in the Extensions view; "MCP: List Servers" manages them.

The connector itself needs no API key. A brand-new account is confirmed once at signup (18 or older, Terms and Privacy accepted); see [Any other client](connect-any.md) for what a generic client must support.

## Good to know

- The file uses a top-level "servers" object — not the "mcpServers" key other editors use.
- Some builds document an explicit "oauth.clientId"; Sleeper Hit Studio registers clients dynamically, so start without one. If a build refuses a client without an explicit id, say so in #feedback — the connector answers with a standard 401 challenge first.

## Sources for these steps

- https://code.visualstudio.com/docs/copilot/customization/mcp-servers
- https://code.visualstudio.com/docs/agents/reference/mcp-configuration

The connector URL on this page is the production one; stage members can use `https://stage.sleeperhit.studio/mcp` the same way. The same steps, plus every other MCP client, are on the [connector page](/mcp) on the app host.