Windsurf Setup
Configure MCP for Codeium's Windsurf IDE to enable AI-assisted component management.
Automatic Setup (Recommended)
Run this single command to automatically configure Windsurf:
npx archyra init --client windsurfWhat this does
- Creates the MCP configuration file at
~/.codeium/windsurf/mcp_config.json - Adds the Archyra MCP server configuration
- Preserves any existing MCP servers you have configured
Manual Setup
If you prefer to configure manually, follow these steps:
Windsurf stores its MCP configuration at:
~/.codeium/windsurf/mcp_config.jsonIf the directory doesn't exist, create it first.
Create the file with this content:
{
"mcpServers": {
"archyra": {
"command": "npx",
"args": ["-y", "archyra@latest", "serve"]
}
}
}If the directory doesn't exist, create it:
mkdir -p ~/.codeium/windsurfClose and reopen Windsurf to load the new MCP configuration. The server will start automatically when Windsurf launches.
Verify Setup
After restarting Windsurf, open the AI chat (Cascade) and try these prompts:
"List all archyra components"
"What UI components are available?"
"Add the DataProcessing component to my project"
If Cascade responds with component information, your setup is complete!
Troubleshooting
MCP server not connecting
Solution: Verify the mcp_config.json file exists at ~/.codeium/windsurf/mcp_config.json and contains valid JSON.
Cascade doesn't recognize MCP tools
Solution: Make sure you fully restarted Windsurf after adding the configuration (not just reloaded the window).
npx command fails
Solution: Ensure Node.js 18+ is installed and in your PATH. Run: node --version to check.
Directory doesn't exist
Solution: Create the directory manually: mkdir -p ~/.codeium/windsurf