File tree Expand file tree Collapse file tree 2 files changed +0
-42
lines changed Expand file tree Collapse file tree 2 files changed +0
-42
lines changed Original file line number Diff line number Diff line change @@ -174,15 +174,4 @@ describe('Go Tools', () => {
174
174
expect ( result . content [ 0 ] . text ) . toContain ( 'ns/op' )
175
175
} )
176
176
} )
177
-
178
- describe ( 'go_mod_tidy' , ( ) => {
179
- it ( 'should clean up dependencies' , async ( ) => {
180
- const result = await server . callTool ( 'go_mod_tidy' , {
181
- wd : testWorkingDir
182
- } )
183
-
184
- expect ( result . content [ 0 ] . type ) . toBe ( 'text' )
185
- expect ( result . content [ 0 ] . text ) . toContain ( 'Dependencies cleaned up successfully' )
186
- } )
187
- } )
188
177
} )
Original file line number Diff line number Diff line change @@ -409,35 +409,4 @@ export function registerGoTools(server: McpServer): void {
409
409
}
410
410
}
411
411
)
412
-
413
- // Tool: Run go mod tidy
414
- server . tool (
415
- 'go_mod_tidy' ,
416
- {
417
- wd : z . string ( ) . describe ( 'Working directory where the command will be executed (should contain go.mod file)' )
418
- } ,
419
- async ( { wd } : { wd : string } ) => {
420
- // Validate that working directory is an absolute path
421
- if ( ! isAbsolutePath ( wd ) ) {
422
- return createWdError ( wd )
423
- }
424
-
425
- try {
426
- return executeGoCommand (
427
- 'go mod tidy' ,
428
- wd ,
429
- 'Dependencies cleaned up successfully'
430
- )
431
- } catch ( error ) {
432
- console . error ( 'Error running go mod tidy:' , error )
433
- return {
434
- content : [ {
435
- type : 'text' as const ,
436
- text : `Error running go mod tidy: ${ error instanceof Error ? error . message : String ( error ) } `
437
- } ] ,
438
- isError : true
439
- }
440
- }
441
- }
442
- )
443
412
}
You can’t perform that action at this time.
0 commit comments