PYMCP_004_LOGGING_TO_STDERR_BEFORE_DEPS: logging-Konfiguration zwingend auf stderr und vor Dependencies
Severity: must. Bereich: python-mcp.
Regel
Vor dem ersten Import einer Dependency mit eigenen Loggern (httpx, urllib3, openai, anthropic etc.) MUSS logging.basicConfig(stream=sys.stderr) gerufen werden, damit kein Sub-Logger versehentlich stdout adressiert.
Reflection-Check
check:
reflect:
fields:
- configures_stderr_logging
- configures_logging_before_dependency_import
object: stdio_discipline_profileEvidence
- MCP_SPEC, Model Context Protocol Specification
- PY_LOGGING_DOC, Python logging — Handlers, Streams, Konfiguration