Windsurf
AlwaysOn Memory connects to Windsurf (AI IDE (Devin Desktop)) over Streamable HTTP MCP using a connection key in ~/.codeium/windsurf/mcp_config.json. Once connected, Windsurf can read, search, write, and hand off project memory across fresh sessions and other connected tools.
How do I connect Windsurf to AlwaysOn Memory?#
Connect Windsurf over Streamable HTTP MCP with your workspace URL (https://always-on.cloud/t/YOUR-WORKSPACE/mcp) and a workspace-scoped awm_ connection key in ~/.codeium/windsurf/mcp_config.json. Create the key under Setup or Connections, paste the config below, and reload Windsurf to load all 16 memory tools.
- Transport
- Streamable HTTP MCP (2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05)
- Authentication
- Workspace-scoped Bearer connection key (
awm_...) in theAuthorizationheader. Cursor and VS Code also support one-click browser OAuth 2.1. Config location- ~/.codeium/windsurf/mcp_config.json
Universal OAuth URL- https://always-on.cloud/mcp
Workspace URL- https://always-on.cloud/t/YOUR-WORKSPACE/mcp
- Add AlwaysOn to Windsurf
In Windsurf, open Settings → Cascade → MCP Servers → View raw config, paste the JSON below with your workspace URL and connection key, save, and click Refresh.
~/.codeium/windsurf/mcp_config.json{ "mcpServers": { "alwayson": { "serverUrl": "https://always-on.cloud/t/YOUR-WORKSPACE/mcp", "headers": { "Authorization": "Bearer YOUR_CONNECTION_KEY" } } } } - Load the memory tools in Windsurf
Tip: the signed-in AlwaysOn Setup screen also generates a 1-command terminal auto-installer with your real URL and key pre-filled.
How do I verify Windsurf recalls memory across sessions?#
Save one harmless decision, open a brand-new session so chat history is empty, and ask Windsurf to recall it. If it comes back accurately, the setup works—and the dashboard Setup screen logs the save, the new initialize handshake, and the retrieval.
- Save one test decision
In Windsurf, ask: "Save to AlwaysOn memory as a project decision: we ship the smallest useful version first."
- Check recall in a fresh session
Open a new chat or restart Windsurf, then ask: "Check AlwaysOn memory: what did we decide about the first release?"
- Confirm it in the dashboard
Open Memory or Setup in AlwaysOn to see the saved memory page and the server-observed MCP events.
curl -fsS -X POST "https://always-on.cloud/t/YOUR-WORKSPACE/mcp" -H "Authorization: Bearer YOUR_CONNECTION_KEY" -H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" -d '{"jsonrpc":"2.0","id":"setup","method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"windsurf","version":"1.0"}}}' >/dev/null && echo "✓ AlwaysOn connection verified!"How do I fix common Windsurf connection errors?#
Most Windsurf setup problems come down to four things: a mistyped or revoked connection key (HTTP 401), hitting the Free browser-approved app limit (HTTP 402), a wrong workspace slug (HTTP 403), or a session that hasn't reloaded ~/.codeium/windsurf/mcp_config.json yet.
Why does Windsurf get HTTP 401 from AlwaysOn Memory?
HTTP 401 means the connection key is missing, mistyped, or revoked. Create a new connection key under Connections in AlwaysOn, replace YOUR_CONNECTION_KEY in ~/.codeium/windsurf/mcp_config.json, and reload Windsurf.
Does Windsurf need a separate connection key for each repo?
No. One connection key connects Windsurf to your whole workspace, and you separate repos with the project parameter (for example project: "billing-api"). Every plan includes up to 25 active connection keys.
Why didn't Windsurf show AlwaysOn tools right after I edited ~/.codeium/windsurf/mcp_config.json?
Most editors and CLIs read MCP config only when a session starts. Reload the window, refresh the MCP panel, or open a new Windsurf session so it runs a fresh initialize and tools/list handshake.