pub enum ConfigWarning {
DeprecatedKey {
path: PathBuf,
old: String,
new: String,
},
InactiveSection {
path: PathBuf,
section: String,
reason: String,
},
McpToolRenamed {
server: String,
original: String,
renamed: String,
},
McpJsonOverridden {
path: PathBuf,
server: String,
},
}Variants§
DeprecatedKey
InactiveSection
A configuration section exists in the file but is inactive under the current mode.
See capabilities semantic mapping.
Typical scenario: a configuration section is written but the corresponding
capability is disabled (e.g., the legacy capabilities.search section has been
deprecated in favor of [capabilities.web_search], and the old key no longer
takes effect).
McpToolRenamed
Conflicting MCP tools are renamed to mcp__<server>__<name> during session
startup.
See capabilities for MCP tool classification. All MCP tools are renamed (regardless of capability mode or tool enabled) to prevent MCP bypass name squatting.
McpJsonOverridden
A .mcp.json server was shadowed by a same-named TOML [mcp.servers.<name>]
entry. The TOML entry (more explicit, layered source) wins; the .mcp.json
definition is ignored.
Trait Implementations§
Source§impl Clone for ConfigWarning
impl Clone for ConfigWarning
Source§fn clone(&self) -> ConfigWarning
fn clone(&self) -> ConfigWarning
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 ConfigWarning
impl Debug for ConfigWarning
impl Eq for ConfigWarning
Source§impl PartialEq for ConfigWarning
impl PartialEq for ConfigWarning
Source§fn eq(&self, other: &ConfigWarning) -> bool
fn eq(&self, other: &ConfigWarning) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConfigWarning
Auto Trait Implementations§
impl Freeze for ConfigWarning
impl RefUnwindSafe for ConfigWarning
impl Send for ConfigWarning
impl Sync for ConfigWarning
impl Unpin for ConfigWarning
impl UnsafeUnpin for ConfigWarning
impl UnwindSafe for ConfigWarning
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
key and return true if they are equal.