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

Function IsInstalled

internal/tools/installer.go:150–157  ·  view source on GitHub ↗

IsInstalled reports whether the tool's CLI binary is reachable via PATH.

(tool Tool)

Source from the content-addressed store, hash-verified

148
149// IsInstalled reports whether the tool's CLI binary is reachable via PATH.
150func IsInstalled(tool Tool) bool {
151 bin := tool.LaunchCommand()
152 if bin == "" {
153 return false
154 }
155 _, err := exec.LookPath(bin)
156 return err == nil
157}
158
159// Detect reports whether the tool's CLI binary is on PATH and, when installed,
160// its version string in a single pass. Version detection is skipped for missing

Callers

nothing calls this directly

Calls 1

LaunchCommandMethod · 0.80

Tested by

no test coverage detected