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

Function isOpenCodeClient

src/mcp/opencode-tool-names.ts:24–26  ·  view source on GitHub ↗
(name: unknown)

Source from the content-addressed store, hash-verified

22 * identifies itself as `opencode`; the match ignores case.
23 */
24export function isOpenCodeClient(name: unknown): boolean {
25 return typeof name === 'string' && name.trim().toLowerCase() === 'opencode';
26}
27
28/** A tool's name as OpenCode lists it: `codegraph_explore` → `codegraph_codegraph_explore`. */
29export function openCodeToolName(tool: string): string {

Callers 2

instructionsForClientFunction · 0.90
toolsForClientFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected