()
| 127 | } |
| 128 | |
| 129 | function 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. */ |
| 146 | function hasCodegraphEntry(config: Record<string, any>): boolean { |
no outgoing calls
no test coverage detected