Prerequisites
- A Langmail account — sign up at app.langmail.me.
- VS Code with GitHub Copilot.
Connect
1
Add the server
From the terminal:Or add it to You can also run MCP: Add Server from the command palette and choose HTTP.
.vscode/mcp.json in your workspace:.vscode/mcp.json
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
list_calendars and returns your calendars with their CalDAV URLs.
Ending access
Remove thelangmail 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”.