pub struct McpSandboxWrapper {
pub wrapper_binary: PathBuf,
pub policy_argv: Vec<String>,
}Expand description
Description of the per-MCP-server sandbox profile that will be applied at launch time.
Fields§
§wrapper_binary: PathBufPlatform-specific wrapper binary (e.g. /usr/bin/sandbox-exec on macOS).
policy_argv: Vec<String>Argument(s) needed to point the wrapper at the policy (e.g. -p <profile> on macOS or --sandbox-policy <json> on Linux).
Implementations§
Source§impl McpSandboxWrapper
impl McpSandboxWrapper
Sourcepub fn for_current_platform(policy: &SandboxPolicy) -> Option<Self>
pub fn for_current_platform(policy: &SandboxPolicy) -> Option<Self>
Build the wrapper for the current platform.
- macOS: uses
/usr/bin/sandbox-exec -p <profile>with a serialized Seatbelt policy summary. - Linux: emits
--sandbox-policy <json>so thesandbox-executablehelper can apply Landlock + seccomp from the same JSON shape the rest of VTCode uses (ResourceLimits::to_json). - Windows: returns
None(sandboxing is stubbed; seecrates/codegen/vtcode-safety/src/sandboxing/manager.rs).
Trait Implementations§
Source§impl Clone for McpSandboxWrapper
impl Clone for McpSandboxWrapper
Source§fn clone(&self) -> McpSandboxWrapper
fn clone(&self) -> McpSandboxWrapper
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for McpSandboxWrapper
impl RefUnwindSafe for McpSandboxWrapper
impl Send for McpSandboxWrapper
impl Sync for McpSandboxWrapper
impl Unpin for McpSandboxWrapper
impl UnsafeUnpin for McpSandboxWrapper
impl UnwindSafe for McpSandboxWrapper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more