Skip to content

MCP server

svm-mcp is an MCP server that speaks stdio and gives an agent SVM sandboxes as tools. Every tool takes the sandbox id, so the server keeps no state. Output is bounded, and no credential is ever returned.

  1. Install it:

    Terminal window
    pip install ./sdk/python ./integrations/svm_mcp
  2. Register it with your MCP client. This JSON works for any client that launches stdio servers:

    {
    "mcpServers": {
    "svm": {
    "command": "svm-mcp",
    "env": { "SVM_API_KEY": "…", "SVM_DOMAIN": "api.example.com" }
    }
    }
    }
  3. Ask the agent to create a sandbox and work in it. It calls create_sandbox, then run_code, run_command, write_file and the other tools with the id it got.

Group Tools
Sandboxes create_sandbox, list_sandboxes, kill_sandbox, fork_sandbox
Run run_code (Python, JavaScript, TypeScript, R, Java, Bash), run_command, start_process, wait_for
Files read_file, write_file, list_files
Code work view, search, repo_map, apply_patch, diagnostics
Many attempts rollout: one script in 2 to 16 branches, each scored, the best kept
Web browser: navigate, snapshot, click, type, press, back, wait_for

The MCP tool reference lists every parameter.

  • run_command answers with the exit code and what a test runner or compiler reported: the summary, failed tests, error locations, and what was fixed or newly broken since the last run. Then comes the output, cut to budget tokens (1,500 by default). Pass raw: true for plain stdout and stderr.
  • apply_patch takes verify, so an edit and its test run are one call.
  • start_process and wait_for replace polling loops of sleep turns. wait_for waits for a port, a log line or an exit.