Shared utilities for MCP servers, including robust logging, JSON repair, and debug tools with automatic cache clearing.
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"mcp-logger-utils","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# MCP Logger Utils - Enhanced Documentation A comprehensive logging and utility package for MCP (Model Context Protocol) servers with production-ready features. ## Features ### Core Features - 🔍 **Smart Logging** - Automatic truncation of large data structures - 🛡️ **PII Protection** - Automatic detection and redaction of sensitive data - 🔄 **Circular Reference Protection** - Safe logging of complex objects - 📊 **Performance Monitoring** - Track slow operations automatically - 🚦 **Rate Limiting** - Prevent log spam - 🧪 **Testing Utilities** - Capture logs in tests - 🔧 **Debug Tools** - Process management for MCP servers - 🎯 **Error Deduplication** - Avoid repeated error messages - 📝 **Structured Logging** - Add request IDs and context - ⚙️ **Runtime Configuration** - Change settings without restart ## Installation ```bash pip install mcp-logger-utils ``` ## Quick Start ### Basic Usage ```python from mcp_logger_utils import MCPLogger # Create logger instance logger = MCPLogger("my-mcp-server") # Use it like any logger logger.info("Server starting up...") logger.debug("Debug information") logger.success("Operation completed successfully ✅") logger.error("Something went wrong") ``` ### Available Logging Methods All standard loguru methods are available with type hints: ```python logger.trace("Most detailed logging") logger.debug("Debug information") logger.info("General information") logger.success("Success messages ✅") logger.warning("Warning messages") logger.error("Error messages") logger.critical("Critical issues") logger.exception("Log with traceback") ``` ## Enhanced Features ### 1. PII Protection Automatically redact sensitive information: ```python # Enable PII redaction (enabled by default) logger = MCPLogger("my-server", enable_pii_redaction=True) # These will be automatically redacted logger.info("User email: john.doe@example.com") # Logs: "User email: j***@***.***" logger.info("Phone: +1-555-123-4567") # Logs: "Phone: ***-***-**…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.