WeKnora/internal/handler/dto
lyingbug 85b76d1a30
feat(mcp)!: persist tool catalogs and add guided configuration (#3118)
* feat(mcp)!: persist tool catalogs and add guided configuration

* fix(mcp): write caller-owned catalogs and require a real tool sync

OAuth viewers can now persist their own directory, and the setup wizard no longer treats an unsynced service as complete. Missing catalogs auto-fetch on the tools step; already-used MCP functions are restored across engine turns.

* fix(mcp): skip redundant list_servers and tighten catalog UI

When the advertised server directory already fits in discover_mcp_tools, models should list_tools or describe directly. Chat and settings now show server names, collapsed docs, and initialize debug metadata for empty optional fields.

* fix(mcp): surface catalog summaries and polish tool detail UI

List responses now include a saved catalog count without live MCP calls, so settings cards and @ mentions can show sync state. Tool details open in a popup instead of expanding the row.

* fix(mcp): drop incomplete Anthropic calls and gate shared catalog refresh

Unclosed streamed tool_use was emitted as {} and executed. list_tools refresh=true now re-lists upstream instead of returning the saved snapshot, and only Admin (or MCP-capable API keys) can overwrite tenant-wide static-auth catalogs.

* fix(mcp): wrap client refresh path to satisfy lll

The metadata refresh URL made doRequest exceed the 120-character limit in the client module CI lint.
2026-09-09 13:34:56 +08:00
..
auth.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
auth_test.go fix(api-keys): enforce scope from request context after attach 2026-07-07 12:00:13 +08:00
datasource.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
datasource_test.go fix(datasource): harden RSS connector and editor UX after review 2026-06-23 17:30:38 +08:00
mcp.go feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
mcp_test.go feat(mcp)!: persist tool catalogs and add guided configuration (#3118) 2026-09-09 13:34:56 +08:00
model.go feat(agent): keep long sandbox turns from truncating, overflowing, or rewriting files 2026-09-02 22:09:09 +08:00
model_test.go feat(models): let system admins edit builtin model config 2026-07-14 15:56:02 +08:00
role.go test(api-keys): add unit tests for tenant API key validation 2026-07-07 12:00:13 +08:00
role_test.go test(api-keys): add unit tests for tenant API key validation 2026-07-07 12:00:13 +08:00
tenant.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
tenant_test.go fix(api-keys): enforce scope from request context after attach 2026-07-07 12:00:13 +08:00
test_helpers.go fix(security): redact integration secrets from viewer-accessible endpoints 2026-07-02 14:41:42 +08:00
web_search_provider.go feat(memory): add cross-session long-term memory 2026-08-13 18:00:02 +08:00
web_search_provider_test.go fix(security): redact integration secrets from viewer-accessible endpoints 2026-07-02 14:41:42 +08:00