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
+3 -2
View File
@@ -346,11 +346,12 @@ describe('Shared MCP daemon (issue #411)', () => {
servers.push(server);
sendInitialize(server.child, `file://${tempDir}`, 1);
// Despite the mismatched daemon, the client still gets an initialize
// response — the proxy refuses to attach and falls back to direct mode.
// response — the proxy answers the handshake locally and, refusing to
// attach across the version mismatch, serves the session in-process.
const resp = await waitFor(() => findResponse(server.stdout, 1), 10000);
expect(resp.result.serverInfo.name).toBe('codegraph');
await waitFor(
() => server.stderr.some((l) => l.includes('falling back to direct mode')),
() => server.stderr.some((l) => l.includes('serving this session in-process')),
6000,
);
} finally {