Files
AutopilotMonitor/.mcp.json
T
Oliver Kieselbach a56ffa68df chore: daily-review follow-ups (MCP caps, embed norm assert, projection tests, Classify guard)
Addresses four items from the daily code review, plus in-flight Web work and
the .mcp.json endpoint switch to the custom domain.

Review follow-ups:
- MCP access-guard: bound BOTH rate-limiter maps (preAuthBuckets + rateBuckets)
  via boundedSet on insert (new MAX_RATE_BUCKET_ENTRIES, default 10_000). They
  previously only shrank via the 5-min reaper, so a distinct-key flood could grow
  them unbounded between passes. Adds getRateBucketSizes() + a flood-cap test.
- MCP vector-search: assertUnitNorm() in embed()/index() (eps=1e-3, fail-loud).
  cosineSimilarity is a bare dot product that assumes L2-unit vectors; a violated
  normalize:true contract would otherwise silently corrupt ranking. +unit tests.
- Backend: equivalence tests for the bcd307d SessionsIndex projections, after the
  b417963 pattern. Extract MetricsSummaryProjection/QuickSearchProjection named
  arrays + testable TallyMetricsSummaryRow/ReadQuickSearchIdentity helpers; make
  BuildQuickSearchResult internal. New Metrics/QuickSearch ProjectionEquivalence
  tests derive their keep-set from the production array (bite-verified: dropping
  Status/DeviceName fails them).
- Agent V2 ModernDeploymentTracker: enforce the Classify() call-once invariant
  with a DEBUG-only [ThreadStatic] permit guard. Classify mutates the harmless-
  rollup counter, so a double-call double-counts; the invariant was comment-only.
  ProcessRecord/ProcessEvent issue one permit before their single call; Classify
  asserts + consumes it. Compiled out in RELEASE -> zero production impact.

Also included (per request):
- .mcp.json: point at https://mcp.autopilotmonitor.com/mcp (custom domain).
- Web useAggregatedAdminScope hook + seed + tests (separate in-flight work).
- Agent buildcounter.txt bumps.

Tests: MCP 338, Backend 2551, V2.Core 1538, Web hooks 31 - all green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-01 15:35:51 +02:00

9 lines
133 B
JSON

{
"mcpServers": {
"autopilot-monitor": {
"type": "http",
"url": "https://mcp.autopilotmonitor.com/mcp"
}
}
}