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

Function getOpencodeServerEntry

src/installer/targets/opencode.ts:129–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127}
128
129function getOpencodeServerEntry(): {
130 type: string;
131 command: string[];
132 disabled: boolean;
133 codemode: boolean;
134} {
135 return {
136 type: 'local',
137 command: ['codegraph', 'serve', '--mcp'],
138 disabled: false,
139 // Keep codegraph_explore on the native tool list — OpenCode 2's
140 // default Code Mode would otherwise hide the one-tool server (#1698).
141 codemode: false,
142 };
143}
144
145/** True when either the OpenCode 2 native entry or a pre-#1698 v1 entry is present. */
146function hasCodegraphEntry(config: Record<string, any>): boolean {

Callers 2

printConfigMethod · 0.85
writeMcpEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected