Log Detective MCP

v0.7.0
io.github.fedora-copr/logdetective-mcp Checked 22 hours ago Published 1 month ago

MCP server providing log snippet and Python traceback extraction tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

extract_log_snippets

Extract representative log snippets using Drain3 clustering. Analyzes log text by chunking it into logical messages, clustering similar messages using the Drain algorithm, and returning one representative snippet per cluster. Exactly one of log_text, log_path, or log_url must be provided. Downloaded inputs are limited to 100 MB. Compressed files (.gz, .bz2, .xz, .zip, .tar, .tar.gz, .tar.bz2, .tar.xz) are decompressed transparently. Archives must contain exactly one file. Compression ratios above 100:1 are rejected. Args: log_text: Raw log text t…

ParameterTypeDescription
contextintegerNumber of surrounding lines to include.
log_pathstring
log_textstring
log_urlstring
max_clustersinteger
max_snippet_leninteger
skip_patterns

extract_python_tracebacks

Extract Python tracebacks using specialized heuristic. Analyzes log text and extracts unbroken Python tracebacks. Traces are truncated to `max_traceback_len` characters. Exactly one of log_text, log_path, or log_url must be provided. Downloaded inputs are limited to 100 MB. Compressed files (.gz, .bz2, .xz, .zip, .tar, .tar.gz, .tar.bz2, .tar.xz) are decompressed transparently. Archives must contain exactly one file. Compression ratios above 100:1 are rejected. Args: log_text: Raw log text to analyze. log_path: Path to a log file on disk.…

ParameterTypeDescription
contextintegerNumber of surrounding lines to include.
log_pathstring
log_textstring
log_urlstring
max_traceback_leninteger
skip_patterns