@@ -284,14 +284,11 @@ describe("built-in Exa web_fetch alias", () => {
284284 resolveMcpServers ( [ { name : "exa" , enabled : false } ] , undefined ) ,
285285 ) ;
286286 const states : string [ ] = [ ] ;
287- const connection = toolset . connectMCPServer (
288- linearHttpMcpServer ,
289- {
290- interactiveAuth : true ,
291- onStatus : ( status ) => states . push ( status . state ) ,
292- onToolsChanged : ( ) => undefined ,
293- } ,
294- ) ;
287+ const connection = toolset . connectMCPServer ( linearHttpMcpServer , {
288+ interactiveAuth : true ,
289+ onStatus : ( status ) => states . push ( status . state ) ,
290+ onToolsChanged : ( ) => undefined ,
291+ } ) ;
295292 await Promise . resolve ( ) ;
296293
297294 let disposed = false ;
@@ -434,14 +431,11 @@ describe("built-in Exa web_fetch alias", () => {
434431 ) ;
435432 const states : { state : string ; error ?: string } [ ] = [ ] ;
436433 try {
437- await toolset . connectMCPServer (
438- linearHttpMcpServer ,
439- {
440- interactiveAuth : true ,
441- onStatus : ( status ) => states . push ( status ) ,
442- onToolsChanged : ( ) => undefined ,
443- } ,
444- ) ;
434+ await toolset . connectMCPServer ( linearHttpMcpServer , {
435+ interactiveAuth : true ,
436+ onStatus : ( status ) => states . push ( status ) ,
437+ onToolsChanged : ( ) => undefined ,
438+ } ) ;
445439
446440 expect ( states . map ( ( status ) => status . state ) ) . toEqual ( [
447441 "connecting" ,
@@ -537,9 +531,7 @@ describe("built-in Exa web_fetch alias", () => {
537531 expect ( states [ 1 ] ?. error ) . toContain ( "connection exploded" ) ;
538532 expect ( toolset . hasMCPServer ( "linear" ) ) . toBe ( false ) ;
539533 expect ( await Bun . file ( path ) . json ( ) ) . toMatchObject ( {
540- mcpServers : [
541- linearHttpMcpServer ,
542- ] ,
534+ mcpServers : [ linearHttpMcpServer ] ,
543535 } ) ;
544536 expect (
545537 await persistGlobalHTTPMCPServer (
@@ -561,9 +553,7 @@ describe("built-in Exa web_fetch alias", () => {
561553 expect ( retryStates ) . toEqual ( [ "connecting" , "connected" ] ) ;
562554 expect ( toolset . hasMCPServer ( "linear" ) ) . toBe ( true ) ;
563555 expect ( await Bun . file ( path ) . json ( ) ) . toMatchObject ( {
564- mcpServers : [
565- linearHttpMcpServer ,
566- ] ,
556+ mcpServers : [ linearHttpMcpServer ] ,
567557 } ) ;
568558 } finally {
569559 await toolset . dispose ( ) ;
0 commit comments