Co-Authored-By: Taylor Wilsdon <6508528+taylorwilsdon@users.noreply.github.com>
This commit is contained in:
Timothy Jaeryang Baek
2026-03-25 04:32:55 -05:00
parent 857d7e6f37
commit 4d50001c41
2 changed files with 12 additions and 0 deletions

View File

@@ -339,6 +339,9 @@
let parts = toolId.split(':');
let serverId = parts?.at(-1) ?? toolId;
// Persist the tool ID so we can re-enable it after OAuth redirect
sessionStorage.setItem('pendingOAuthToolId', toolId);
const authUrl = getOAuthClientAuthorizationUrl(serverId, 'mcp');
window.open(authUrl, '_self', 'noopener');
} else {