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

Function getOpencodeServerEntry

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

Source from the content-addressed store, hash-verified

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

Callers 2

printConfigMethod · 0.85
writeMcpEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected