pub struct ExecParams {
pub command: String,
pub background: bool,
pub timeout_ms: Option<u64>,
pub log_path: Option<String>,
}Expand description
Parameters for the shell tool
Fields§
§command: StringShell command to execute 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 ExecParams
impl Debug for ExecParams
Source§impl<'de> Deserialize<'de> for ExecParams
impl<'de> Deserialize<'de> for ExecParams
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 ExecParams
impl JsonSchema for ExecParams
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 ExecParams
impl RefUnwindSafe for ExecParams
impl Send for ExecParams
impl Sync for ExecParams
impl Unpin for ExecParams
impl UnsafeUnpin for ExecParams
impl UnwindSafe for ExecParams
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