All documentation
On this page
Set-up documentation
Connect your mailbox to VS Code
VS Code now takes MCP servers in the portable mcpServers format, in .mcp.json or your Copilot user file. It registers itself, so the entry is a type and a URL.
mcpServers
url
VS Code in 4 steps
-
Open MCP Servers in Customizations
With Copilot selected as the session target, run Chat: Open Customizations from the Command Palette and select MCP Servers.
-
Add the server by URL
Select Add Server (+), choose HTTP, enter https://mcp.mailbox-mcp.com/db/mcp/YOUR-MAILBOX-KEY and give it a server ID such as workMail.
-
Choose Global, then Copilot Global
That writes an mcpServers entry to your Copilot user configuration. To share it with a workspace instead, use .mcp.json at the workspace root.
-
Sign in when VS Code asks
VS Code registers its own client and sends you to the Mailbox MCP sign-in to choose a mailbox and what Copilot may do. Then ask for something only your mailbox can answer.
The key is mcpServers now, not servers
Read this first if you set up VS Code before. Until recently, VS Code was
the one client in this section whose top-level key was
servers, in .vscode/mcp.json. VS Code has
moved Copilot to what it calls the portable mcpServers
format, the same key Cursor and Claude Code use, and its configuration
reference is plain about the old files:
For new Copilot configurations, use these native destinations, not .vscode/mcp.json or profile mcp.json.
VS Code documentation, MCP configuration reference
Those older files belong to what VS Code now calls the Local harness,
which it says is deprecated and will be removed in February 2027. A
servers block you already have isn't broken today, but new
set-ups should use mcpServers, and so should yours before
then.
One thing to know if you're reading GitHub's own Copilot page as well:
on 25 November 2026 it still showed the older servers block
in .vscode/mcp.json. VS Code's configuration reference is
the newer of the 2, so this page follows it.
The configuration
{
"mcpServers": {
"workMail": {
"type": "http",
"url": "https://mcp.mailbox-mcp.com/db/mcp/YOUR-MAILBOX-KEY",
"tools": ["*"]
}
}
}
type is http, which VS Code says means
Streamable HTTP, and url is the mailbox's own connector URL.
tools set to ["*"] makes every tool on the
connection available, and VS Code notes that this "doesn't bypass tool
approvals". There is no token, and the sign-in section explains why.
VS Code asks for server names without spaces or special characters, in
camelCase if you need more than one word, so workMail
rather than work-mail.
Which file, and how to open it
| Scope | Where it lives |
|---|---|
| Every workspace | ~/.copilot/mcp-config.json, or $COPILOT_HOME/mcp-config.json when that's set. In the Add Server flow, choose Global, then Copilot Global. |
| One workspace | .mcp.json at the workspace root. Commit it if the team should share the server. |
| A remote or Dev Container | The same files, on the machine where the session runs. VS Code says your local user file isn't forwarded to another host. |
Both files can also be edited through a form in Chat: Open
Customizations, then MCP Servers. MCP: Add Server starts the
same guided set-up from the Command Palette, and MCP: List
Servers shows what's attached. VS Code notes that the commands
which open .vscode/mcp.json or a profile
mcp.json still edit the older format, not these files.
The workspace option is still marked experimental in the Add Server
flow, behind the chat.mcp.workspaceRootConfig.enabled
setting, but a .mcp.json file you write yourself is read
either way.
No token: it registers itself
VS Code handles the sign-in for Copilot. Its MCP guide says it supports OAuth providers "through Dynamic Client Registration (DCR) or a pre-registered OAuth client", and Mailbox MCP supports the first. So the entry above is complete: VS Code introduces itself to our server, is issued what it needs, and sends you to our sign-in to choose a mailbox and what Copilot may do.
If a server's actions offer Authenticate, that's the same sign-in started by hand. To end the connection, press Disconnect beside it on the mailbox's Connector tab in our control panel.
Copilot Business and Enterprise: the MCP policy
If your Copilot comes from an organisation, check this before you start. GitHub says an organisation or enterprise can enable or disable MCP for its members with the "MCP servers in Copilot" policy, and:
The policy is disabled by default.
GitHub Docs, Extending GitHub Copilot Chat with MCP servers
It applies to Copilot Business and Copilot Enterprise. GitHub says Copilot Free, Pro, Pro+ and Max are not governed by it, so on a personal plan there's nothing to ask for. On a company plan, an administrator has to turn the policy on before any MCP server, ours included, will work.
Check that it worked
With Copilot as the session target, ask for something only your mailbox can answer, then expand the tool call in the conversation. VS Code's own advice is the right test: "A plausible answer without a tool call doesn't verify the connection."
Try this first
Use the workMail tools to search my mail for anything mentioning this repository in the last month and tell me what was asked for. Don't change anything.
Nothing is marked read by asking. If the tools are listed but the call fails, the mailbox credential is the thing to check in the control panel, not this file.
The free tier is 5 MCP calls a day on any mailbox, with no card, which is enough to add the server above and see Copilot answer from it.
Where to go next
If you also use Cursor,
the top-level key is the same now, but don't reuse this block as it is:
Cursor documents type for local servers only. The
key table compares all of
them.
- VS Code documentation: MCP configuration reference The portable mcpServers format, its 2 files, the fields, and the deprecated Local harness.
- VS Code documentation: Add and use MCP servers in VS Code The Add Server walkthrough and how to verify a tool call.
- VS Code documentation: Integrate MCP servers with Copilot OAuth through Dynamic Client Registration.
- GitHub Docs: Extending GitHub Copilot Chat with MCP servers The MCP servers in Copilot policy and the plans it governs.
- The VS Code version that brought the Copilot harness and its mcpServers files. GitHub asks for Visual Studio Code 1.99 or later for MCP in general; VS Code's own pages give no version for the new format.
- The Windows location of the Copilot user file. VS Code gives ~/.copilot/mcp-config.json and $COPILOT_HOME, and no separate Windows path.
Read 25 November 2026 Every value on this page came off VS Code documentation: MCP configuration reference on that day. If it has changed since, tell us and we will read it again.