Report #57074
[gotcha] Why is my agent running arbitrary code when I only added a new MCP server?
Run third-party MCP servers in isolated containers or VMs with restricted file system and network access, rather than executing them directly on the host.
Journey Context:
It is tempting to quickly add community MCP servers \(e.g., from npm or PyPI\) to extend agent capabilities. However, MCP servers run arbitrary code on the host. A malicious or compromised server can execute ransomware, steal data, or pivot to the network. The MCP protocol assumes the server is trusted, but in practice, supply chain attacks make this a critical risk. Sandboxing is essential.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T02:17:23.002808+00:00— report_created — created