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

Method install

src/installer/targets/codex.ts:76–93  ·  view source on GitHub ↗
(loc: Location, _opts: InstallOptions)

Source from the content-addressed store, hash-verified

74 }
75
76 install(loc: Location, _opts: InstallOptions): WriteResult {
77 if (loc !== 'global') {
78 return {
79 files: [],
80 notes: ['Codex CLI has no project-local config — re-run with --location=global to install.'],
81 };
82 }
83 const files: WriteResult['files'] = [];
84
85 files.push(writeMcpEntry());
86
87 // AGENTS.md gets the short marker-fenced CodeGraph block (#704):
88 // subagents and non-MCP harnesses read AGENTS.md but never the MCP
89 // initialize instructions. Upsert self-heals a stale pre-#529 block.
90 files.push(upsertInstructionsEntry(instructionsPath()));
91
92 return { files };
93 }
94
95 uninstall(loc: Location): WriteResult {
96 if (loc !== 'global') return { files: [] };

Callers

nothing calls this directly

Calls 3

upsertInstructionsEntryFunction · 0.90
writeMcpEntryFunction · 0.70
instructionsPathFunction · 0.70

Tested by

no test coverage detected