pub struct ServerEntry {Show 13 fields
pub command: Option<String>,
pub args: Option<Vec<String>>,
pub env: Option<HashMap<String, String>>,
pub cwd: Option<String>,
pub url: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub lifecycle: Option<LifecycleMode>,
pub idle_timeout: Option<u64>,
pub debug: Option<bool>,
pub direct_tools: Option<DirectToolsConfig>,
pub exclude_tools: Option<Vec<String>>,
pub timeout: Option<u64>,
pub oauth: Option<OAuthConfig>,
}Expand description
Supports both stdio (command-based) and HTTP transports.
Fields§
§command: Option<String>Command to start the MCP server process (stdio transport).
args: Option<Vec<String>>Arguments passed to the command.
env: Option<HashMap<String, String>>Additional environment variables for the server process.
cwd: Option<String>Working directory for the server process.
url: Option<String>HTTP URL for HTTP/SSE transport.
headers: Option<HashMap<String, String>>HTTP headers to include when connecting.
lifecycle: Option<LifecycleMode>Server lifecycle mode.
idle_timeout: Option<u64>Idle timeout in minutes (overrides global setting).
debug: Option<bool>Show server stderr output (default: false).
direct_tools: Option<DirectToolsConfig>Direct tools registration config (Phase 3).
exclude_tools: Option<Vec<String>>Tools to exclude from direct/proxy registration (Phase 3).
timeout: Option<u64>Per-request timeout in milliseconds (0 disables).
oauth: Option<OAuthConfig>OAuth2 client credentials for this server (v2.2). When present,
the credential provider performs a client_credentials grant
against token_url to obtain (and refresh) an Authorization: Bearer … header for HTTP transports.
Trait Implementations§
Source§impl Clone for ServerEntry
impl Clone for ServerEntry
Source§fn clone(&self) -> ServerEntry
fn clone(&self) -> ServerEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServerEntry
impl Debug for ServerEntry
Source§impl Default for ServerEntry
impl Default for ServerEntry
Source§fn default() -> ServerEntry
fn default() -> ServerEntry
Source§impl<'de> Deserialize<'de> for ServerEntry
impl<'de> Deserialize<'de> for ServerEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ServerEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ServerEntry
impl Serialize for ServerEntry
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,
Auto Trait Implementations§
impl Freeze for ServerEntry
impl RefUnwindSafe for ServerEntry
impl Send for ServerEntry
impl Sync for ServerEntry
impl Unpin for ServerEntry
impl UnsafeUnpin for ServerEntry
impl UnwindSafe for ServerEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.