File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 3030 "prompts" : " ^2.4.2" ,
3131 "uri-template" : " ^2.0.0" ,
3232 "yocto-spinner" : " ^0.2.2" ,
33- "yoctocolors" : " ^2.1.1"
33+ "yoctocolors" : " ^2.1.1" ,
34+ "strict-url-sanitise" : " ^0.0.1"
3435 }
3536}
Original file line number Diff line number Diff line change 22
33import open from 'open'
44import { config } from '../config.js'
5+ import { sanitizeUrl } from 'strict-url-sanitise'
56
67/** @typedef {import("@modelcontextprotocol/sdk/client/auth.js").OAuthClientProvider } OAuthClientProvider */
78/** @implements {OAuthClientProvider} */
@@ -39,7 +40,7 @@ export class McpOAuthClientProvider {
3940 }
4041
4142 async redirectToAuthorization ( authorizationUrl ) {
42- await open ( authorizationUrl . toString ( ) )
43+ await open ( sanitizeUrl ( authorizationUrl . toString ( ) ) )
4344 }
4445
4546 async codeVerifier ( ) {
You can’t perform that action at this time.
0 commit comments