MCP secrets · Windsurf / Devin Desktop
API keys out of Windsurf’s MCP config
Windsurf became Devin Desktop in June 2026, and its MCP config moved. The key in it doesn’t have to.
The problem
One global file for every server
The solution
MoltenRock Connect
Keys that are never in the file
The short answer
Windsurf was renamed Devin Desktop in June 2026. Its docs now put MCP servers in ~/.config/devin/mcp_config.json (older Windsurf builds used ~/.codeium/windsurf/mcp_config.json). The file resolves ${env:VAR_NAME} and ${file:/path} in command, args, env, serverUrl, url and headers, so it can point at a variable or a file instead of holding the key. For business platforms, an agent that can run commands on your Mac can use MoltenRock Connect, which holds the keys itself.
The problem
Where it goes wrong
- Plain JSON on diskA key written into mcp_config.json sits there in plain text.
- Unset means emptyAn unset ${env:} variable resolves to an empty string, so a missing key fails quietly.
- One key per serverEvery server is another secret to rotate and another package to trust.
The solution
MoltenRock Connect: Keys that are never in the file
- Business tools through ConnectAn agent that can run commands on your Mac talks to MoltenRock Connect’s local socket: 30 platforms, no key.
- Keychain for the restA wrapper reads other servers’ keys from the macOS Keychain when they start.
- Answers, not keysConnect returns data, with customer names and addresses as tokens.
- Changes wait for youOn Stripe, Cloudflare and GitHub, the agent can only propose; you approve with Touch ID.
Side by side
Where a Windsurf / Devin Desktop MCP key can live
| Option | What’s in mcp_config.json | Good for |
|---|---|---|
| The key in env or headers | The key itself, in plain text | A quick test, then remove it |
| ${env:VAR} or ${file:/path} | A variable or a file path; the key sits there instead | Keys you already keep elsewhere |
| Keychain and a wrapper script | A path to the wrapper; no secret | Any MCP server you trust |
| MoltenRock Connect | Nothing: the agent uses Connect’s local socket | Its 30 business platforms |
How it works
Clean up mcp_config.json
- 01Find the file~/.config/devin/mcp_config.json in Devin Desktop; ~/.codeium/windsurf/mcp_config.json in older Windsurf builds.
- 02Point the agent at ConnectIn MoltenRock Connect → Settings → Agent Setup → Other agents, copy the note for your agent.
- 03Keychain for the restStore the key once with security add-generic-password -a "$USER" -s my-mcp-key -w (it asks for the value, so it never lands in your shell history), then point the server’s command at a two-line wrapper script that reads it with security find-generic-password -s my-mcp-key -w, exports it and starts the server. The config then holds a path, not a secret.
- 04Rotate what was in the fileAny key that sat in a config file may have been copied, synced or shared. Make a new one and revoke the old.
Straight answer
What this fixes, and what it doesn’t
Stays on your Mac
- Platform keys, in Connect or MoltenRock’s vault
- Keys for other servers, in the Keychain
- An mcp_config.json with nothing secret in it
Leaves your Mac
- Connect’s calls from your Mac to each platform
- Answers, to your agent and its model
- MoltenRock Connect covers its 30 business platforms (Stripe, Shopify, WooCommerce, GitHub, Cloudflare and more). An MCP server for anything else still needs its own key: keep that one in the Keychain.
Questions
What people ask first
Is Windsurf now Devin Desktop?
Yes. Cognition renamed Windsurf to Devin Desktop in June 2026; its MCP docs now live on docs.devin.ai.
Where is the MCP config now?
~/.config/devin/mcp_config.json on a Mac (or under $XDG_CONFIG_HOME). Older Windsurf builds used ~/.codeium/windsurf/mcp_config.json.
Can I use MoltenRock Connect from it?
Connect’s documented routes are MCP for Claude Code, Claude Desktop and Cursor, and its local socket for any agent that can run commands on your Mac. Use the socket note from Agent Setup → Other agents.
What does it cost?
Connect is free for two platforms; one $9.99 unlock opens all 30, and MoltenRock Pro includes it.
Move the config, leave the keys behind.
MoltenRock Connect is free for Mac.