pub struct MCPConfig {
pub methods: Option<Vec<String>>,
pub tags: Option<Vec<String>>,
pub tool_exposure: Option<MCPConfigToolExposure>,
pub require_api_token_auth: Option<bool>,
}Expand description
Optional scoping for the MCP server. When omitted, all available tools for the integrated account are exposed.
Fields§
§methods: Option<Vec<String>>Restrict the MCP server to these Truto method names. Combined with tags using AND semantics.
Restrict the MCP server to tools whose effective tags (resource-level and optional resource.method tags) intersect these values.
tool_exposure: Option<MCPConfigToolExposure>How tools are exposed on tools/list. - all (default): every matching tool schema is listed. - discovery: only three meta-tools are listed (search_tools, get_tool_schema, call_tool). The client discovers and calls real tools through those.
require_api_token_auth: Option<bool>When true, MCP requests also require a valid Truto API token in the Authorization Bearer header.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MCPConfig
impl<'de> Deserialize<'de> for MCPConfig
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 MCPConfig
Auto Trait Implementations§
impl Freeze for MCPConfig
impl RefUnwindSafe for MCPConfig
impl Send for MCPConfig
impl Sync for MCPConfig
impl Unpin for MCPConfig
impl UnsafeUnpin for MCPConfig
impl UnwindSafe for MCPConfig
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