pub struct Mcp {
pub server_label: String,
pub server_url: String,
pub allowed_tools: Option<AllowedTools>,
pub headers: Option<Value>,
pub require_approval: Option<RequireApproval>,
}
Expand description
MCP (Model Context Protocol) tool configuration.
Fields§
§server_label: String
A label for this MCP server.
server_url: String
The URL for the MCP server.
allowed_tools: Option<AllowedTools>
List of allowed tool names or filter object.
headers: Option<Value>
Optional HTTP headers for the MCP server.
require_approval: Option<RequireApproval>
Approval policy or filter for tools.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mcp
impl<'de> Deserialize<'de> for Mcp
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 StructuralPartialEq for Mcp
Auto Trait Implementations§
impl Freeze for Mcp
impl RefUnwindSafe for Mcp
impl Send for Mcp
impl Sync for Mcp
impl Unpin for Mcp
impl UnwindSafe for Mcp
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