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.
-
Install it:
Terminal window pip install ./sdk/python ./integrations/svm_mcp -
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" }}}} -
Ask the agent to create a sandbox and work in it. It calls
create_sandbox, thenrun_code,run_command,write_fileand the other tools with the id it got.
What the tools do
Section titled “What the tools do”| 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.
Fewer turns, fewer tokens
Section titled “Fewer turns, fewer tokens”run_commandanswers 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 tobudgettokens (1,500 by default). Passraw: truefor plain stdout and stderr.apply_patchtakesverify, so an edit and its test run are one call.start_processandwait_forreplace polling loops ofsleepturns.wait_forwaits for a port, a log line or an exit.