Files
DocsGPT/application
Alex b99147ba83 refactor(mcp-oauth): carry authorization_url in SSE, remove polling
application/worker.py::mcp_oauth now publishes
authorization_url on the mcp.oauth.awaiting_redirect envelope.
frontend/src/modals/MCPServerModal.tsx consumes it from SSE
instead of polling /oauth_status/<task_id> every 1s.

The URL is generated inside DocsGPTOAuth.redirect_handler when
the FastMCP client triggers OAuth. The worker now plumbs a
publish callback through tool_config -> MCPTool -> DocsGPTOAuth
so the awaiting_redirect publish fires from inside the handler
at the exact point the URL becomes known. The legacy Redis
mcp_oauth_status setex writes and the GET
/api/mcp_server/oauth_status/<task_id> endpoint are kept as
belt-and-suspenders; nothing in the frontend reads them now.
2026-05-12 14:44:42 +01:00
..
2026-05-12 14:29:45 +01:00
2026-05-12 14:29:45 +01:00
2026-05-12 14:29:45 +01:00
2026-05-12 14:29:45 +01:00
2026-05-12 14:29:45 +01:00
2026-03-25 22:34:25 +00:00
2026-04-27 22:09:33 +01:00
2026-04-18 13:13:57 +01:00
2026-05-12 14:29:45 +01:00
2026-05-12 14:29:45 +01:00
2026-03-17 14:27:48 +00:00
2026-03-25 00:03:42 +00:00
2026-04-25 14:57:37 +01:00
2026-05-05 01:55:23 +01:00
2026-04-12 00:07:24 +01:00
2026-05-12 14:29:45 +01:00
2025-12-24 18:35:57 +02:00
2026-04-28 00:14:43 +01:00
2026-04-28 02:27:02 +01:00
2026-04-26 00:58:29 +01:00
2026-04-27 22:09:33 +01:00
2026-04-21 16:16:11 +01:00