Struct McpServer Config
Generated from cargo doc --no-deps -p nemo-fabric-core.
pub struct McpServerConfig {
pub transport: McpTransport,
pub url: String,
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
pub authentication: Option<McpAuthenticationConfig>,
pub exposure: McpExposure,
pub allowed_tools: Option<Vec<String>>,
pub blocked_tools: Vec<String>,
pub extensions: BTreeMap<String, Value>,
pub custom_headers: BTreeMap<String, String>,
}
MCP server configuration.
Fields
transport: McpTransport
MCP transport.
url: String
MCP server URL or process command (when transport=stdio), depending on transport.
args: Vec<String>
Command-line arguments passed to an MCP stdio server process.
env: BTreeMap<String, String>
Environment variables passed to an MCP stdio server process.
authentication: Option<McpAuthenticationConfig>
Authentication used by an HTTP MCP server.
exposure: McpExposure
How NeMo Fabric exposes the MCP capability to the harness.
allowed_tools: Option<Vec<String>>
MCP tool names to expose. None exposes every tool discovered from the server.
blocked_tools: Vec<String>
MCP tool names to block after applying the optional allowlist.
extensions: BTreeMap<String, Value>
Additive MCP server fields.
custom_headers: BTreeMap<String, String>
HTTP headers passed to an MCP server when transport is sse or streamable-http.
Trait Implementations
impl Clone for McpServerConfig
impl Clone for McpServerConfig
clone
fn clone(&self) -> McpServerConfig
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for McpServerConfig
impl Debug for McpServerConfig
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for McpServerConfig
impl<'de> Deserialize<'de> for McpServerConfig
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl JsonSchema for McpServerConfig
impl JsonSchema for McpServerConfig
schema_name
fn schema_name() -> Cow<'static, str>
schema_id
fn schema_id() -> Cow<'static, str>
json_schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
inline_schema
fn inline_schema() -> bool
impl PartialEq for McpServerConfig
impl PartialEq for McpServerConfig
eq
fn eq(&self, other: &McpServerConfig) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for McpServerConfig
impl Serialize for McpServerConfig
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for McpServerConfig
impl StructuralPartialEq for McpServerConfig