File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -252,8 +252,8 @@ export function useConnection({
252
252
const handleAuthError = async ( error : unknown ) => {
253
253
const is401Error =
254
254
( error instanceof SseError && error . code === 401 ) ||
255
- ( error instanceof Error && error . message . includes ( ' 401' ) ) ||
256
- ( error instanceof Error && error . message . includes ( ' Unauthorized' ) ) ;
255
+ ( error instanceof Error && error . message . includes ( " 401" ) ) ||
256
+ ( error instanceof Error && error . message . includes ( " Unauthorized" ) ) ;
257
257
258
258
if ( is401Error ) {
259
259
const serverAuthProvider = new InspectorOAuthClientProvider ( sseUrl ) ;
@@ -377,9 +377,9 @@ export function useConnection({
377
377
const clientTransport =
378
378
transportType === "streamable-http"
379
379
? new StreamableHTTPClientTransport ( mcpProxyServerUrl as URL , {
380
- sessionId : undefined ,
381
- ...transportOptions ,
382
- } )
380
+ sessionId : undefined ,
381
+ ...transportOptions ,
382
+ } )
383
383
: new SSEClientTransport ( mcpProxyServerUrl as URL , transportOptions ) ;
384
384
385
385
if ( onNotification ) {
@@ -434,8 +434,8 @@ export function useConnection({
434
434
}
435
435
const is401Error =
436
436
( error instanceof SseError && error . code === 401 ) ||
437
- ( error instanceof Error && error . message . includes ( ' 401' ) ) ||
438
- ( error instanceof Error && error . message . includes ( ' Unauthorized' ) ) ;
437
+ ( error instanceof Error && error . message . includes ( " 401" ) ) ||
438
+ ( error instanceof Error && error . message . includes ( " Unauthorized" ) ) ;
439
439
440
440
if ( is401Error ) {
441
441
// Don't set error state if we're about to redirect for auth
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ export default function mcpProxy({
29
29
error : {
30
30
code : - 32001 ,
31
31
message : error . message ,
32
- data : error
33
- }
32
+ data : error ,
33
+ } ,
34
34
} ;
35
35
transportToClient . send ( errorResponse ) . catch ( onClientError ) ;
36
36
}
You can’t perform that action at this time.
0 commit comments