pub struct McpSettings {
pub default_model: Option<String>,
pub log_level: Option<String>,
pub max_response_bytes: Option<usize>,
}Expand description
The mcp section of settings.json — defaults for the omni-dev-mcp
server (issue #620).
Every field is optional; an unset field falls back to the built-in default,
so an absent mcp block preserves the server’s behaviour byte-for-byte. See
Settings::load_mcp for the loader and crate::mcp for the wiring.
Fields§
§default_model: Option<String>Default AI model for the ai_chat tool, used when the tool’s own
model parameter is absent. Falls back to the model registry default.
log_level: Option<String>Default tracing directive for the server (e.g. "info",
"omni_dev::mcp=debug"). RUST_LOG overrides this when set; the
built-in fallback is "warn".
max_response_bytes: Option<usize>Default cap, in bytes, on an MCP tool response before it is truncated.
Falls back to the server’s built-in DEFAULT_MAX_RESPONSE_BYTES
(100 KB). A value of 0 disables truncation.
Trait Implementations§
Source§impl Debug for McpSettings
impl Debug for McpSettings
Source§impl Default for McpSettings
impl Default for McpSettings
Source§fn default() -> McpSettings
fn default() -> McpSettings
Source§impl<'de> Deserialize<'de> for McpSettings
impl<'de> Deserialize<'de> for McpSettings
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>,
Auto Trait Implementations§
impl Freeze for McpSettings
impl RefUnwindSafe for McpSettings
impl Send for McpSettings
impl Sync for McpSettings
impl Unpin for McpSettings
impl UnsafeUnpin for McpSettings
impl UnwindSafe for McpSettings
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more