WeKnora/internal/agent
wizardchen 505195865a fix(mcp): trigger OAuth prompt during tool registration and dedupe helpers
OAuth authorization was only handled in MCPTool.Execute, so unauthenticated
services failed silently during RegisterMCPTools before any tool reached the
agent. Wire EventBus/session metadata into registration and reuse the same
getOrCreateMCPClientWithOAuthRetry path used at execution time.

Extract MCP OAuth session/wait/connect logic into mcp_oauth.go and remove the
duplicate waitForOAuthAndRetry + RegisterMCPContext layering in mcp_tool.go.
2026-06-29 23:22:28 +08:00
..
approval feat(mcp): prompt and resume OAuth authorization mid-conversation 2026-06-29 23:22:28 +08:00
memory feat(agent): enhance message consolidation and context management 2026-03-25 22:08:29 +08:00
skills feat: adapt preloaded skills to smart-reasoning agent 2026-02-04 20:08:49 +08:00
token feat(agent): enhance message consolidation and context management 2026-03-25 22:08:29 +08:00
tools fix(mcp): trigger OAuth prompt during tool registration and dedupe helpers 2026-06-29 23:22:28 +08:00
act.go fix(chat): preserve provider tool-call metadata 2026-06-09 20:55:20 +08:00
const.go feat: Implement wiki_config updates in knowledge base management 2026-04-22 21:17:21 +08:00
engine.go feat(chat): add @Skill/@MCP mentions with scoped agent runtime 2026-06-29 18:09:44 +08:00
engine_image_test.go feat: auto-describe MCP tool result images via VLM 2026-03-25 21:38:15 +08:00
engine_test.go feat(agent): enhance event routing for reasoning and answers in streaming 2026-06-04 15:48:04 +08:00
finalize.go fix(agent): harden @mention scope and simplify must_use hints 2026-06-29 18:09:44 +08:00
langfuse_test.go feat(observability): instrument agent ReAct loop and tool calls in Langfuse 2026-04-24 19:58:08 +08:00
observe.go test(agent): add unit tests for buildMustUseBlock functionality 2026-06-29 18:09:44 +08:00
observe_test.go test(agent): add unit tests for buildMustUseBlock functionality 2026-06-29 18:09:44 +08:00
prompts.go feat(chat): add @Skill/@MCP mentions with scoped agent runtime 2026-06-29 18:09:44 +08:00
prompts_wiki.go feat(i18n): add optional embedding model descriptions for multiple locales 2026-06-16 23:51:29 +08:00
prompts_wiki_test.go feat(wiki): front-load static rules in chunk-citation prompt for prefix cache 2026-06-16 16:58:12 +08:00
think.go refactor(agent): remove final_answer tool references and update related logic 2026-06-04 15:48:04 +08:00