pub struct McpServerEntry {
pub id: String,
pub url: String,
pub auth_env: Option<String>,
pub enabled: Option<bool>,
}Expand description
One [[gateway_server.mcp_servers]] registry entry — an MCP server the org
gateway fronts. Distinct from [[gateway.servers]] (the local tool-
catalog aggregator, #210): this registry is the org-facing reverse proxy.
Fields§
§id: StringRegistry id, used in the /mcp/{id} route. Lowercase alphanumeric
plus -/_ (it becomes a URL path segment).
url: StringUpstream Streamable-HTTP endpoint (the server’s single MCP endpoint,
e.g. https://mcp.example.com/mcp). HTTPS for any non-loopback host;
plaintext HTTP needs the same explicit opt-in as LLM upstreams
([proxy] allow_insecure_http_upstream).
auth_env: Option<String>Name of the environment variable holding the upstream credential. When
set, the gateway sends Authorization: Bearer <value> upstream — the
credential lives in the gateway’s environment, never on laptops. The
caller’s own Authorization header (their gateway key) is always
stripped before forwarding, with or without this field.
enabled: Option<bool>Set false to keep the entry in config but take it out of service.
Trait Implementations§
Source§impl Clone for McpServerEntry
impl Clone for McpServerEntry
Source§fn clone(&self) -> McpServerEntry
fn clone(&self) -> McpServerEntry
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 McpServerEntry
impl Debug for McpServerEntry
Source§impl<'de> Deserialize<'de> for McpServerEntry
impl<'de> Deserialize<'de> for McpServerEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<McpServerEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<McpServerEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for McpServerEntry
impl PartialEq for McpServerEntry
Source§impl Serialize for McpServerEntry
impl Serialize for McpServerEntry
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,
impl StructuralPartialEq for McpServerEntry
Auto Trait Implementations§
impl Forget for McpServerEntry
impl Freeze for McpServerEntry
impl Move for McpServerEntry
impl RefUnwindSafe for McpServerEntry
impl Send for McpServerEntrywhere
RawVecInner: Send,
impl Sync for McpServerEntrywhere
RawVecInner: Sync,
impl Unpin for McpServerEntry
impl UnsafeUnpin for McpServerEntry
impl UnwindSafe for McpServerEntrywhere
RawVecInner: UnwindSafe,
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more