MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / Uninstall

Method Uninstall

internal/desktop/tool_service.go:95–109  ·  view source on GitHub ↗
(name string, dryRun bool)

Source from the content-addressed store, hash-verified

93}
94
95func (s *ToolService) Uninstall(name string, dryRun bool) (OperationResult, error) {
96 tool, err := loadTool(name)
97 if err != nil {
98 return OperationResult{}, err
99 }
100 if dryRun {
101 return OperationResult{OK: true, Message: "uninstall " + tool.LaunchCommand()}, nil
102 }
103 var stdout, stderr bytes.Buffer
104 code, msg, err := tools.Uninstall(tool, nil, &stdout, &stderr)
105 if err != nil {
106 return OperationResult{}, wrapError("TOOL_UNINSTALL_FAILED", err)
107 }
108 return OperationResult{OK: code == 0, Message: msg + "\n" + stdout.String() + stderr.String()}, nil
109}
110
111func (s *ToolService) Upgrade(name string, dryRun bool) (OperationResult, error) {
112 return s.Install(name, dryRun)

Callers

nothing calls this directly

Calls 4

UninstallFunction · 0.92
loadToolFunction · 0.85
wrapErrorFunction · 0.85
LaunchCommandMethod · 0.80

Tested by

no test coverage detected