Skip to content

Commit 2f6a9fc

Browse files
committed
format
1 parent 85ae0ed commit 2f6a9fc

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

client/src/lib/hooks/useConnection.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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

server/src/mcpProxy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)