Coverage report: 60%

Files Functions Classes

coverage.py v7.9.1, created at 2025-06-22 16:34 +0100

File statements missing excluded branches partial coverage
mcpgateway/__init__.py 8 0 0 0 0 100%
mcpgateway/admin.py 335 33 0 6 0 89%
mcpgateway/cache/__init__.py 3 0 0 0 0 100%
mcpgateway/cache/resource_cache.py 56 27 0 10 2 47%
mcpgateway/cache/session_registry.py 416 304 0 138 28 26%
mcpgateway/cli.py 29 0 2 10 1 97%
mcpgateway/config.py 189 59 0 36 6 62%
mcpgateway/db.py 351 98 2 32 2 67%
mcpgateway/federation/__init__.py 4 0 0 0 0 100%
mcpgateway/federation/discovery.py 176 93 0 40 6 44%
mcpgateway/federation/forward.py 122 50 0 38 9 53%
mcpgateway/federation/manager.py 187 99 0 32 8 44%
mcpgateway/handlers/__init__.py 2 0 0 0 0 100%
mcpgateway/handlers/sampling.py 87 15 0 44 13 77%
mcpgateway/main.py 722 413 0 84 21 41%
mcpgateway/schemas.py 457 95 0 76 11 71%
mcpgateway/services/__init__.py 5 0 0 0 0 100%
mcpgateway/services/completion_service.py 70 6 0 26 2 92%
mcpgateway/services/gateway_service.py 389 191 0 110 18 46%
mcpgateway/services/logging_service.py 55 5 0 10 0 92%
mcpgateway/services/prompt_service.py 270 86 0 72 18 63%
mcpgateway/services/resource_service.py 302 196 0 84 7 30%
mcpgateway/services/root_service.py 69 6 0 10 0 92%
mcpgateway/services/server_service.py 234 65 0 72 23 71%
mcpgateway/services/tool_service.py 321 136 0 84 21 55%
mcpgateway/translate.py 158 30 5 20 4 80%
mcpgateway/transports/__init__.py 5 0 0 0 0 100%
mcpgateway/transports/base.py 13 0 0 0 0 100%
mcpgateway/transports/sse_transport.py 77 15 0 10 4 78%
mcpgateway/transports/stdio_transport.py 55 17 0 8 1 71%
mcpgateway/transports/streamablehttp_transport.py 142 46 0 26 4 67%
mcpgateway/transports/websocket_transport.py 71 16 0 16 5 74%
mcpgateway/types.py 211 1 0 2 1 99%
mcpgateway/utils/create_jwt_token.py 54 0 27 10 0 100%
mcpgateway/utils/services_auth.py 33 0 0 6 0 100%
mcpgateway/utils/verify_credentials.py 45 1 0 12 2 95%
mcpgateway/validation/__init__.py 2 0 0 0 0 100%
mcpgateway/validation/jsonrpc.py 58 9 0 34 9 80%
mcpgateway/version.py 126 89 0 16 0 26%
mcpgateway/wrapper.py 217 29 11 50 9 86%
Total 6126 2230 47 1224 235 60%

No items found using the specified filter.