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
..
2026-06-16 01:09:23 +08:00
2026-06-03 14:45:59 +08:00
2026-02-25 14:29:54 +08:00
2026-04-22 21:17:29 +08:00
2026-06-08 21:01:04 +08:00
2026-06-09 20:55:20 +08:00
2026-06-16 01:09:23 +08:00
2026-05-18 16:49:14 +08:00
2026-06-04 15:48:04 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-14 15:53:58 +08:00
2026-05-18 17:28:58 +08:00
2025-08-05 15:08:07 +08:00
2026-06-04 17:39:55 +08:00
2026-06-22 19:24:08 +08:00
2026-06-12 23:10:39 +08:00
2026-06-12 23:10:39 +08:00
2026-06-12 23:10:39 +08:00
2026-06-12 23:10:39 +08:00
2026-06-12 23:10:39 +08:00
2026-06-12 23:10:39 +08:00
2026-06-12 23:10:39 +08:00
2026-03-25 22:08:29 +08:00
2026-06-09 20:38:24 +08:00
2026-05-30 17:53:47 +08:00
2026-06-09 20:38:24 +08:00
2026-05-18 17:28:58 +08:00
2026-06-03 14:45:59 +08:00
2026-06-05 15:00:41 +08:00
2026-06-09 20:38:24 +08:00
2026-06-09 20:38:24 +08:00
2026-06-12 23:08:20 +08:00
2026-06-12 23:08:20 +08:00
2026-05-14 15:53:58 +08:00
2026-06-04 15:48:04 +08:00
2026-06-04 15:48:04 +08:00
2026-06-04 15:48:04 +08:00
2026-04-02 12:04:04 +08:00
2026-03-16 18:18:23 +08:00
2026-06-05 15:00:41 +08:00
2026-05-18 17:28:58 +08:00
2026-06-09 20:38:24 +08:00
2026-06-09 20:38:24 +08:00
2026-06-09 20:38:24 +08:00
2026-05-29 17:52:01 +08:00
2026-06-09 20:38:24 +08:00
2026-05-18 17:28:58 +08:00
2026-05-28 15:14:45 +08:00
2026-05-30 01:00:15 +08:00
2026-05-06 17:09:42 +08:00
2026-05-06 11:23:32 +08:00
2026-05-28 20:27:53 +08:00
2026-05-28 20:27:53 +08:00
2026-06-16 11:25:27 +08:00
2026-05-30 01:00:15 +08:00
2026-05-29 13:47:32 +08:00
2026-05-26 20:54:58 +08:00
2026-05-20 22:25:39 +08:00
2026-05-20 22:25:39 +08:00
2026-05-06 17:17:07 +08:00
2026-04-16 23:15:02 +08:00
2026-05-18 17:28:58 +08:00
2026-06-04 15:48:04 +08:00
2026-06-16 01:09:23 +08:00
2026-06-03 14:45:59 +08:00
2026-06-22 20:19:31 +08:00
2026-06-22 20:19:31 +08:00
2026-05-10 22:57:12 +08:00
2026-05-14 15:56:43 +08:00
2025-11-28 16:10:37 +08:00
2026-05-17 15:27:52 +08:00
2026-03-02 21:21:49 +08:00
2026-03-06 21:08:12 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-17 15:27:52 +08:00
2026-06-16 01:09:07 +08:00
2026-06-04 17:39:38 +08:00
2026-05-14 15:56:43 +08:00
2026-05-18 22:28:00 +08:00
2026-02-04 20:08:49 +08:00
2026-05-10 00:01:06 +08:00
2026-05-10 00:01:06 +08:00
2026-06-04 15:48:04 +08:00
2026-05-18 17:28:58 +08:00
2026-05-27 19:42:01 +08:00
2026-05-27 19:42:01 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-26 21:13:56 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-06-17 10:31:53 +08:00
2026-06-04 15:26:56 +08:00
2026-05-29 16:32:27 +08:00
2026-06-04 15:26:56 +08:00
2026-06-04 15:26:56 +08:00
2026-06-04 15:26:56 +08:00
2026-05-17 15:27:52 +08:00
2026-04-11 18:51:16 +08:00
2026-04-17 16:38:02 +08:00
2026-04-15 11:37:24 +08:00
2026-06-16 23:51:29 +08:00
2026-04-22 21:18:32 +08:00
2026-06-16 20:26:06 +08:00
2026-04-22 21:18:32 +08:00
2026-04-22 21:18:32 +08:00
2026-05-08 21:48:52 +08:00
2026-06-16 23:51:29 +08:00
2026-06-16 23:51:29 +08:00
2026-06-15 17:27:56 +08:00
2026-06-16 23:51:29 +08:00
2026-04-22 21:18:09 +08:00
2026-04-22 21:18:09 +08:00
2026-05-10 00:01:06 +08:00
2026-05-08 21:48:52 +08:00
2026-06-16 20:26:06 +08:00
2026-06-17 00:28:30 +08:00