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

Function openCodeInstructions

src/mcp/server-instructions.ts:135–140  ·  view source on GitHub ↗
(instructions: string, toolNames: readonly string[])

Source from the content-addressed store, hash-verified

133 * every other client. See `./opencode-tool-names`.
134 */
135export function openCodeInstructions(instructions: string, toolNames: readonly string[]): string {
136 const renamed = withOpenCodeToolNames(instructions, toolNames);
137 const titleEnd = renamed.indexOf('\n');
138 if (titleEnd === -1) return `${renamed}\n\n${OPENCODE_SERVER_KEY_NOTE}`;
139 return `${renamed.slice(0, titleEnd + 1)}\n${OPENCODE_SERVER_KEY_NOTE}\n${renamed.slice(titleEnd + 1)}`;
140}

Callers 1

instructionsForClientFunction · 0.90

Calls 1

withOpenCodeToolNamesFunction · 0.90

Tested by

no test coverage detected