pub struct StdioServerConfig {
pub binary: PathBuf,
pub code_home: Option<PathBuf>,
pub current_dir: Option<PathBuf>,
pub env: Vec<(OsString, OsString)>,
pub app_server_analytics_default_enabled: bool,
pub mirror_stdio: bool,
pub startup_timeout: Duration,
}Expand description
Shared launch configuration for stdio MCP/app-server processes.
The Workstream A env-prep helper should populate binary, code_home, and
baseline environment entries. Callers can layer additional env entries for
per-call overrides (e.g., RUST_LOG). mirror_stdio controls whether raw
stdout/stderr should be mirrored to the host console in addition to being
parsed as JSON-RPC.
Fields§
§binary: PathBuf§code_home: Option<PathBuf>§current_dir: Option<PathBuf>§env: Vec<(OsString, OsString)>§app_server_analytics_default_enabled: boolEnables the codex app-server --analytics-default-enabled flag when launching app-server.
mirror_stdio: bool§startup_timeout: DurationTrait Implementations§
Source§impl Clone for StdioServerConfig
impl Clone for StdioServerConfig
Source§fn clone(&self) -> StdioServerConfig
fn clone(&self) -> StdioServerConfig
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 StdioServerConfig
impl RefUnwindSafe for StdioServerConfig
impl Send for StdioServerConfig
impl Sync for StdioServerConfig
impl Unpin for StdioServerConfig
impl UnsafeUnpin for StdioServerConfig
impl UnwindSafe for StdioServerConfig
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