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

Method install

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

Source from the content-addressed store, hash-verified

105 }
106
107 install(loc: Location, _opts: InstallOptions): WriteResult {
108 const files: WriteResult['files'] = [];
109
110 files.push(writeMcpEntry(loc));
111
112 // AGENTS.md gets the short marker-fenced CodeGraph block (#704):
113 // subagents and non-MCP harnesses read AGENTS.md but never the MCP
114 // initialize instructions. Upsert self-heals a stale pre-#529 block.
115 files.push(upsertInstructionsEntry(instructionsPath(loc)));
116
117 return loc === 'local' ? { files, notes: [trustNote()] } : { files };
118 }
119
120 uninstall(loc: Location): WriteResult {
121 const files: WriteResult['files'] = [];

Callers

nothing calls this directly

Calls 4

upsertInstructionsEntryFunction · 0.90
trustNoteFunction · 0.85
writeMcpEntryFunction · 0.70
instructionsPathFunction · 0.70

Tested by

no test coverage detected