Connect to the MCP server
The MCP server operates through streamable HTTP at the sandbox’s base URL:You must provide your Blaxel API key in the
Authorization header. If your user has access to multiple workspaces, include the workspace header as well.- Required:
Authorization: Bearer <APIKEY> - Optional (multi-workspace):
X-Blaxel-Workspace: <WORKSPACE_NAME_OR_ID>
Add to Cursor
Add the server to~/.cursor/mcp.json:
Add to Claude Code
Add the remote HTTP server to your Claude Code by running the following command:Add to Windsurf
Add to~/.codeium/windsurf/mcp_config.json:
Tools available in the MCP server
- Process management:
processExecute- Execute a command.processGet- Get process information by identifier (PID or name).processGetLogs- Get logs for a specific process.processKill- Kill a specific process.processStop- Stop a specific process.processesList- List all running processes.
- Filesystem operations
fsDeleteFileOrDirectory- Delete a file or directory.fsGetWorkingDirectory- Get the current working directory.fsListDirectory- List contents of a directory.fsReadFile- Read contents of a file.fsWriteFile- Create or update a file.
- Tools specialized for code generation AI:
codegenEditFile- Propose and apply a targeted edit to a specified file, with instructions and partial contents. This tool uses Morph or Relace for fast edits, and requires the corresponding API key set as an environment variable when creating the sandbox.codegenCodebaseSearch- Find semantic code snippets from the codebase based on a natural language query.codegenFileSearch- Fast fuzzy filename search in the project.codegenGrepSearch- Run fast, exact regex/text searches on files for locating patterns or strings.codegenListDir- List contents of a directory in the project.codegenParallelApply- Plan and apply similar changes to multiple locations/files simultaneously.codegenReadFileRange- Read a specific range of lines in a file (max 250 lines at once).codegenReapply- Retry the application of the last edit, in case it previously failed.
