pybot task: start the pybot MCP server from a pinned, checksummed copy
Browse files28 unmodified lines293031323334353637383928 unmodified linesPYBOT_REPO = "${PYBOT_REPO}" # <ns>/<name> HF dataset the world serves; from the launcher's env, no default# Caps git's memory in the agent's clone (many agents share a machine).GIT_CONFIG_PARAMETERS = "'pack.windowMemory=256m' 'pack.threads=1' 'gc.auto=0'"
# The pybot tools: pybot_mcp.py from this dataset at a pinned commit, checked by sha256 before it# runs. It reads WORLD_URL and WORLD_TOKEN from the agent's environment.[[environment.mcp_servers]]name = "pybot"transport = "stdio"command = "sh"args = ["-c", 'set -e; f=/tmp/pybot_mcp-aff1fbab24c4039b32c903618c837c6390f7794d.py; s=949d852427bbceddaee4efa5db7bcbde8127c1fe08d99cac200d12cf82452aac; if ! echo "$s $f" | sha256sum -c --status 2>/dev/null; then t=$(mktemp); curl -fsSL --retry 3 -o "$t" https://huggingface.co/datasets/HuggingFaceSwarms/pybot/resolve/aff1fbab24c4039b32c903618c837c6390f7794d/tasks/pybot-agent/pybot_mcp.py; if echo "$s $t" | sha256sum -c --status; then mv "$t" "$f"; else rm -f "$t"; echo "pybot_mcp.py: checksum mismatch" >&2; exit 1; fi; fi; exec python3 "$f"']tasks/pybot-agent/task.toml+8