Configure the MCP server by editing ~/.codeium/windsurf/mcp_config.json or using the Windsurf Command Palette (Cmd+Shift+P → Windsurf: Configure MCP Servers).
Critical Requirement: L6E_LOG_PATH must be set because Windsurf spawns MCP servers with cwd=/. Without this, logs will fail to write due to permission errors.
Optional variables:
L6E_API_KEY: Enables cloud sync and personal calibration factors.L6E_CLOUD_SYNC: Set to 1 to sync session run logs to the l6e cloud.
Restart Windsurf completely after saving the configuration.
{
"mcpServers": {
"l6e-budget": {
"command": "uvx",
"args": ["l6e-mcp"],
"env": {
"L6E_LOG_PATH": "${HOME}/.l6e/runs.jsonl",
"L6E_API_KEY": "sk-l6e-...",
"L6E_CLOUD_SYNC": "1"
}
}
}
}