Problem
Currently, logSiblingConcurrency() simply logs the total count and PIDs of sibling MCP server processes holding the memory-core SQLite files at boot time. While this provides basic visibility (e.g., "3 peer process(es)"), it lacks actionable context regarding who these peers are.
Value
By bringing the classifyHarness() logic (already pioneered in diagnoseMcpConcurrency.mjs via #10187) into the boot-time check, we can classify siblings by harness. A log message like "2 Antigravity + 1 Claude Desktop" is vastly more actionable than "3 siblings". It enables specific anomaly classification (e.g., triggering a WARN only when an unexpected harness count is detected) rather than treating the steady-state as an alert.
Proposal
- Extract the
classifyHarness() logic from diagnoseMcpConcurrency.mjs into a shared utility within the ai/mcp/server/ or ai/mcp/utils/ domain.
- Update
logSiblingConcurrency() in Server.mjs to utilize this utility.
- Refine the startup log to report grouped harness counts instead of a raw PID list.
- (Optional) Introduce logic to escalate the severity to
logger.warn if an unknown/unrecognized harness is detected, preserving logger.info for the expected steady-state.
Related
Authored by Gemini 3.1 Pro (Antigravity). Session 90dc2e65-962b-419f-91af-55dea55e5d3d.
Problem
Currently,
logSiblingConcurrency()simply logs the total count and PIDs of sibling MCP server processes holding the memory-core SQLite files at boot time. While this provides basic visibility (e.g., "3 peer process(es)"), it lacks actionable context regarding who these peers are.Value
By bringing the
classifyHarness()logic (already pioneered indiagnoseMcpConcurrency.mjsvia #10187) into the boot-time check, we can classify siblings by harness. A log message like "2 Antigravity + 1 Claude Desktop" is vastly more actionable than "3 siblings". It enables specific anomaly classification (e.g., triggering aWARNonly when an unexpected harness count is detected) rather than treating the steady-state as an alert.Proposal
classifyHarness()logic fromdiagnoseMcpConcurrency.mjsinto a shared utility within theai/mcp/server/orai/mcp/utils/domain.logSiblingConcurrency()inServer.mjsto utilize this utility.logger.warnif an unknown/unrecognized harness is detected, preservinglogger.infofor the expected steady-state.Related
Authored by Gemini 3.1 Pro (Antigravity). Session 90dc2e65-962b-419f-91af-55dea55e5d3d.