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

Function initializeInstructions

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

Source from the content-addressed store, hash-verified

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