# API keys out of Windsurf’s MCP config

> 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.

Windsurf became Devin Desktop in June 2026, and its MCP config moved. The key in it doesn’t have to.

Source: https://moltenrock.com/mcp-api-keys-windsurf · 2026-10-17

## One global file for every server

- **Plain JSON on disk**: A key written into mcp_config.json sits there in plain text.
- **Unset means empty**: An unset ${env:} variable resolves to an empty string, so a missing key fails quietly.
- **One key per server**: Every server is another secret to rotate and another package to trust.

## Keys that are never in the file

- **Business tools through Connect**: An agent that can run commands on your Mac talks to MoltenRock Connect’s local socket: 30 platforms, no key.
- **Keychain for the rest**: A wrapper reads other servers’ keys from the macOS Keychain when they start.
- **Answers, not keys**: Connect returns data, with customer names and addresses as tokens.
- **Changes wait for you**: On Stripe, Cloudflare and GitHub, the agent can only propose; you approve with Touch ID.

## Clean up mcp_config.json

1. **Find the file**: ~/.config/devin/mcp_config.json in Devin Desktop; ~/.codeium/windsurf/mcp_config.json in older Windsurf builds.
2. **Point the agent at Connect**: In MoltenRock Connect → Settings → Agent Setup → Other agents, copy the note for your agent.
3. **Keychain for the rest**: Store 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.
4. **Rotate what was in the file**: Any key that sat in a config file may have been copied, synced or shared. Make a new one and revoke the old.

## 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 |

## 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.

## 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.
