pub struct McpServerConfig {Show 20 fields
pub name: String,
pub server_type: McpServerType,
pub binary: String,
pub enabled: bool,
pub display_in_web: bool,
pub port: u16,
pub crate_path: PathBuf,
pub display_name: String,
pub description: String,
pub capabilities: Vec<String>,
pub schemas: Vec<SchemaDefinition>,
pub oauth: OAuthRequirement,
pub tools: HashMap<String, ToolMetadata>,
pub model_config: Option<ToolModelConfig>,
pub env_vars: Vec<String>,
pub version: String,
pub host: String,
pub module_name: String,
pub protocol: String,
pub remote_endpoint: String,
}Available on crate feature
core only.Fields§
§name: String§server_type: McpServerType§binary: String§enabled: bool§display_in_web: bool§port: u16§crate_path: PathBuf§display_name: String§description: String§capabilities: Vec<String>§schemas: Vec<SchemaDefinition>§oauth: OAuthRequirement§tools: HashMap<String, ToolMetadata>§model_config: Option<ToolModelConfig>§env_vars: Vec<String>§version: String§host: String§module_name: String§protocol: String§remote_endpoint: StringImplementations§
Source§impl McpServerConfig
impl McpServerConfig
pub fn endpoint(&self, api_server_url: &str) -> String
pub const fn is_internal(&self) -> bool
pub const fn is_external(&self) -> bool
Trait Implementations§
Source§impl Clone for McpServerConfig
impl Clone for McpServerConfig
Source§fn clone(&self) -> McpServerConfig
fn clone(&self) -> McpServerConfig
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 McpServerConfig
impl Debug for McpServerConfig
Source§impl<'de> Deserialize<'de> for McpServerConfig
impl<'de> Deserialize<'de> for McpServerConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<McpServerConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<McpServerConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for McpServerConfig
impl Serialize for McpServerConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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