pub struct McpServerConfig {
pub command: String,
pub args: Vec<String>,
pub credential_keys: Vec<String>,
pub env: HashMap<String, String>,
}Fields§
§command: StringExecutable to run (e.g. “npx”, “python3”, “/usr/local/bin/my-mcp-server”).
args: Vec<String>§credential_keys: Vec<String>Vault keys injected as env vars into the subprocess. Never exposed to the model.
env: HashMap<String, String>Additional static env vars forwarded to the subprocess.
Auto Trait Implementations§
impl Freeze for McpServerConfig
impl RefUnwindSafe for McpServerConfig
impl Send for McpServerConfig
impl Sync for McpServerConfig
impl Unpin for McpServerConfig
impl UnsafeUnpin for McpServerConfig
impl UnwindSafe for McpServerConfig
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