MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / ensureBinary

Function ensureBinary

pkg/go/cmd/codebase-memory-mcp/main.go:46–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func ensureBinary() (string, error) {
47 bin := binPath()
48 if _, err := os.Stat(bin); err == nil {
49 return bin, nil
50 }
51 if err := download(bin); err != nil {
52 return "", err
53 }
54 return bin, nil
55}
56
57func binPath() string {
58 name := "codebase-memory-mcp"

Callers 1

mainFunction · 0.85

Calls 2

binPathFunction · 0.85
downloadFunction · 0.70

Tested by

no test coverage detected