# MCP Gateway Tests
This directory contains unit and integration tests for the Python MCP Gateway.
The production Workbuddy flow is direct Gateway session access:
GWS_xxx credential.The old authorization-code binding flow is no longer part of the supported runtime.
python -m unittest discover -s tests -p "test_*.py" -v
test_public_gateway_unit.py: public tool routing and Gateway session checks.test_public_server_integration.py: HTTP JSON-RPC behavior.test_gateway_session_store_unit.py: Redis Gateway session storage.test_request_context.py: session extraction from headers, bearer token, and cookies.test_auth_client.py: token refresh/revoke only.test_gateway_runtime.py: local runtime tool registration and token refresh.test_output_presenter.py: safe table/filter/export DTOs, error hiding, and cross-tool value reuse.test_mcp_protocol.py: stdio response shape plus unchanged query_order compatibility.test_public_server.py: public response parity and malformed-input safety.