MCPcopy Index your code
hub / github.com/codeaashu/claude-code / validateSrcRoot

Function validateSrcRoot

mcp-server/src/server.ts:946–956  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

944
945/** Validate that SRC_ROOT exists. Exits with error if not. */
946export async function validateSrcRoot(): Promise<void> {
947 if (!(await dirExists(SRC_ROOT))) {
948 console.error(
949 `Error: Claude Code src/ directory not found at ${SRC_ROOT}`
950 );
951 console.error(
952 "Set CLAUDE_CODE_SRC_ROOT environment variable to the src/ directory path."
953 );
954 process.exit(1);
955 }
956}
957
958

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 2

dirExistsFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected