walrus_core/config/
mcp.rs1use compact_str::CompactString;
4use serde::{Deserialize, Serialize};
5use std::collections::BTreeMap;
6
7#[derive(Debug, Clone, Serialize, Deserialize)]
9#[serde(default)]
10pub struct McpServerConfig {
11 pub name: CompactString,
13 pub command: String,
15 pub args: Vec<String>,
17 pub env: BTreeMap<String, String>,
19 pub auto_restart: bool,
21}
22
23impl Default for McpServerConfig {
24 fn default() -> Self {
25 Self {
26 name: CompactString::default(),
27 command: String::new(),
28 args: Vec::new(),
29 env: BTreeMap::new(),
30 auto_restart: true,
31 }
32 }
33}