mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-13 20:14:16 +00:00
Return the OAuth task id from the MCP test route
The client follows an MCP sign-in by its task's events, but the test route kept only success, requires_oauth and auth_url, so the wizard and the custom MCP modal reported a failed sign-in before the popup could load.
This commit is contained in:
1 parent
a9390ec39e
commit
46928cba3d
2 files changed
+5
-1
No files matched your search
@@ -217,7 +217,7 @@ class TestMCPServerConfig(Resource):
|
||||
safe_result = {
|
||||
k: v
|
||||
for k, v in result.items()
|
||||
if k in ("success", "requires_oauth", "auth_url")
|
||||
if k in ("success", "requires_oauth", "auth_url", "task_id")
|
||||
}
|
||||
return make_response(jsonify(safe_result), 200)
|
||||
|
||||
|
||||
Reference in new issue
Block a user