Two MCP enumeration paths in readActiveMcpServers now pass kind='mcp' to estimateTokens with optional toolCount derived from def.tools array (populated when callers cache MCP discovery — Step 14 wires that up). Hook callers keep kind='item' (no schema overhead). Visible effect: every active MCP server jumps from estimatedTokens=15 to >= 500 (or higher when toolCount is known). The whats-active output and TOK hotspots now reflect actual MCP cost. Tests: assert mcpServers[].estimatedTokens >= 500 in fixture. |
||
|---|---|---|
| .. | ||
| active-config-reader.test.mjs | ||
| baseline.test.mjs | ||
| diff-engine.test.mjs | ||
| file-discovery.test.mjs | ||
| output.test.mjs | ||
| report-generator.test.mjs | ||
| scoring.test.mjs | ||
| severity.test.mjs | ||
| string-utils.test.mjs | ||
| suppression.test.mjs | ||
| yaml-parser.test.mjs | ||