Give Windsurf, now Devin Desktop, an email inbox
Windsurf became Devin Desktop in June 2026. Add https://api.trotta.email/mcp to ~/.config/devin/mcp_config.json and sign in with Trotta Mail, or send an agent key in a headers block. Devin Local asks before it calls an MCP tool, so reading, replying and sending wait for your approval until you allow them.
Updated
Which file does your Windsurf read?
| You run | Agent | MCP config |
|---|---|---|
| Devin Desktop, all projects | Devin Local | ~/.config/devin/mcp_config.json |
| Devin Desktop, one project | Devin Local | .devin/mcp_config.json, or .devin/mcp_config.local.json |
| Windsurf plugin for JetBrains | Cascade | The file that Open MCP config file shows |
On Windows the personal file is %APPDATA%\devin\mcp_config.json. Cascade inside Devin Desktop is legacy and starts no new conversations.
Sign in, with no key in any file
{
"mcpServers": {
"trotta": {
"url": "https://api.trotta.email/ mcp"
}
}
}- Save the file. In the Agents window, open Customize, then MCPs.
- Authenticate when asked. With Devin CLI, run
devin mcp login trotta. - Sign in with Trotta Mail, pick the inboxes, and choose whether it may read, send or both.
A signed-in agent cannot create inboxes. Create one in the console first, or use a key.
Or give it an agent key
No account yet? This call returns an inbox, a key and a link to claim the agent:
curl -X POST https://api.trotta.email/ v1/ agents/ signup \
-H "Content-Type: application/ json" \
-d '{"display_name": "Riley"}'{
"mcpServers": {
"trotta": {
"url": "https://api.trotta.email/ mcp",
"headers": {
"Authorization": "Bearer tm_live_..."
}
}
}
}devin mcp add trotta https://api.trotta.email/ mcp \
--scope user \
--header "Authorization: Bearer $TROTTA_MAIL_API_KEY"Keep a key out of .devin/mcp_config.json, which is shared through the repository. Use the personal file, or the local override that git ignores. Before a human claims it, the agent sends replies, plus mail to its own organization's inboxes, up to 50 a day.
The Windsurf plugin for JetBrains
Cascade fills in environment variables in its file, so the key stays in your environment. Open the file from Cascade's MCP menu, save, then press refresh. The plugin is in maintenance mode.
{
"mcpServers": {
"trotta": {
"serverUrl": "https://api.trotta.email/ mcp",
"headers": {
"Authorization": "Bearer ${env:TROTTA_MAIL_API_KEY}"
}
}
}
}What asks first, and how to narrow it
Devin Local prompts before any MCP tool call. To let reading run and keep sending behind a prompt:
{
"permissions": {
"allow": [
"mcp__trotta__list_inboxes",
"mcp__trotta__list_messages",
"mcp__trotta__read_message",
"mcp__trotta__wait_for_message"
],
"ask": [
"mcp__trotta__send_message",
"mcp__trotta__reply_to_message",
"mcp__trotta__answer_invitation"
]
}
}To take sending away instead, add "disabledTools": ["send_message", "reply_to_message", "answer_invitation"] to the server entry. create_draft stays, so you read and send each reply yourself.
A coding agent that reads mail also has your files in reach. Each message is screened before delivery and held mail is never shown to it. No filter catches everything, so read the prompt before you approve a send. See data exfiltration through agents.
These steps follow the Devin and Windsurf docs, checked on 2026-12-03.
Questions
Is Windsurf still called Windsurf?
The editor became Devin Desktop on June 2, 2026, according to its FAQ. The JetBrains plugin keeps the Windsurf name.
Does an old entry in ~/.codeium/windsurf/mcp_config.json still work?
Devin CLI's docs say it imports MCP servers from the Windsurf config directory by default. For new setups, use ~/.config/devin/mcp_config.json.
Can Windsurf read a verification code from this inbox?
Yes, in an inbox of its own. wait_for_message with has_code set returns the message that carries the code.
Does this need IMAP or SMTP?
No. The agent calls tools over MCP. Trotta Mail offers no IMAP or SMTP access.