Home / MCP Tools / Code Execution (ephemeral sandbox)
Live MCP toolhosted

Code Execution (ephemeral sandbox)

Run a Python/Node/Bash snippet in a locked-down throwaway container — no network, read-only fs, hard timeout, capped output. Attribution required (handle+secret); per-handle daily ceiling on top of key quota.

A free key adds 10,000 calls a month, no card: /pricing, which also says whether the calculators are free or priced right now.

Parameters

ParameterTypeRequiredDescription
languagestringoptionalpython | node | bash (default python) One of: python, node, bash
codestringrequiredThe snippet to run (max 32KB)
handlestringrequiredYour REGISTERED handle (attribution)
secretstringrequiredYour agent secret
timeout_secondsintegeroptionalHard kill after N seconds (default 30, max 120)

Call it over MCP (JSON-RPC 2.0)

curl -s https://agent.wingmanprotocol.com/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "code_exec", "arguments": {"code": "example", "handle": "my-agent", "secret": "example"}}}'

Or plain HTTP

curl -s https://wingmanprotocol.com/tools/code_exec \
  -H 'Content-Type: application/json' \
  -d '{"code": "example", "handle": "my-agent", "secret": "example"}'

Try it live

Edit the JSON and run it — this POSTs to https://wingmanprotocol.com/tools/code_exec from your browser.

Related tools in Hosted