summaryrefslogtreecommitdiff
path: root/packages/core/src/mcp/oauth-provider.ts
diff options
context:
space:
mode:
authorBrian Ray <[email protected]>2025-08-01 01:47:22 -0400
committerGitHub <[email protected]>2025-08-01 05:47:22 +0000
commitdc9f17bb4a65a73e57fd315917a9c032dce04551 (patch)
tree20efa86f8701262575345b6268627f19b86c2ac1 /packages/core/src/mcp/oauth-provider.ts
parentf21ff093897980a51a4ad1ea6ee167dee53416b6 (diff)
New browser launcher for MCP OAuth. (#5261)
Diffstat (limited to 'packages/core/src/mcp/oauth-provider.ts')
-rw-r--r--packages/core/src/mcp/oauth-provider.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/core/src/mcp/oauth-provider.ts b/packages/core/src/mcp/oauth-provider.ts
index 2f65f051..491ec477 100644
--- a/packages/core/src/mcp/oauth-provider.ts
+++ b/packages/core/src/mcp/oauth-provider.ts
@@ -7,7 +7,7 @@
import * as http from 'node:http';
import * as crypto from 'node:crypto';
import { URL } from 'node:url';
-import open from 'open';
+import { openBrowserSecurely } from '../utils/secure-browser-launcher.js';
import { MCPOAuthToken, MCPOAuthTokenStorage } from './oauth-token-storage.js';
import { getErrorMessage } from '../utils/errors.js';
import { OAuthUtils } from './oauth-utils.js';
@@ -593,9 +593,9 @@ export class MCPOAuthProvider {
// Start callback server
const callbackPromise = this.startCallbackServer(pkceParams.state);
- // Open browser
+ // Open browser securely
try {
- await open(authUrl);
+ await openBrowserSecurely(authUrl);
} catch (error) {
console.warn(
'Failed to open browser automatically:',