pub struct StdioConfig {
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
pub cwd: Option<String>,
/* private fields */
}Expand description
Configuration for a stdio-based MCP endpoint.
Downstream crates cannot construct this type via a struct literal; use
StdioConfig::new to ensure invariants are validated.
ⓘ
use tooltest_core::StdioConfig;
let _ = StdioConfig {
command: "server".to_string(),
args: Vec::new(),
env: std::collections::BTreeMap::new(),
cwd: None,
};Fields§
§args: Vec<String>Command-line arguments passed to the MCP server.
env: BTreeMap<String, String>Environment variables to add or override for the MCP process.
cwd: Option<String>Optional working directory for the MCP process.
Implementations§
Trait Implementations§
Source§impl Clone for StdioConfig
impl Clone for StdioConfig
Source§fn clone(&self) -> StdioConfig
fn clone(&self) -> StdioConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StdioConfig
impl Debug for StdioConfig
Source§impl<'de> Deserialize<'de> for StdioConfig
impl<'de> Deserialize<'de> for StdioConfig
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 PartialEq for StdioConfig
impl PartialEq for StdioConfig
Source§impl Serialize for StdioConfig
impl Serialize for StdioConfig
impl Eq for StdioConfig
impl StructuralPartialEq for StdioConfig
Auto Trait Implementations§
impl Freeze for StdioConfig
impl RefUnwindSafe for StdioConfig
impl Send for StdioConfig
impl Sync for StdioConfig
impl Unpin for StdioConfig
impl UnsafeUnpin for StdioConfig
impl UnwindSafe for StdioConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.