Give Copilot in VS Code a mailbox for its tasks.
Keep coding work and email identity in the same workspace without handing Copilot your personal inbox. VS Code connects to the separate mailbox you authorize in Stacksona Connect.
For developers who use GitHub Copilot in VS Code and want email tools available alongside their coding workflow.
Add the remote MCP server in VS Code
Pick the VS Code configuration file and matching JSON shape before starting the server.
Create the mailbox
Create the agent mailbox and set the contacts or approval rules that should apply to its messages. Your mailbox address is assigned by Connect.
Open MCP server setup
In VS Code, run the MCP: Add Server command. Choose an HTTP server, paste the Connect URL, and save it in the scope that fits your workflow.
Choose the matching config format
For workspace config, VS Code uses
.vscode/mcp.jsonwith a top-levelserversobject. Portable.mcp.jsonusesmcpServers; do not copy the portable format into the VS Code workspace file.Start and authorize
Start the server from VS Code’s MCP view, complete browser sign-in, and inspect which tools are enabled. Verify the granted permissions before asking Copilot to read mail.
Workspace configuration example
Save this as .vscode/mcp.json. VS Code workspace configuration uses a top-level servers object.
{
"servers": {
"stacksona-connect": {
"type": "http",
"url": "https://connect.stacksona.com/mcp"
}
}
}Use the format VS Code expects for the scope you chose.
VS Code supports MCP server configuration in more than one place. The workspace file `.vscode/mcp.json` uses a `servers` map; the portable `.mcp.json` convention uses `mcpServers`. Matching the file and format prevents a quiet setup failure.
- Workspace configuration can be checked into a project, but OAuth remains the authorizing user’s own state.
- Use the MCP view to see whether the server started and which tools are available.
- Follow the VS Code version’s prompt if it asks you to trust the workspace.
Access to an agent mailbox does not open your mailbox.
The OAuth flow ends at Connect, where you choose the specific scopes granted to the agent. Your personal Microsoft or Google email account is not part of this connection. You can begin with read and draft, then require review for unfamiliar recipients.
- Grant send access only when Copilot needs to deliver messages.
- Review Connect’s contact and approval controls before allowing external mail.
- A saved workspace server is not an automatic inbox-processing schedule.
VS Code and Copilot setup details
Which file should I use in VS Code?
Use `.vscode/mcp.json` for workspace configuration with a top-level `servers` key. The portable `.mcp.json` format uses `mcpServers` instead.
Does this connect Copilot to my Outlook account?
No. Copilot receives access to a mailbox created in Stacksona Connect. It does not receive your Outlook password or a delegated Outlook inbox connection.
Why does the server appear but no tools show?
Check that the server started, finish the browser authorization, reload the MCP view, and confirm the Connect scopes include the actions you expect. The model may show fewer tools than Connect granted.
Connect Copilot to an agent mailbox
Create the mailbox and add the remote server in VS Code using the configuration format for your chosen scope.
Create an agent mailbox