pub struct RemoteMcpConfig {
pub enabled: bool,
pub public_url: Option<String>,
pub authorization_server: Option<String>,
pub proxy_token_env: String,
pub citation_url_prefix: Option<String>,
pub allowed_origins: Vec<String>,
pub max_results: usize,
pub max_scan_files: usize,
pub max_scan_bytes: usize,
pub session_ttl_secs: u64,
}Expand description
Configuration for the read-only OpenAI-compatible MCP transport.
Fields§
§enabled: boolEnable the remote MCP endpoints in webmcp serve.
public_url: Option<String>Canonical externally reachable HTTPS URL, normally ending in /sse/.
External OAuth authorization server URL used by the proxy/identity provider.
proxy_token_env: StringEnvironment variable containing the bearer token injected by the proxy.
citation_url_prefix: Option<String>Optional HTTPS/HTTP prefix used to build citation URLs for file IDs.
allowed_origins: Vec<String>Separate allowlist for supplied MCP Origin headers. Missing Origin is accepted.
max_results: usizeMaximum results returned by search.
max_scan_files: usizeMaximum visible files inspected by search.
max_scan_bytes: usizeMaximum UTF-8 content bytes inspected by search.
session_ttl_secs: u64In-memory legacy SSE session inactivity lifetime.
Implementations§
Trait Implementations§
Source§impl Clone for RemoteMcpConfig
impl Clone for RemoteMcpConfig
Source§impl Debug for RemoteMcpConfig
impl Debug for RemoteMcpConfig
Source§impl Default for RemoteMcpConfig
impl Default for RemoteMcpConfig
Source§impl<'de> Deserialize<'de> for RemoteMcpConfigwhere
RemoteMcpConfig: Default,
impl<'de> Deserialize<'de> for RemoteMcpConfigwhere
RemoteMcpConfig: Default,
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
impl Eq for RemoteMcpConfig
Source§impl JsonSchema for RemoteMcpConfig
impl JsonSchema for RemoteMcpConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RemoteMcpConfig
impl PartialEq for RemoteMcpConfig
Source§impl Serialize for RemoteMcpConfig
impl Serialize for RemoteMcpConfig
impl StructuralPartialEq for RemoteMcpConfig
Auto Trait Implementations§
impl Freeze for RemoteMcpConfig
impl RefUnwindSafe for RemoteMcpConfig
impl Send for RemoteMcpConfig
impl Sync for RemoteMcpConfig
impl Unpin for RemoteMcpConfig
impl UnsafeUnpin for RemoteMcpConfig
impl UnwindSafe for RemoteMcpConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.