feat(mcp): trace relevance + closure-collection + god-file rendering + cold-start handshake (#580)

Trace endpoint relevance (overloaded names resolve to the real implementation instead of an empty protocol/delegate stub), Swift closure-collection synthesizer, multi-phase god-file explore rendering, and serve --mcp cold-start handshake sped ~811ms→~90ms (proxy answers initialize/tools-list locally). Full suite green (1090 pass).
This commit is contained in:
Colby Mchenry
2026-05-31 18:41:41 -05:00
committed by GitHub
parent b026e64b41
commit 3a1ddf41cd
12 changed files with 756 additions and 92 deletions
+4 -2
View File
@@ -23,13 +23,15 @@ import { CodeGraphPackageVersion } from './version';
* MCP Server Info — kept on the session because some clients log it. The
* version tracks the real package version (was a hard-coded '0.1.0').
*/
const SERVER_INFO = {
// Exported so the proxy can answer `initialize` locally with the IDENTICAL
// payload the daemon would send — no drift between the two handshake paths.
export const SERVER_INFO = {
name: 'codegraph',
version: CodeGraphPackageVersion,
};
/** MCP Protocol Version (latest the server claims). */
const PROTOCOL_VERSION = '2024-11-05';
export const PROTOCOL_VERSION = '2024-11-05';
/**
* How long to wait for the client's `roots/list` response before giving up