WeKnora/internal
wizardchen 7f3f219f58 feat(mcp): add OAuth2 authorization for MCP services
Support connecting to MCP servers that require OAuth2, with a Cursor-like
zero-config flow: the user provides only a URL and the system performs
metadata discovery, dynamic client registration (DCR), and the
authorization code flow with PKCE on first connect.

- Persist per-user access/refresh tokens and per-service DCR client
  credentials, encrypted at rest (AES-256-GCM)
- Store the PKCE verifier/state during the flow via Redis with an
  in-memory fallback for Lite mode
- Cache MCP clients per (service, user) so tokens stay user-isolated
- Add endpoints for authorize-url, callback, status, and token revoke;
  the callback is allowlisted for unauthenticated access
- Surface a structured "authorization required" hint when a tool call
  hits an unauthorized MCP service
- Frontend: add an auth-type selector with OAuth config, inline
  authorization status/actions, and render the connection test result
  inline in the editor drawer instead of a stacked centered dialog
2026-06-22 20:19:31 +08:00
..
agent feat(mcp): add OAuth2 authorization for MCP services 2026-06-22 20:19:31 +08:00
application feat(mcp): add OAuth2 authorization for MCP services 2026-06-22 20:19:31 +08:00
assets feat(assets): add ASR test audio file and embed it in the application 2026-04-02 21:27:27 +08:00
common perf(common): compile LLM-JSON code-fence regexp once 2026-06-16 19:52:00 +08:00
config test: add document process task options tests 2026-05-28 20:27:53 +08:00
container feat(mcp): add OAuth2 authorization for MCP services 2026-06-22 20:19:31 +08:00
database feat(system-info): surface DB migration errors with troubleshooting links 2026-05-14 16:34:50 +08:00
datasource feat(datasource): reveal pre-existing selections in lazily-loaded picker 2026-06-22 19:24:08 +08:00
errors feat(knowledge): track per-stage parsing progress with /stages API 2026-05-28 15:14:45 +08:00
event fix(event): add panic recovery to async goroutines 2026-06-04 15:37:08 +08:00
handler feat(mcp): add OAuth2 authorization for MCP services 2026-06-22 20:19:31 +08:00
im feat(im): integrate IM service for custom agent deletion 2026-06-22 17:16:07 +08:00
infrastructure fix(docparser): normalize PaddleOCR-VL HTML tables (#1725) 2026-06-22 17:31:26 +08:00
logger refactor(logger): support LOG_FORMAT template and harden level coloring 2026-05-22 20:31:54 +08:00
mcp feat(mcp): add OAuth2 authorization for MCP services 2026-06-22 20:19:31 +08:00
middleware feat(mcp): add OAuth2 authorization for MCP services 2026-06-22 20:19:31 +08:00
models feat(observability): enhance Langfuse retrieve and rerank tracing 2026-06-16 01:09:23 +08:00
ratelimit feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
router feat(mcp): add OAuth2 authorization for MCP services 2026-06-22 20:19:31 +08:00
runtime feat(system): add server startup time and uptime tracking 2026-06-04 15:48:04 +08:00
sandbox perf(sandbox): compile command-substitution regexps once 2026-06-16 19:51:32 +08:00
searchutil feat(backend): improve parent-child chunk merge and imageinfo matching 2026-06-16 01:09:07 +08:00
stream feat(redis): add REDIS_USERNAME support for Redis ACL 2026-02-04 19:38:40 +08:00
tracing/langfuse feat(observability): enhance Langfuse retrieve and rerank tracing 2026-06-16 01:09:23 +08:00
types feat(mcp): add OAuth2 authorization for MCP services 2026-06-22 20:19:31 +08:00
utils perf(utils): compile SQL-validation regexps once instead of per call 2026-06-17 14:17:17 +08:00