pub struct McpSettings {
pub trust_first_sight: bool,
}Expand description
The mcp: section (ADR-032).
Fields§
§trust_first_sight: boolPin every tool moat mcp proxy sees from a server it has no pins for,
as it is, instead of holding them until moat mcp accept. Off by
default: a server that is malicious on first contact would get its
tool descriptions pinned as good.
Trait Implementations§
Source§impl Clone for McpSettings
impl Clone for McpSettings
Source§impl Debug for McpSettings
impl Debug for McpSettings
Source§impl Default for McpSettings
impl Default for McpSettings
Source§impl<'de> Deserialize<'de> for McpSettings
impl<'de> Deserialize<'de> for McpSettings
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
impl Eq for McpSettings
Source§impl PartialEq for McpSettings
impl PartialEq for McpSettings
Source§impl Serialize for McpSettings
impl Serialize for McpSettings
impl StructuralPartialEq for McpSettings
Auto Trait Implementations§
impl Freeze for McpSettings
impl RefUnwindSafe for McpSettings
impl Send for McpSettings
impl Sync for McpSettings
impl Unpin for McpSettings
impl UnsafeUnpin for McpSettings
impl UnwindSafe for McpSettings
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