COVERAGE_GUIDE.md 823 B

# MCP Gateway Coverage Guide

Use this guide to run coverage for the current direct Gateway session implementation.

Run Coverage

python run_coverage.py
python run_coverage.py --open

Manual form:

python -m coverage run -m unittest discover -s tests -p "test_*.py"
python -m coverage report -m --fail-under=100
python -m coverage html

Current Scope

Coverage should focus on:

  • Public Gateway request handling.
  • Redis Gateway session storage.
  • Request-scoped API forwarding.
  • Token refresh/revoke compatibility.
  • Query tool registration and JSON-RPC behavior.
  • OutputPresenter field hiding, fail-closed errors, cross-tool values, and legacy query_order behavior.

The retired authorization-code binding files and tools should not appear in the runtime coverage list.