Connected to the Reachd MCP server, GitHub Copilot in VS Code sees where a business stands in AI answers, its score and place, and which actions Reachd has open. Every action points to a page and to what that page is missing, so with the site’s repository open, Copilot’s agent can make the change in that file.
VS Code connects to Reachd in two ways: OAuth with a Reachd login, which VS Code runs on its own, or a personal API key sent in a header. OAuth is the shorter route, since VS Code’s MCP: Add Server flow does most of the work.
Before you add the MCP server to VS Code
- A Reachd account with at least one business. A free AI visibility check creates one in a few minutes.
- VS Code with GitHub Copilot signed in and Copilot selected in the chat’s Session Target dropdown. The steps below follow that setup, and the note at the end covers the older
mcp.jsonfiles. - For the key route, an API key. In the Reachd app open Settings with the gear in the top bar, choose API & MCP and click Create key. Reachd shows the key once, so copy it before leaving the page.
Add Reachd to VS Code from the Command Palette
- Open the Command Palette (
Cmd+Shift+Pon macOS,Ctrl+Shift+Pon Windows and Linux) and run MCP: Add Server. The same flow opens from Chat: Open Customizations, under MCP Servers, with Add Server in the User group. - Choose HTTP (HTTP or Server-Sent Events).
- Enter
https://api.reachd.ai/mcpas the server URL. - Enter
reachdas the server ID. - Choose Global, then Copilot Global.
- If VS Code asks whether to trust the server, review the entry and accept.
- VS Code shows “The MCP Server Definition ‘reachd’ wants to authenticate to…”. Click Allow, sign in with the email used in the Reachd app and approve access on the consent screen. If no prompt comes up, open the server’s … menu under MCP Servers and choose Authenticate.
VS Code keeps the token and the agent reads every business that login can open in Reachd. If step 5 doesn’t offer Copilot Global, check that Copilot is the selected session target, which VS Code requires for this destination.
The reachd entry in ~/.copilot/mcp-config.json has this shape:
{
"mcpServers": {
"reachd": {
"type": "http",
"url": "https://api.reachd.ai/mcp",
"tools": ["*"]
}
}
}
Where VS Code keeps MCP config for Copilot
Copilot reads MCP servers from two files, both with a top-level mcpServers object:
| Where | File |
|---|---|
| Every workspace (Copilot Global) | ~/.copilot/mcp-config.json |
| One project, shared with the team | .mcp.json in the workspace root |
$COPILOT_HOME/mcp-config.json replaces the first path when COPILOT_HOME is set. Copilot CLI on the same computer reads the same file, so Reachd added once works in both.
Add Reachd to VS Code with an API key
The key travels in the Authorization header with every request, so nobody signs in. Open ~/.copilot/mcp-config.json and add the reachd entry:
{
"mcpServers": {
"reachd": {
"type": "http",
"url": "https://api.reachd.ai/mcp",
"headers": {
"Authorization": "Bearer ${REACHD_API_KEY}"
},
"tools": ["*"]
}
}
}
If the file already lists other servers, add reachd inside the existing mcpServers object. ${REACHD_API_KEY} reads the key from an environment variable of that name, which has to exist where VS Code starts. The key can also be written out in place of the reference. It then sits in the file as plain text, in the home folder and outside any repository. VS Code input variables such as ${input:…} don’t work in this file.
The key reads the Reachd workspace it was created in, with its creator’s access, and stops working if that person leaves the workspace. If it leaks, revoke it in Settings → API & MCP and set the variable to a new one.
Check that the Reachd MCP server works
Run MCP: List Servers from the Command Palette and choose reachd to see its state, start it or open Show Output. The same controls are in the server’s … menu under MCP Servers in Chat: Open Customizations. Then ask Copilot:
How is the AI visibility of my business this week?
What insights has Reachd found to get my business recommended first by ChatGPT?
Copilot finds the business with list_businesses, then answers the first question from get_visibility_status, which returns the score, the main competitors and how often each AI engine recommends the business. For the second it calls get_action_items and lists the insights Reachd has open, each with the page to change and what that page is missing. With several businesses in the account, the question should name one. Expand a tool call in the conversation to confirm the answer came from Reachd. Ask next:
- “Which competitors does AI recommend ahead of my business, and what does it quote about the leader?”
- “Take the Reachd action for the pricing page and make that change in this repository.”
Reachd reads a changed page on its next run and closes the action once the page carries the change. The Reachd MCP server page shows what else Copilot can ask Reachd.
VS Code MCP errors and what they mean
A sign-in opens although the config has a key
Reachd refused the key. The header has to read Bearer, a space and the whole key, the environment variable has to be set where VS Code starts, and the key must still be active in Settings → API & MCP.
Interactive inputs are not supported in Copilot Global MCP configuration
The entry in ~/.copilot/mcp-config.json uses ${input:…} or an inputs block. Use an environment variable reference such as ${REACHD_API_KEY} in that file, or write the header value out.
The Copilot Global MCP configuration must contain valid JSON
A trailing comma or a missing brace broke the file. VS Code reads none of its servers until the JSON is valid again.
The server never starts
A server from a workspace file doesn’t start while the workspace is in Restricted Mode, so trust the workspace first. For a Copilot Global server, open Show Output from the server’s menu and read the last error. In a Copilot Business or Enterprise organization, an admin’s allowlist can also block a server.
Copilot answers without calling Reachd
Name Reachd in the request, for example “using Reachd, list the open actions for my business”.
The older mcp.json files in VS Code
Before Copilot Global, MCP: Add Server saved to mcp.json in the user profile or to .vscode/mcp.json in a project, both with servers as the top-level key. These files belong to the Local harness, which VS Code has deprecated and plans to remove in February 2027. MCP: Open User Configuration still opens the profile file, and it accepts an API key through an input variable that VS Code asks for once and keeps in its secret storage:
{
"inputs": [
{
"type": "promptString",
"id": "reachd-key",
"description": "Reachd API key",
"password": true
}
],
"servers": {
"reachd": {
"type": "http",
"url": "https://api.reachd.ai/mcp",
"headers": {
"Authorization": "Bearer ${input:reachd-key}"
}
}
}
}
An entry with ${input:…} works in a Local session only. Copilot sessions don’t pick it up, so a new setup goes to Copilot Global as described above.
Frequently Asked Questions
Where is mcp.json in VS Code?
Copilot in VS Code reads two files, both with a top-level mcpServers object. Servers for every workspace are in ~/.copilot/mcp-config.json, which the Add Server flow calls Copilot Global. A project's servers are in .mcp.json at the workspace root. The older .vscode/mcp.json and the user-profile mcp.json use a servers key and belong to the Local harness, which VS Code has deprecated and plans to remove in February 2027.
How do I add headers to an MCP server in VS Code?
Add a headers object next to url in the server's entry, for example an Authorization header with Bearer and the token. In ~/.copilot/mcp-config.json the value is written out or read from an environment variable as ${NAME}. That file doesn't accept VS Code input variables.
Does VS Code support OAuth for remote MCP servers?
Yes. When a remote server needs a sign-in, VS Code asks to let the server authenticate, opens the sign-in in a browser and keeps the token. The server's menu under MCP Servers also offers Authenticate while a sign-in is pending.
Does the Reachd MCP server work with GitHub Copilot?
Yes. A server saved to Copilot Global is available to Copilot in every VS Code workspace and to other Copilot tools on the same computer, Copilot CLI among them.
Can Copilot change my website based on Reachd data?
Yes, when the site's code is open in VS Code. Each Reachd action names the page to change and what that page is missing, so Copilot can open the file and make the edit. Reachd reads the page on its next run and closes the action once the page carries the change.