View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/server/logging/middleware.py
MCP logging middleware API Documentation
from mcp_use.server.logging.middleware import MCPLoggingMiddleware
method initSignatureParameter valueEnable debug/verbose modeFile pathBoolean flag
def __init__(app, debug_level: int = 0, mcp_path: str = "/mcp", pretty_print_jsonrpc: bool = False):
Was this page helpful?