> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agent.golf/llms.txt
> Use this file to discover all available pages before exploring further.

# VS Code

> Connect GitHub Copilot in VS Code to the Agent Golf MCP server, sign in, and sign out.

VS Code connects GitHub Copilot to the Agent Golf MCP server over HTTP and signs in with OAuth. Server URL:

```text theme={null}
https://mcp.agent.golf/mcp
```

## Add the server

1. Run **MCP: Add Server** from the Command Palette.
2. Select **HTTP**, enter `https://mcp.agent.golf/mcp`, and name the server `agentgolf`.
3. Select where VS Code keeps the server: your user profile for all workspaces, or the current workspace.

Or run **MCP: Open User Configuration** and add the server to `mcp.json`. Keep the file's other servers:

```json theme={null}
{
  "servers": {
    "agentgolf": {
      "type": "http",
      "url": "https://mcp.agent.golf/mcp"
    }
  }
}
```

Do not add a token or headers. VS Code gets the token when you sign in.

## Sign in

1. Start the server: run **MCP: List Servers**, select `agentgolf`, and select **Start Server**. When VS Code asks, allow the server to sign in.
2. In the browser, sign in to Agent Golf, select the workspace and the permissions, and select **Approve**. See [Sign in](https://docs.agent.golf/mcp/access.md#sign-in).
3. In Copilot Chat, select agent mode. The tools of `agentgolf` show in the tool list.

VS Code keeps the token and renews it. When the sign-in ends, VS Code asks you to sign in again when the server starts.

## Sign out

Open the **Accounts** menu in the Activity Bar, select the Agent Golf account, and select **Sign Out**. To also remove the client registration from VS Code, run **Authentication: Remove Dynamic Authentication Providers** and select the Agent Golf entry.

To end the access on the Agent Golf side too, revoke the client on the **MCP Clients** card of the **Account** page. See [Revoke a client](https://docs.agent.golf/mcp/access.md#revoke-a-client).

## Local transcripts

The remote server reads only Agent Golf data. To read local transcripts of Claude Code, Codex, and the GitHub Copilot CLI, also add the local [`agentgolf mcp`](https://docs.agent.golf/cli/commands#agentgolf-mcp) server of the CLI. See [Local transcripts](https://docs.agent.golf/mcp/overview.md#local-transcripts).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.