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

Function initializeInstructions

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

Source from the content-addressed store, hash-verified

48 * env or it will fail only in the weeks after a release ships.
49 */
50export function initializeInstructions(base: string, notice: string | null = getUpdateNotice()): string {
51 if (!notice) return base;
52 return (
53 `${base}\n\n---\n${notice} This server keeps running the old version until ` +
54 `the user upgrades — mention it when convenient; do not run the upgrade yourself.`
55 );
56}
57
58/** MCP Protocol Version (latest the server claims). */
59export const PROTOCOL_VERSION = '2024-11-05';

Callers 3

runLocalHandshakeProxyFunction · 0.90
handleInitializeMethod · 0.85

Calls 1

getUpdateNoticeFunction · 0.90

Tested by

no test coverage detected