Convert McpServerConfig to JSON Value. Efficiently converts the config using Serde, leveraging BTreeMap for order.
(config: &McpServerConfig)
| 991 | /// Convert McpServerConfig to JSON Value. |
| 992 | /// Efficiently converts the config using Serde, leveraging BTreeMap for order. |
| 993 | fn server_to_json(config: &McpServerConfig) -> Value { |
| 994 | serde_json::to_value(config).unwrap_or_else(|_| json!({})) |
| 995 | } |
| 996 | |
| 997 | /// Parse Codex CLI config TOML into a document table |
| 998 | fn parse_codex_doc(content: &str) -> Result<TomlTable> { |
no outgoing calls