WeKnora/internal/agent
lyingbug da9f7b43b6 fix: use service name for MCP tool naming with collision protection (#715)
- Use service.Name instead of service.ID (UUID) for stable tool names
  across MCP server reconnections
- Add (tenant_id, name) unique index on MCPService to prevent name
  collisions at the DB level
- Add collision detection logging in RegisterMCPTools for defense-in-depth
- Improve truncation logic to prioritize keeping the tool name intact

Security: first-wins policy in ToolRegistry + unique name constraint
prevents tool hijacking (GHSA-67q9-58vj-32qx).
2026-03-21 10:22:05 +08:00
..
skills feat: adapt preloaded skills to smart-reasoning agent 2026-02-04 20:08:49 +08:00
tools fix: use service name for MCP tool naming with collision protection (#715) 2026-03-21 10:22:05 +08:00
const.go refactor: Remove agent_test command-line tool and associated files to streamline project structure and eliminate unused components 2025-12-01 17:24:57 +08:00
engine.go feat(agent): enhance event emission for final answers and fallback handling 2026-03-19 18:20:09 +08:00
prompts.go feat: enhance localization and configuration support 2026-03-17 22:23:24 +08:00