pub struct McpMonitorConfig {
pub allowed_servers: HashSet<String>,
pub scan_tool_descriptions: bool,
pub detect_shadowing: bool,
pub max_description_length: usize,
}Expand description
Configuration for the MCP security monitor.
Fields§
§allowed_servers: HashSet<String>Server URIs that are considered trusted.
scan_tool_descriptions: boolWhether to scan tool descriptions for injection patterns.
detect_shadowing: boolWhether to detect tool-name shadowing across servers.
max_description_length: usizeMaximum allowed length for a tool description.
Trait Implementations§
Source§impl Clone for McpMonitorConfig
impl Clone for McpMonitorConfig
Source§fn clone(&self) -> McpMonitorConfig
fn clone(&self) -> McpMonitorConfig
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 McpMonitorConfig
impl Debug for McpMonitorConfig
Auto Trait Implementations§
impl Freeze for McpMonitorConfig
impl RefUnwindSafe for McpMonitorConfig
impl Send for McpMonitorConfig
impl Sync for McpMonitorConfig
impl Unpin for McpMonitorConfig
impl UnsafeUnpin for McpMonitorConfig
impl UnwindSafe for McpMonitorConfig
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