refactor: migrate functions and MCP servers to AppConfig

This commit is contained in:
2026-04-19 18:14:16 -06:00
parent 39a16f8d56
commit ff42460cb4
8 changed files with 355 additions and 8 deletions
+3 -1
View File
@@ -729,12 +729,14 @@ impl Config {
start_mcp_servers: bool,
abort_signal: AbortSignal,
) -> Result<()> {
let app_config = self.to_app_config();
let mcp_registry = McpRegistry::init(
log_path,
start_mcp_servers,
self.enabled_mcp_servers.clone(),
abort_signal.clone(),
self,
&app_config,
&self.vault,
)
.await?;
match mcp_registry.is_empty() {