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({
252252 const handleAuthError = async ( error : unknown ) => {
253253 const is401Error =
254254 ( 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" ) ) ;
257257
258258 if ( is401Error ) {
259259 const serverAuthProvider = new InspectorOAuthClientProvider ( sseUrl ) ;
@@ -377,9 +377,9 @@ export function useConnection({
377377 const clientTransport =
378378 transportType === "streamable-http"
379379 ? new StreamableHTTPClientTransport ( mcpProxyServerUrl as URL , {
380- sessionId : undefined ,
381- ...transportOptions ,
382- } )
380+ sessionId : undefined ,
381+ ...transportOptions ,
382+ } )
383383 : new SSEClientTransport ( mcpProxyServerUrl as URL , transportOptions ) ;
384384
385385 if ( onNotification ) {
@@ -434,8 +434,8 @@ export function useConnection({
434434 }
435435 const is401Error =
436436 ( 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" ) ) ;
439439
440440 if ( is401Error ) {
441441 // 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({
2929 error : {
3030 code : - 32001 ,
3131 message : error . message ,
32- data : error
33- }
32+ data : error ,
33+ } ,
3434 } ;
3535 transportToClient . send ( errorResponse ) . catch ( onClientError ) ;
3636 }
You can’t perform that action at this time.
0 commit comments