Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(mcp): add host sandbox implementation

Steven Enamakel982094e9b6f7
diff --git a/crates/openhuman-core/src/mcp/host_sandbox.rs b/crates/openhuman-core/src/mcp/host_sandbox.rs
index 7ac1168c0b..70f6707c70 100644
--- a/crates/openhuman-core/src/mcp/host_sandbox.rs
+++ b/crates/openhuman-core/src/mcp/host_sandbox.rs
@@ -162,6 +162,7 @@ fn admit_all(raw: &[String], home: Option<&Path>) -> Vec<String> {
let path = expanded.canonicalize().unwrap_or_else(|_| expanded.clone());
if SecurityPolicy::is_always_forbidden(&expanded)
|| SecurityPolicy::is_always_forbidden(&path)
+ || exposes_credentials(&expanded, home)
|| exposes_credentials(&path, home)
{
tracing::warn!("[mcp] refused a stdio sandbox grant: host floor forbids it");