@@ -259,7 +259,7 @@ app.get("/stdio", async (req, res) => {
259
259
} catch ( error ) {
260
260
if ( error instanceof SseError && error . code === 401 ) {
261
261
console . error (
262
- "Received 401 Unauthorized from MCP server. Authentication failure."
262
+ "Received 401 Unauthorized from MCP server. Authentication failure." ,
263
263
) ;
264
264
res . status ( 401 ) . json ( error ) ;
265
265
return ;
@@ -305,7 +305,6 @@ app.get("/stdio", async (req, res) => {
305
305
transportToClient : webAppTransport ,
306
306
transportToServer : serverTransport ,
307
307
} ) ;
308
-
309
308
} catch ( error ) {
310
309
console . error ( "Error in /stdio route:" , error ) ;
311
310
res . status ( 500 ) . json ( error ) ;
@@ -323,7 +322,7 @@ app.get("/sse", async (req, res) => {
323
322
} catch ( error ) {
324
323
if ( error instanceof SseError && error . code === 401 ) {
325
324
console . error (
326
- "Received 401 Unauthorized from MCP server. Authentication failure."
325
+ "Received 401 Unauthorized from MCP server. Authentication failure." ,
327
326
) ;
328
327
res . status ( 401 ) . json ( error ) ;
329
328
return ;
@@ -333,7 +332,7 @@ app.get("/sse", async (req, res) => {
333
332
) ;
334
333
res . status ( 404 ) . json ( error ) ;
335
334
return ;
336
- } else if ( JSON . stringify ( error ) . includes ( "ECONNREFUSED" ) ) {
335
+ } else if ( JSON . stringify ( error ) . includes ( "ECONNREFUSED" ) ) {
337
336
console . error ( "Connection refused. Is the MCP server running?" ) ;
338
337
res . status ( 500 ) . json ( error ) ;
339
338
} else {
@@ -355,7 +354,6 @@ app.get("/sse", async (req, res) => {
355
354
transportToServer : serverTransport ,
356
355
} ) ;
357
356
}
358
-
359
357
} catch ( error ) {
360
358
console . error ( "Error in /sse route:" , error ) ;
361
359
res . status ( 500 ) . json ( error ) ;
0 commit comments