# Connect GitHub Copilot

> Add PromptGale to GitHub Copilot CLI with one command and OAuth, or to the Copilot cloud agent with an API key stored as a COPILOT_MCP_ secret.

Add PromptGale to GitHub Copilot 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 GitHub Copilot to PromptGale

1. Copilot CLI: run copilot mcp add (below); it signs in with OAuth on first use. To sign in again, run /mcp auth promptgale in Copilot CLI.
2. Copilot for all your projects: ~/.copilot/mcp-config.json, shared with Copilot CLI.
3. GitHub's Copilot cloud agent (repository MCP settings) does not support OAuth: use an API key ([Connect with an API key](https://promptgale.com/docs/connect-api-key.md)) with a COPILOT_MCP_ secret.

**Copilot CLI**

```bash
copilot mcp add --transport http promptgale https://promptgale.com/mcp
```

**~/.copilot/mcp-config.json**

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

## Where the config lives

- Copilot CLI: `copilot mcp add` saves the server in `~/.copilot/mcp-config.json` (or under `COPILOT_HOME`). Inside the CLI, `/mcp add` opens the same form.
- Copilot cloud agent: repository Settings, Copilot, MCP servers, then paste the JSON from [Connect with an API key](https://promptgale.com/docs/connect-api-key.md) and save.

## How sign-in works

- Copilot CLI signs in with OAuth on first use. To sign in again, run `/mcp auth promptgale`.
- GitHub says the cloud agent does not support remote servers that use OAuth, so it needs an API key. Store the key as a secret whose name starts with `COPILOT_MCP_`.

## Check that it works

Ask GitHub Copilot: "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 GitHub Copilot can do with PromptGale

Once connected, GitHub Copilot 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

- `copilot mcp list` and `copilot mcp get promptgale` show what Copilot CLI loaded.
- Copilot CLI skips project-level servers in folders you have not trusted.
- In a cloud agent session, open View session and expand Start MCP Servers to see the log.
- Using Copilot chat in VS Code? See [Connect VS Code](https://promptgale.com/docs/connect-vscode.md).

Checked against [GitHub docs: add MCP servers to Copilot CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers) and [GitHub docs: MCP servers for the cloud agent](https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/configure-mcp-servers) on 2026-11-27. Menu names in GitHub Copilot 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
