Problem (P1.3): Probing arbitrary untrusted stdio MCP servers (--live / --live-probe / --detect-bait-and-switch) exposes the host to shell injection, env-var secret exfiltration, runaway subprocesses, and silent upstream schema mutations.
Transport Hardening: StdioDiscoveryTransport gains a pre-spawn shell denylist (sh, bash, zsh, cmd.exe, powershell, -c, eval) that fails closed unless --allow-untrusted-exec is passed, a stripped env allowlist, an isolated tempfile.TemporaryDirectory() for TMPDIR/HOME (so children cannot read $HOME secrets), a 1 MiB line cap, a 10s timeout, start_new_session=True, and guaranteed os.killpg process-group teardown in finally:.
OS Sandbox Enforcement: optional sandbox-exec (macOS) / bwrap (Linux) wrappers; --require-os-sandbox fails closed when the sandbox binary is unavailable.
StdioDiscoveryTransport blocks shell wrappers (sh, bash, -c, eval) by default unless --allow-untrusted-exec is passed, strips parent secret env vars, isolates TMPDIR/HOME, enforces the 1 MiB line cap, and tears down process groups via os.killpg.
Benign control: allowlisted stdio server (python -m ...) runs cleanly; --allow-untrusted-exec unblocks the shell form.