* fix(mcp): wire MCP tools into WebSocket chat path and gateway /api/tools Agent::from_config() did not initialize MCP tools because it was synchronous and MCP connection requires async. The gateway tool registry built for /api/tools also missed MCP tools for the same reason. Changes: - Make Agent::from_config() async so it can call McpRegistry::connect_all() - Add MCP tool initialization (both eager and deferred modes) to from_config(), following the same pattern used in loop_.rs CLI/webhook paths - Add MCP tool initialization to the gateway's tool registry so /api/tools reflects MCP tools - Update all three call sites (run(), handle_socket, test) to await Closes #4042 * fix: merge master and fix formatting * fix: remove underscore prefix from used bindings (clippy) |
||
|---|---|---|
| .. | ||
| agent.rs | ||
| classifier.rs | ||
| dispatcher.rs | ||
| loop_.rs | ||
| memory_loader.rs | ||
| mod.rs | ||
| prompt.rs | ||
| tests.rs | ||