@@ -113,7 +113,7 @@ describe('IdeClient', () => {
113113 'utf8' ,
114114 ) ;
115115 expect ( StreamableHTTPClientTransport ) . toHaveBeenCalledWith (
116- new URL ( 'http://localhost :8080/mcp' ) ,
116+ new URL ( 'http://127.0.0.1 :8080/mcp' ) ,
117117 expect . any ( Object ) ,
118118 ) ;
119119 expect ( mockClient . connect ) . toHaveBeenCalledWith ( mockHttpTransport ) ;
@@ -181,7 +181,7 @@ describe('IdeClient', () => {
181181 await ideClient . connect ( ) ;
182182
183183 expect ( StreamableHTTPClientTransport ) . toHaveBeenCalledWith (
184- new URL ( 'http://localhost :9090/mcp' ) ,
184+ new URL ( 'http://127.0.0.1 :9090/mcp' ) ,
185185 expect . any ( Object ) ,
186186 ) ;
187187 expect ( mockClient . connect ) . toHaveBeenCalledWith ( mockHttpTransport ) ;
@@ -229,7 +229,7 @@ describe('IdeClient', () => {
229229 await ideClient . connect ( ) ;
230230
231231 expect ( StreamableHTTPClientTransport ) . toHaveBeenCalledWith (
232- new URL ( 'http://localhost :8080/mcp' ) ,
232+ new URL ( 'http://127.0.0.1 :8080/mcp' ) ,
233233 expect . any ( Object ) ,
234234 ) ;
235235 expect ( ideClient . getConnectionStatus ( ) . status ) . toBe (
@@ -662,7 +662,7 @@ describe('IdeClient', () => {
662662 await ideClient . connect ( ) ;
663663
664664 expect ( StreamableHTTPClientTransport ) . toHaveBeenCalledWith (
665- new URL ( 'http://localhost :8080/mcp' ) ,
665+ new URL ( 'http://127.0.0.1 :8080/mcp' ) ,
666666 expect . objectContaining ( {
667667 requestInit : {
668668 headers : {
0 commit comments