# VS Code + GitHub Copilot + Pear MCP guide

Add Pear as an HTTP MCP server in VS Code so Copilot agent workflows can use the
provider accounts connected to Pear.

Server URL:

```text
https://pearmcp.com/api/mcp
```

## Setup

VS Code supports remote HTTP MCP servers, OAuth configuration, and secure input or
environment variables. A Bearer configuration can use:

```json
{
  "servers": {
    "pear": {
      "type": "http",
      "url": "https://pearmcp.com/api/mcp",
      "headers": {
        "Authorization": "Bearer ${env:PEAR_API_KEY}"
      }
    }
  }
}
```

Keep the key outside checked-in workspace files. If VS Code starts OAuth discovery,
complete Pear sign-in in the browser. Confirm Pear is enabled in Copilot Chat and begin
with a read-only provider-status or calendar request.
