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.