@@ -87,7 +87,7 @@ describe('configCommand', () => {
8787 const addCommand = mockExecSync . mock . calls [ 1 ] [ 0 ] ;
8888
8989 // Verify exact command structure for add command
90- const expectedCommand = 'claude mcp add pointer -s user --env MCP_POINTER_PORT=7007 -- npx -y @mcp-pointer/server start' ;
90+ const expectedCommand = 'claude mcp add pointer -s user --env MCP_POINTER_PORT=7007 -- npx -y @mcp-pointer/server@latest start' ;
9191 expect ( addCommand ) . toBe ( expectedCommand ) ;
9292
9393 // Verify success message
@@ -101,7 +101,7 @@ describe('configCommand', () => {
101101
102102 expect ( mockExecSync ) . toHaveBeenCalledTimes ( 2 ) ;
103103 const addCommand = mockExecSync . mock . calls [ 1 ] [ 0 ] ;
104- const expectedCommand = 'claude mcp add pointer -s user --env MCP_POINTER_PORT=8888 -- npx -y @mcp-pointer/server start' ;
104+ const expectedCommand = 'claude mcp add pointer -s user --env MCP_POINTER_PORT=8888 -- npx -y @mcp-pointer/server@latest start' ;
105105 expect ( addCommand ) . toBe ( expectedCommand ) ;
106106 } ) ;
107107
@@ -117,7 +117,7 @@ describe('configCommand', () => {
117117
118118 // Second call should be add command
119119 const addCommand = mockExecSync . mock . calls [ 1 ] [ 0 ] ;
120- expect ( addCommand ) . toBe ( 'claude mcp add pointer -s user --env MCP_POINTER_PORT=7007 -- npx -y @mcp-pointer/server start' ) ;
120+ expect ( addCommand ) . toBe ( 'claude mcp add pointer -s user --env MCP_POINTER_PORT=7007 -- npx -y @mcp-pointer/server@latest start' ) ;
121121
122122 expect ( mockLoggerInfo ) . toHaveBeenCalledWith ( expect . stringContaining ( '🔄 Removed existing MCP Pointer configuration' ) ) ;
123123 expect ( mockLoggerInfo ) . toHaveBeenCalledWith ( expect . stringContaining ( '✅ Successfully configured MCP Pointer for Claude Code' ) ) ;
@@ -177,7 +177,7 @@ describe('configCommand', () => {
177177 const configObj = JSON . parse ( decodedConfig ) ;
178178
179179 expect ( configObj . command ) . toBe ( 'npx' ) ;
180- expect ( configObj . args ) . toEqual ( [ '-y' , '@mcp-pointer/server' , 'start' ] ) ;
180+ expect ( configObj . args ) . toEqual ( [ '-y' , '@mcp-pointer/server@latest ' , 'start' ] ) ;
181181 expect ( configObj . env . MCP_POINTER_PORT ) . toBe ( '7007' ) ;
182182
183183 expect ( mockLoggerInfo ) . toHaveBeenCalledWith ( expect . stringContaining ( '✅ MCP Pointer configuration sent to Cursor IDE' ) ) ;
@@ -216,7 +216,7 @@ describe('configCommand', () => {
216216
217217 const pointerConfig = writtenConfig . mcpServers . pointer ;
218218 expect ( pointerConfig . command ) . toBe ( 'npx' ) ;
219- expect ( pointerConfig . args ) . toEqual ( [ '-y' , '@mcp-pointer/server' , 'start' ] ) ;
219+ expect ( pointerConfig . args ) . toEqual ( [ '-y' , '@mcp-pointer/server@latest ' , 'start' ] ) ;
220220 expect ( pointerConfig . env . MCP_POINTER_PORT ) . toBe ( '7007' ) ;
221221
222222 expect ( mockLoggerInfo ) . toHaveBeenCalledWith ( expect . stringContaining ( '✅ Successfully configured MCP Pointer for Windsurf IDE' ) ) ;
@@ -237,7 +237,7 @@ describe('configCommand', () => {
237237 expect ( loggedMessages ) . toContain ( '"pointer"' ) ;
238238 expect ( loggedMessages ) . toContain ( '"command": "npx"' ) ;
239239 expect ( loggedMessages ) . toContain ( '"-y"' ) ;
240- expect ( loggedMessages ) . toContain ( '"@mcp-pointer/server"' ) ;
240+ expect ( loggedMessages ) . toContain ( '"@mcp-pointer/server@latest "' ) ;
241241 expect ( loggedMessages ) . toContain ( '"start"' ) ;
242242 } ) ;
243243 } ) ;
0 commit comments