pub struct Config {
pub listen: SocketAddr,
pub allowed_origins: BTreeSet<String>,
pub path: String,
pub resource_metadata_url: Option<String>,
pub max_connections: NonZeroUsize,
pub header_timeout_ms: NonZeroU64,
pub body_timeout_ms: NonZeroU64,
}Expand description
The HTTP MCP’s own settings.
Who may come in is not among them: each request’s bearer sign-in is the caller’s own Lys pass for haematite, and the store judges it, and every act under it, by that caller’s grants.
Fields§
§listen: SocketAddr§allowed_origins: BTreeSet<String>§path: StringThe one request path answered, /mcp unless set, so two listeners
behind one hostname can each own a path (/mcp, /mcp/studio).
resource_metadata_url: Option<String>Where an MCP client finds how to sign in, named in the challenge of every 401 (RFC 9728).
max_connections: NonZeroUsize§header_timeout_ms: NonZeroU64§body_timeout_ms: NonZeroU64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.