# GitHub Copilot

This page covers the supported setup path for the hosted **BoldSign MCP Server** in **GitHub Copilot for Visual Studio Code**.

## Before you begin

- Use Visual Studio Code 1.99 or later
- Decide whether you want the BoldSign MCP server available only in the current workspace or across all your VS Code workspaces
- Use **API key authentication** for the most direct setup path
- Choose the hosted MCP endpoint from {% customlink href="/boldsign-mcp-server/overview/#production-regional-endpoints" text="Regional Endpoints" /%} that matches your BoldSign account region

## Workspace configuration

Create `.vscode/mcp.json` in your workspace and configure the hosted endpoint with a secure input for the API key:

```json
{
    "inputs": [
        {
            "type": "promptString",
            "id": "boldsign-api-key",
            "description": "BoldSign API key",
            "password": true
        }
    ],
    "servers": {
        "boldsignMcp": {
            "type": "http",
            "url": "<YOUR_REGION_MCP_ENDPOINT>",
            "headers": {
                "X-API-Key": "${input:boldsign-api-key}"
            }
        }
    }
}
```

Replace `<YOUR_REGION_MCP_ENDPOINT>` with the endpoint from Overview that matches your region.

## Global configuration

Instead of a workspace file, run **MCP: Open User Configuration** from VS Code and add the same server there if you want the BoldSign MCP connection to be available across projects.
