pub struct ServerConfig {Show 13 fields
pub command: Option<String>,
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
pub url: Option<String>,
pub headers: BTreeMap<String, String>,
pub expose: bool,
pub allow: Option<Vec<String>>,
pub deny: Vec<String>,
pub oauth: bool,
pub oauth_client_id: Option<String>,
pub oauth_scopes: Vec<String>,
pub oauth_redirect_port: Option<u16>,
pub connect_timeout: Option<u64>,
}Fields§
§command: Option<String>§args: Vec<String>§env: BTreeMap<String, String>§url: Option<String>§headers: BTreeMap<String, String>§expose: boolBypass the meta-tools: expose this server’s tools directly as server__tool
allow: Option<Vec<String>>If set, only these tools are visible (exact names or prefix* globs)
deny: Vec<String>Always hidden/blocked; wins over allow
oauth: boolEnable OAuth 2.0 (PKCE) for this server — url servers only
oauth_client_id: Option<String>Pre-registered OAuth client ID; dynamic registration is used when unset
oauth_scopes: Vec<String>Scopes to request; server defaults when empty
oauth_redirect_port: Option<u16>Fixed port for the 127.0.0.1 callback listener, for providers that require an exact pre-registered redirect URI. Default: ephemeral port
connect_timeout: Option<u64>Connection/startup timeout in seconds (default 10); raise for slow-to-start local servers (e.g. uvx building from a git ref)
Implementations§
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerConfig
impl Debug for ServerConfig
Source§impl Default for ServerConfig
impl Default for ServerConfig
Source§fn default() -> ServerConfig
fn default() -> ServerConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerConfigwhere
ServerConfig: Default,
impl<'de> Deserialize<'de> for ServerConfigwhere
ServerConfig: 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
Source§impl JsonSchema for ServerConfig
impl JsonSchema for ServerConfig
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 moreAuto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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