MCPcopy Create free account
hub / github.com/Eversmile12/sharedcontext / commandExists

Function commandExists

src/cli/setup.ts:142–146  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

140}
141
142function commandExists(command: string): boolean {
143 const cmd = process.platform === "win32" ? "where" : "which";
144 const result = spawnSync(cmd, [command], { stdio: "ignore" });
145 return result.status === 0;
146}
147
148function updateMcpConfig(configPath: string): void {
149 const root = readJsonObject(configPath);

Callers 1

detectInstalledClientsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected