Option C Tools
Loading...
Searching...
No Matches
oct.mcp.sandbox.NativeBackend Class Reference

Public Member Functions

tuple[int, str, str] run (self, list[str] cmd, dict[str, str] env, Path cwd, int timeout, int|None memory_limit_bytes)

Detailed Description

Subprocess-only backend — existing Phase 5A/5B behavior.

On POSIX, when *memory_limit_bytes* is non-None and non-zero,
applies ``resource.setrlimit(RLIMIT_AS, ...)`` via ``preexec_fn``
to limit virtual address space. On Windows the limit is silently
ignored (use Docker for Windows memory enforcement).

Definition at line 260 of file sandbox.py.

Member Function Documentation

◆ run()

tuple[int, str, str] oct.mcp.sandbox.NativeBackend.run ( self,
list[str] cmd,
dict[str, str] env,
Path cwd,
int timeout,
int | None memory_limit_bytes )

Definition at line 269 of file sandbox.py.


The documentation for this class was generated from the following file: