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

Function instructionsForClient

src/mcp/session.ts:95–97  ·  view source on GitHub ↗
(base: string, clientName: string | undefined)

Source from the content-addressed store, hash-verified

93 * client the IDENTICAL text; every other client gets today's bytes.
94 */
95export function instructionsForClient(base: string, clientName: string | undefined): string {
96 return initializeInstructions(isOpenCodeClient(clientName) ? openCodeInstructions(base, TOOL_NAMES) : base);
97}
98
99/**
100 * The `tools/list` answer for a client: `defs` as they are, except that an

Callers 2

runLocalHandshakeProxyFunction · 0.90
handleInitializeMethod · 0.85

Calls 3

isOpenCodeClientFunction · 0.90
openCodeInstructionsFunction · 0.90
initializeInstructionsFunction · 0.85

Tested by

no test coverage detected