MCPcopy
hub / github.com/davepoon/buildwithclaude / execClaudeCLI

Function execClaudeCLI

packages/bwc-cli/src/utils/claude-cli.ts:84–87  ·  view source on GitHub ↗
(args: string[], options?: any)

Source from the content-addressed store, hash-verified

82 * Execute a Claude CLI command
83 */
84export async function execClaudeCLI(args: string[], options?: any): Promise<{ stdout: string; stderr: string }> {
85 const claudePath = await findClaudeCLI()
86 return execa(claudePath, args, options)
87}
88
89/**
90 * Reset the cached Claude path (useful for testing)

Callers 11

claude-cli.test.tsFile · 0.90
configureInClaudeCodeFunction · 0.85
getClaudeMCPServersFunction · 0.85
removeFromClaudeCodeFunction · 0.85
serverExistsInClaudeCodeFunction · 0.85
setupDockerMCPGatewayFunction · 0.85
checkDockerMCPStatusFunction · 0.85
checkClaudeCLIFunction · 0.85
createInstallCommandFunction · 0.85
addRemoteMCPServerFunction · 0.85

Calls 1

findClaudeCLIFunction · 0.85

Tested by

no test coverage detected