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

# Connect GitHub Copilot in VS Code

> Install the Copyfy MCP server in VS Code for GitHub Copilot agent mode, in one click or with mcp.json.

<Info>
  Steps checked against the VS Code documentation on September 24, 2026.
</Info>

## One-click install

<Columns cols={2}>
  <Card title="Install in VS Code" icon="download" href="https://vscode.dev/redirect/mcp/install?name=copyfy&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapp.copyfy.io%2Fmcp%22%7D">
    Opens VS Code with the Copyfy server ready to install.
  </Card>

  <Card title="Install in VS Code Insiders" icon="download" href="https://vscode.dev/redirect/mcp/install?name=copyfy&quality=insiders&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fapp.copyfy.io%2Fmcp%22%7D">
    Same, for the Insiders build.
  </Card>
</Columns>

<Steps>
  <Step title="Install">
    Click the card, let your browser open VS Code, and click **Install** on the Copyfy server page.
  </Step>

  <Step title="Sign in to Copyfy">
    When VS Code says the Copyfy server wants to authenticate, click **Allow**. Sign in to Copyfy in your browser and click **Allow access** on the Copyfy consent screen.
  </Step>

  <Step title="Use agent mode">
    Open Copilot Chat, select **Agent** in the agent picker, and ask: *"Use Copyfy to find 10 winning products in the Pets niche for the US."* You can turn individual Copyfy tools on or off with **Configure Tools**.
  </Step>
</Steps>

You can also install from a terminal:

```bash Terminal theme={null}
code --add-mcp '{"name":"copyfy","type":"http","url":"https://app.copyfy.io/mcp"}'
```

## Manual setup with mcp.json

Run **MCP: Open User Configuration** from the Command Palette to add Copyfy for all workspaces, or create `.vscode/mcp.json` in a workspace. The top-level key is `servers`.

<Tabs>
  <Tab title="OAuth (recommended)">
    ```json mcp.json theme={null}
    {
      "servers": {
        "copyfy": {
          "type": "http",
          "url": "https://app.copyfy.io/mcp"
        }
      }
    }
    ```
  </Tab>

  <Tab title="API key">
    VS Code prompts for the [API key](/authentication#create-a-key) once and stores it securely, so it never appears in the file:

    ```json mcp.json theme={null}
    {
      "inputs": [
        {
          "type": "promptString",
          "id": "copyfy-key",
          "description": "Copyfy API key",
          "password": true
        }
      ],
      "servers": {
        "copyfy": {
          "type": "http",
          "url": "https://app.copyfy.io/mcp",
          "headers": {
            "Authorization": "Bearer ${input:copyfy-key}"
          }
        }
      }
    }
    ```
  </Tab>
</Tabs>

## Fallback

Copy the URL `https://app.copyfy.io/mcp`, run **MCP: Add Server** from the Command Palette, choose **HTTP**, paste the URL, and name the server `copyfy`.

## Disconnect

Remove Copyfy from `mcp.json`, or run **MCP: List Servers**, select Copyfy, and uninstall it. Sign-ins are listed in the **Accounts** menu. To revoke access from the Copyfy side, click **Revoke** under **Connected apps** or revoke the key on the [Integrations page](https://app.copyfy.io/dashboard/api).

Having trouble? See [Troubleshooting](/troubleshooting).
