refactor: migrate functions and MCP servers to AppConfig

This commit is contained in:
2026-04-19 18:14:16 -06:00
parent 0e427dc4ba
commit c11eb352fe
8 changed files with 355 additions and 8 deletions
+2
View File
@@ -486,6 +486,8 @@ async fn handle_spawn(ctx: &mut RequestContext, args: &Value) -> Result<Value> {
rag_cache: ctx.app.rag_cache.clone(),
mcp_config: ctx.app.mcp_config.clone(),
mcp_log_path: ctx.app.mcp_log_path.clone(),
mcp_registry: ctx.app.mcp_registry.clone(),
functions: ctx.app.functions.clone(),
});
let agent = Agent::init(
app_config.as_ref(),