pub struct ConfiguredServer {
pub name: String,
pub source: ServerSource,
pub source_path: PathBuf,
pub enabled: bool,
pub approval: ApprovalPolicy,
pub trusted: bool,
pub transport_kind: TransportKind,
pub config: ServerConfig,
}Expand description
A validated MCP server loaded from user or project configuration.
Fields§
§name: String§source: ServerSource§source_path: PathBuf§enabled: bool§approval: ApprovalPolicy§trusted: bool§transport_kind: TransportKind§config: ServerConfigImplementations§
Source§impl ConfiguredServer
impl ConfiguredServer
Sourcepub fn resolve_transport(
&self,
env_lookup: &EnvLookup,
) -> Result<ServerTransport, McpConfigError>
pub fn resolve_transport( &self, env_lookup: &EnvLookup, ) -> Result<ServerTransport, McpConfigError>
Expands ${ENV_VAR} references in env or headers and returns the concrete transport.
Sourcepub fn resolve_transport_from_system(
&self,
) -> Result<ServerTransport, McpConfigError>
pub fn resolve_transport_from_system( &self, ) -> Result<ServerTransport, McpConfigError>
Expands ${ENV_VAR} references using process environment and blyte’s env file.
Sourcepub fn resolve_oauth(
&self,
env_lookup: &EnvLookup,
) -> Result<Option<ResolvedOAuthClientConfig>, McpConfigError>
pub fn resolve_oauth( &self, env_lookup: &EnvLookup, ) -> Result<Option<ResolvedOAuthClientConfig>, McpConfigError>
Expands ${ENV_VAR} references in configured OAuth client settings, if any.
Sourcepub fn resolve_oauth_from_system(
&self,
) -> Result<Option<ResolvedOAuthClientConfig>, McpConfigError>
pub fn resolve_oauth_from_system( &self, ) -> Result<Option<ResolvedOAuthClientConfig>, McpConfigError>
Expands ${ENV_VAR} references in configured OAuth client settings using system env.
Trait Implementations§
Source§impl Clone for ConfiguredServer
impl Clone for ConfiguredServer
Source§impl Debug for ConfiguredServer
impl Debug for ConfiguredServer
impl Eq for ConfiguredServer
Source§impl PartialEq for ConfiguredServer
impl PartialEq for ConfiguredServer
impl StructuralPartialEq for ConfiguredServer
Auto Trait Implementations§
impl Forget for ConfiguredServer
impl Freeze for ConfiguredServerwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
impl Move for ConfiguredServer
impl RefUnwindSafe for ConfiguredServer
impl Send for ConfiguredServer
impl Sync for ConfiguredServer
impl Unpin for ConfiguredServer
impl UnsafeUnpin for ConfiguredServerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for ConfiguredServer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.