# Connect VS Code

> Add PromptGale to VS Code chat as a remote HTTP MCP server, choose Authenticate to sign in with OAuth, and ask AI answer engines from the editor.

Add PromptGale to VS Code as a remote MCP server at `https://promptgale.com/mcp`. It signs in with OAuth in the browser, so there is no key to paste.

## How to connect VS Code to PromptGale

1. Add the server to .mcp.json in the workspace root, start it from the MCP servers list and choose Authenticate when asked. Older setups use .vscode/mcp.json with "servers" instead of "mcpServers".
2. Sign in to PromptGale and approve when the browser opens. There is no key to paste.

**.mcp.json**

```json
{
  "mcpServers": {
    "promptgale": {
      "type": "http",
      "url": "https://promptgale.com/mcp"
    }
  }
}
```

## Where the config lives

- From the editor: run Chat: Open Customizations, open MCP Servers, click Add Server (+), choose HTTP and paste the URL. Saving it to Copilot Global writes `~/.copilot/mcp-config.json`, the file Copilot CLI also reads.
- Per workspace: `.mcp.json` in the workspace root, keyed by `mcpServers` (the block below). Microsoft marks the guided flow for this file as experimental (`chat.mcp.workspaceRootConfig.enabled`).
- Older setups use `.vscode/mcp.json` with a `servers` key. Microsoft says that format is deprecated and will be removed in February 2027.

## How sign-in works

- Start the server from MCP: List Servers. When VS Code offers Authenticate in the server actions, choose it and approve in the browser. Review the trust prompt before you accept it.

## Check that it works

Ask VS Code: "Use PromptGale to check who I am connected as, then list the engines." It should call `whoami` and `get_capabilities`. Neither costs credits.

## Try it

Then ask: "Use PromptGale to ask ChatGPT in the US: what is the best CRM for a small agency? List the sources it cited and tell me whether Acme is mentioned." That runs one task and costs ChatGPT's price in credits.

## What VS Code can do with PromptGale

Once connected, VS Code can ask ChatGPT, Gemini, Perplexity, Bing Copilot Search, Meta AI, Google AI Overview, and Google AI Mode a prompt from the country you pick, and read the answer, its cited sources and where each brand ranks. For example:

- "Ask ChatGPT and Perplexity in the US for the best CRM for a small agency, and tell me which brands they name first."
- "Check whether Gemini mentions Acme when asked for project management tools in Germany."
- "Run these 20 prompts on every engine as a batch and list the sites they cite most."

Running a prompt costs that engine's price in credits; reading results, credits and countries is free. The tools are listed in [Connect an agent](https://promptgale.com/docs/mcp.md).

## Troubleshooting

- Run MCP: List Servers, pick `promptgale` and choose Show Output to read its log.
- MCP: Reset Trust clears the trust you gave to MCP servers, if you declined it by mistake.
- Using Copilot outside the editor (Copilot CLI or the cloud agent)? See [Connect GitHub Copilot](https://promptgale.com/docs/connect-github-copilot.md).

Checked against [VS Code docs: MCP servers](https://code.visualstudio.com/docs/copilot/customization/mcp-servers) and [VS Code docs: MCP configuration reference](https://code.visualstudio.com/docs/agents/reference/mcp-configuration) on 2026-11-27. Menu names in VS Code can change; the vendor page is the reference.

## Next

- Every tool and what it costs: [Connect an agent](https://promptgale.com/docs/mcp.md).
- What a result contains: [Results](https://promptgale.com/docs/results.md).
- The engines and their prices: [Engines](https://promptgale.com/docs/engines.md).

---

Docs index: https://promptgale.com/llms.txt · Full reference: https://promptgale.com/llms-full.txt · OpenAPI: https://promptgale.com/v1/openapi.json
