MCPcopy Create free account
hub / github.com/T-Lab-CUHKSZ/claude-code / getClaudeMdPath

Function getClaudeMdPath

config-ui/server.ts:53–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53function getClaudeMdPath() {
54 if (existsSync(join(CWD, '.claude', 'CLAUDE.md'))) return join(CWD, '.claude', 'CLAUDE.md')
55 if (existsSync(join(CWD, 'CLAUDE.md'))) return join(CWD, 'CLAUDE.md')
56 return join(CWD, 'CLAUDE.md') // default create location
57}
58
59function getRulesDir() {
60 return join(CWD, '.claude', 'rules')

Callers 1

handleAPIFunction · 0.85

Calls 1

existsSyncFunction · 0.90

Tested by

no test coverage detected