pub enum McpConfigMode {
Merge,
ExplicitOnly,
}Expand description
Controls whether backend-supplied MCP servers are merged with ambient config or treated as the explicit MCP set for the session.
Backends differ in how faithfully they can implement ExplicitOnly:
- Claude maps to the native
--strict-mcp-configflag. - OpenCode isolates ambient config roots and supplies only the Chimera config blob; auth/session data remains visible.
- Codex uses an isolated
CODEX_HOMEplus explicit overrides, but upstream still merges repo-local.codexconfig, so this is best-effort there.
Variants§
Trait Implementations§
Source§impl Clone for McpConfigMode
impl Clone for McpConfigMode
Source§fn clone(&self) -> McpConfigMode
fn clone(&self) -> McpConfigMode
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 moreimpl Copy for McpConfigMode
Source§impl Debug for McpConfigMode
impl Debug for McpConfigMode
Source§impl Default for McpConfigMode
impl Default for McpConfigMode
Source§fn default() -> McpConfigMode
fn default() -> McpConfigMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for McpConfigMode
impl<'de> Deserialize<'de> for McpConfigMode
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 McpConfigMode
Source§impl PartialEq for McpConfigMode
impl PartialEq for McpConfigMode
Source§impl Serialize for McpConfigMode
impl Serialize for McpConfigMode
impl StructuralPartialEq for McpConfigMode
Auto Trait Implementations§
impl Freeze for McpConfigMode
impl RefUnwindSafe for McpConfigMode
impl Send for McpConfigMode
impl Sync for McpConfigMode
impl Unpin for McpConfigMode
impl UnsafeUnpin for McpConfigMode
impl UnwindSafe for McpConfigMode
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