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

Function initializeInstructions

src/mcp/session.ts:78–84  ·  view source on GitHub ↗
(base: string, notice: string | null = getUpdateNotice())

Source from the content-addressed store, hash-verified

76 * env or it will fail only in the weeks after a release ships.
77 */
78export function initializeInstructions(base: string, notice: string | null = getUpdateNotice()): string {
79 if (!notice) return base;
80 return (
81 `${base}\n\n---\n${notice} This server keeps running the old version until ` +
82 `the user upgrades — mention it when convenient; do not run the upgrade yourself.`
83 );
84}
85
86/** Every tool this server defines, by name: the names a client's rewrite may touch. */
87const TOOL_NAMES: readonly string[] = tools.map((t) => t.name);

Callers 3

instructionsForClientFunction · 0.85

Calls 1

getUpdateNoticeFunction · 0.90

Tested by

no test coverage detected