From c632b774cbb6f5bb070db14cb23fb4e7594b99f4 Mon Sep 17 00:00:00 2001 From: Glen Maddern Date: Thu, 17 Apr 2025 16:29:18 +1000 Subject: [PATCH] removing log that was confusing claude --- src/lib/utils.ts | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 316f9bc..f905ad4 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -143,10 +143,6 @@ export async function connectToRemoteServer( await client.connect(transport) log(`Connected to remote server using ${transport.constructor.name}`) - if (!sseTransport) { - console.log({ serverCapabilities: await client.getServerCapabilities() }) - } - return transport } catch (error) { // Check if it's a protocol error and we should attempt fallback @@ -183,10 +179,10 @@ export async function connectToRemoteServer( ) } else if (error instanceof UnauthorizedError || (error instanceof Error && error.message.includes('Unauthorized'))) { log('Authentication required. Initializing auth...') - + // Initialize authentication on-demand const { waitForAuthCode, skipBrowserAuth } = await authInitializer() - + if (skipBrowserAuth) { log('Authentication required but skipping browser auth - using shared auth') } else { @@ -211,15 +207,7 @@ export async function connectToRemoteServer( log(`Recursively reconnecting for reason: ${REASON_AUTH_NEEDED}`) // Recursively call connectToRemoteServer with the updated recursion tracking - return connectToRemoteServer( - client, - serverUrl, - authProvider, - headers, - authInitializer, - transportStrategy, - recursionReasons, - ) + return connectToRemoteServer(client, serverUrl, authProvider, headers, authInitializer, transportStrategy, recursionReasons) } catch (authError) { log('Authorization error:', authError) throw authError