Skip to main content
VS Code supports remote MCP servers in Copilot agent mode (VS Code 1.102 or later).

Prerequisites

Connect

1

Add the server

From the terminal:
Or add it to .vscode/mcp.json in your workspace:
.vscode/mcp.json
You can also run MCP: Add Server from the command palette and choose HTTP.
2

Authorize access

Start the server from the play button in mcp.json or via MCP: List Servers. VS Code prompts you to authorize — the browser opens for Langmail sign-in and consent.
3

Verify

Open the Chat view in agent mode and check the tools menu: the Langmail tools are listed under langmail.

Test it

Ask the agent:
Prompt
It calls list_calendars and returns your calendars with their CalDAV URLs.

Ending access

Remove the langmail entry from mcp.json (or via MCP: List Servers). Removing it discards its tokens; without the refresh token, access lapses when the current access token expires.

Next steps

Search and triage email

Real prompts and the tool calls they produce.

How authorization works

What happens between “add server” and “connected”.