pub struct SudoExecParams {
pub command: String,
pub background: bool,
pub timeout_ms: Option<u64>,
pub log_path: Option<String>,
}Expand description
Parameters for the sudo_shell tool
Fields§
§command: StringShell command to execute with sudo on the remote SSH server
background: boolBackground execution mode.
If true, run the command in background and return immediately. The server continues streaming output into a local log file on the MCP server and tracks the job via an in-memory registry keyed by job_id. The tool returns JSON metadata (job_id/pid/log_path/log_exists).
timeout_ms: Option<u64>Optional timeout override in milliseconds for foreground execution
log_path: Option<String>Local log path for background mode output (stored on MCP server)
Defaults to ssh-mcp/<job_id>.log in the system temp directory.
Trait Implementations§
Source§impl Debug for SudoExecParams
impl Debug for SudoExecParams
Source§impl<'de> Deserialize<'de> for SudoExecParams
impl<'de> Deserialize<'de> for SudoExecParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for SudoExecParams
impl JsonSchema for SudoExecParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for SudoExecParams
impl RefUnwindSafe for SudoExecParams
impl Send for SudoExecParams
impl Sync for SudoExecParams
impl Unpin for SudoExecParams
impl UnsafeUnpin for SudoExecParams
impl UnwindSafe for SudoExecParams
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