How to Connect VS Code to MewCP
Add MewCP to VS Code once, and GitHub Copilot Chat can use every app you have connected in MewCP: Gmail, Calendar, Slack, GitHub and the rest. VS Code connects to MewCP directly over HTTP and signs in with your MewCP account, so there is nothing to install and no API key to paste.
There are two ways to set it up:
| Method | Best for |
|---|---|
| One click | Most people |
| MCP config | Editing the config yourself, or one workspace only |
Before you start
- VS Code with GitHub Copilot set up (Copilot in VS Code)
- A MewCP account with at least one app connected under Apps
Option A: One click
-
Add the server
Open Connect Agents → VS Code in the MewCP dashboard and click Add to VS Code. This opens VS Code with the server ready to install.
-
Sign in to MewCP
A browser window opens the first time VS Code connects. Sign in and click Allow access. No API key needed.
Option B: MCP config
-
Open your MCP config
Open the Command Palette (
Cmd+Shift+Pon macOS,Ctrl+Shift+Pon Windows and Linux) and run MCP: Open User Configuration. For one project only, use.vscode/mcp.jsonin the workspace instead. -
Add the server
Note that this file uses
servers, notmcpServers:CodeAlready have a
serverssection? Add only the"mewcp": { ... }entry inside it. -
Start the server
Click Start above the entry in
mcp.json, then sign in to MewCP and click Allow access when the browser window opens.
This is the entire configuration either way. One entry reaches every app you have connected, and connecting another app later needs no change here. The file holds no secret, so a workspace's .vscode/mcp.json can go into git, and each person signs in with their own account.
Check it works
Run MCP: List Servers from the Command Palette. MewCP should be listed as running. In the Chat view, select Configure Tools in the chat input to see its tools.
You will see four tools, not the tools of every app: search, get_schema, manage_connections and call_tool. That is expected. Copilot uses them to find and run the right tool for whatever you ask. See How MewCP works.
Then ask Copilot in agent mode for something from an app you have connected:
Code
VS Code may ask you to confirm each tool call.
Use an API key instead
VS Code can ask for an API key once and store it securely, so the key never sits in a config file. Use this entry in your user mcp.json instead of the one above:
Code
When MewCP starts for the first time, VS Code asks for the key. Paste the key from Dashboard → API Keys, without Bearer.
VS Code does not pass servers that prompt for input to Agent Host sessions. If MewCP is missing there, use sign-in instead.
Troubleshooting
Chat shows an error for MewCP
Run MCP: List Servers, select mewcp, and choose Show Output. The output shows why it failed to start, connect or sign in. You can also select the error in the Chat view and choose Show Output.
MewCP does not appear at all
Check the top-level key matches the file:
| File | Top-level key |
|---|---|
~/.copilot/mcp-config.json or .mcp.json | mcpServers |
User profile mcp.json or .vscode/mcp.json | servers |
Older guides put MCP servers in settings.json under "mcp". Move the entry into one of the files above.
No sign-in window opens, or the sign-in failed
Run MCP: List Servers, select mewcp, and restart it to start sign-in again. See OAuth Sign-In for errors on the sign-in page.
The output shows 401 or 403
- With sign-in, a
401that says your sign-in has expired means VS Code needs to sign in again. Restart the server. - With an API key, enter the key alone when VS Code asks, since the config already adds
Bearer. The key starts withmewcp_proj_. - A
403that says your plan's billing period has ended means your MewCP plan needs renewing under Billing.
MewCP was not started because you declined the trust prompt
Run MCP: Reset Trust from the Command Palette, then send a chat message again and confirm.
MCP tools are turned off by your organization
On Copilot Business and Enterprise plans, an admin controls whether MCP servers can be used in Copilot. If no MCP server works, ask your admin to allow MCP servers, or to add https://gateway.mewcp.com to your organization's allowlist. See GitHub's MCP allowlist guide.
Last updated on 29 November 2026.