@@ -246,7 +246,7 @@ export function useConnection({
246246 const proxyAuthToken = getMCPProxyAuthToken ( config ) ;
247247 const headers : HeadersInit = { } ;
248248 if ( proxyAuthToken ) {
249- headers [ ' Authorization' ] = `Bearer ${ proxyAuthToken } ` ;
249+ headers [ " Authorization" ] = `Bearer ${ proxyAuthToken } ` ;
250250 }
251251 const proxyHealthResponse = await fetch ( proxyHealthUrl , { headers } ) ;
252252 const proxyHealth = await proxyHealthResponse . json ( ) ;
@@ -269,7 +269,7 @@ export function useConnection({
269269
270270 const isProxyAuthError = ( error : unknown ) : boolean => {
271271 return (
272- error instanceof Error &&
272+ error instanceof Error &&
273273 error . message . includes ( "Authentication required. Use the session token" )
274274 ) ;
275275 } ;
@@ -335,7 +335,7 @@ export function useConnection({
335335 const proxyAuthToken = getMCPProxyAuthToken ( config ) ;
336336 const proxyHeaders : HeadersInit = { } ;
337337 if ( proxyAuthToken ) {
338- proxyHeaders [ ' Authorization' ] = `Bearer ${ proxyAuthToken } ` ;
338+ proxyHeaders [ " Authorization" ] = `Bearer ${ proxyAuthToken } ` ;
339339 }
340340
341341 // Create appropriate transport
@@ -356,7 +356,11 @@ export function useConnection({
356356 fetch : (
357357 url : string | URL | globalThis . Request ,
358358 init : RequestInit | undefined ,
359- ) => fetch ( url , { ...init , headers : { ...headers , ...proxyHeaders } } ) ,
359+ ) =>
360+ fetch ( url , {
361+ ...init ,
362+ headers : { ...headers , ...proxyHeaders } ,
363+ } ) ,
360364 } ,
361365 requestInit : {
362366 headers : { ...headers , ...proxyHeaders } ,
@@ -372,7 +376,11 @@ export function useConnection({
372376 fetch : (
373377 url : string | URL | globalThis . Request ,
374378 init : RequestInit | undefined ,
375- ) => fetch ( url , { ...init , headers : { ...headers , ...proxyHeaders } } ) ,
379+ ) =>
380+ fetch ( url , {
381+ ...init ,
382+ headers : { ...headers , ...proxyHeaders } ,
383+ } ) ,
376384 } ,
377385 requestInit : {
378386 headers : { ...headers , ...proxyHeaders } ,
@@ -388,7 +396,11 @@ export function useConnection({
388396 fetch : (
389397 url : string | URL | globalThis . Request ,
390398 init : RequestInit | undefined ,
391- ) => fetch ( url , { ...init , headers : { ...headers , ...proxyHeaders } } ) ,
399+ ) =>
400+ fetch ( url , {
401+ ...init ,
402+ headers : { ...headers , ...proxyHeaders } ,
403+ } ) ,
392404 } ,
393405 requestInit : {
394406 headers : { ...headers , ...proxyHeaders } ,
@@ -471,7 +483,8 @@ export function useConnection({
471483 if ( isProxyAuthError ( error ) ) {
472484 toast ( {
473485 title : "Proxy Authentication Required" ,
474- description : "Please enter the session token from the proxy server console in the Configuration settings." ,
486+ description :
487+ "Please enter the session token from the proxy server console in the Configuration settings." ,
475488 variant : "destructive" ,
476489 } ) ;
477490 setConnectionStatus ( "error" ) ;
0 commit comments