pub struct WebmcpConfig {
pub enabled: bool,
pub host: String,
pub port: u16,
pub allowed_origins: Vec<String>,
pub allowed_roots: Vec<PathBuf>,
pub pairing_ttl_secs: u64,
pub max_frame_bytes: usize,
pub max_in_flight_requests: usize,
pub remote_mcp: RemoteMcpConfig,
}Expand description
Configuration for the opt-in VT Code WebMCP bridge.
Fields§
§enabled: boolOpt-in marker for WebMCP integrations; listener startup still requires an explicit CLI or TUI command.
host: StringLiteral loopback bind host.
port: u16Bind port. Zero asks the OS for an available port.
allowed_origins: Vec<String>Exact browser origins allowed to pair.
allowed_roots: Vec<PathBuf>Explicit roots available to headless mode; the current bridge serves one root per process.
pairing_ttl_secs: u64One-time pairing lifetime and authenticated-session inactivity lease.
max_frame_bytes: usizeMaximum JSON WebSocket frame size.
max_in_flight_requests: usizeMaximum concurrent bridge operations.
remote_mcp: RemoteMcpConfigExplicit opt-in OpenAI-compatible remote MCP transport.
Implementations§
Trait Implementations§
Source§impl Clone for WebmcpConfig
impl Clone for WebmcpConfig
Source§impl Debug for WebmcpConfig
impl Debug for WebmcpConfig
Source§impl Default for WebmcpConfig
impl Default for WebmcpConfig
Source§impl<'de> Deserialize<'de> for WebmcpConfig
impl<'de> Deserialize<'de> for WebmcpConfig
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 WebmcpConfig
Source§impl JsonSchema for WebmcpConfig
impl JsonSchema for WebmcpConfig
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 WebmcpConfig
impl PartialEq for WebmcpConfig
Source§impl Serialize for WebmcpConfig
impl Serialize for WebmcpConfig
impl StructuralPartialEq for WebmcpConfig
Auto Trait Implementations§
impl Freeze for WebmcpConfig
impl RefUnwindSafe for WebmcpConfig
impl Send for WebmcpConfig
impl Sync for WebmcpConfig
impl Unpin for WebmcpConfig
impl UnsafeUnpin for WebmcpConfig
impl UnwindSafe for WebmcpConfig
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.