Documentation Index
Fetch the complete documentation index at: https://docs.mcp-use.com/llms.txt
Use this file to discover all available pages before exploring further.
Configurable logging setup for MCP servers.
InspectorLogFilter
from mcp_use.server.logging.config import InspectorLogFilter
method init
Parameters
Signaturedef __init__(inspector_path: str = "/inspector"):
MCPLogsOnlyFilter
from mcp_use.server.logging.config import MCPLogsOnlyFilter
method init
Initialize a filter.Initialize with the name of the logger which, together with its
children, will have its events allowed through the filter. If no
name is specified, allow every event.Parameters
Signature
setup_logging
function setup_logging
Set up logging configuration for MCP server.from mcp_use.server.logging.config import setup_logging
Parameters
Debug level (0: production, 1: debug+routes, 2: debug+routes+jsonrpc)
Logging level (DEBUG, INFO, WARNING, ERROR)
Whether to show inspector-related access logs (default: False)
Effective inspector route prefix, typically /inspector
When True, suppress all uvicorn access logs (MCP logs are printed
Returns
Uvicorn logging configuration dict
Signaturedef setup_logging(
debug_level: int = 0,
log_level: str = "INFO",
show_inspector_logs: bool = False,
inspector_path: str = "/inspector",
mcp_logs_only: bool = False
):