Purpose
-------
Phase 5C tests for :class:`oct.mcp.metrics.McpMetrics` (Prometheus
instrumentation).
Responsibilities
----------------
- Verify no-op behaviour when ``prometheus_client`` is not installed.
- Verify ``record_call`` increments counters and records histogram.
- Verify ``record_rate_limit_hit`` and ``record_validation_failure``
counters.
- Verify ``start_server`` launches a background daemon thread.
- Verify end-to-end metric recording through ``_run_tool``.
Diagnostics
-----------
Domain: MCP-TESTS
Levels:
L2 — test lifecycle
L3 — assertion details
L4 — deep tracing
Contracts
---------
- Tests mock ``prometheus_client`` imports; no real metrics server is
started.