MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / mcpJsonPath

Function mcpJsonPath

src/installer/targets/cursor.ts:56–60  ·  view source on GitHub ↗
(loc: Location)

Source from the content-addressed store, hash-verified

54} from '../instructions-template';
55
56function mcpJsonPath(loc: Location): string {
57 return loc === 'global'
58 ? path.join(os.homedir(), '.cursor', 'mcp.json')
59 : path.join(process.cwd(), '.cursor', 'mcp.json');
60}
61/**
62 * Cursor "rules" file. Only meaningful for the project-local
63 * location — Cursor reads `.cursor/rules/*.mdc` from the workspace

Callers 5

detectMethod · 0.70
uninstallMethod · 0.70
printConfigMethod · 0.70
describePathsMethod · 0.70
writeMcpEntryFunction · 0.70

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected