picoclaw/pkg/agent
yuchou87 0f6fadb445 fix(agent): register MCP tools after server initialization
Critical bug fix:
- MCP tools were never registered because servers loaded in Run()
  but tool registration happened in NewAgentLoop() with empty manager
- Move MCP tool registration from createToolRegistry to Run()
- Register MCP tools for both main agent and subag after successful server loading
- Add subagentManager field to AgentLoop for dynamic registration
- Add tool_count logging for better observability

This ensures MCP tools are properly available to both agent and subagents.
2026-02-16 20:00:37 +08:00
..
context.go misc: fmt code 2026-02-13 17:51:47 +08:00
loop.go fix(agent): register MCP tools after server initialization 2026-02-16 20:00:37 +08:00
loop_test.go Feat issue 183 (#189) 2026-02-16 16:30:54 +08:00
memory.go misc: fmt code 2026-02-13 17:51:47 +08:00