rlg-mcp

v0.0.23
io.github.sebastienrousseau/rlg-mcp Checked 1 day ago Published 4 days ago

MCP server exposing rlg log streams to LLM agents via JSON-RPC 2.0 over stdio.

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

filter_log

Select rlg records by minimum severity and/or component and render them in any rlg LogFormat. Use this to narrow a log to what matters (e.g. WARN-and-above for one service); use `tail_log` for a raw recent slice and `summarize_errors` when you only need per-component error totals.

ParameterTypeDescription
path *stringFilesystem path to an rlg log file to read.
componentstringKeep only records whose component matches this exact value. Omit to keep all components.
formatstringrlg LogFormat name to render matched records in (e.g. Logfmt, JSON). Defaults to Logfmt.
min_levelstringKeep only records at or above this severity. Omit to keep all levels.

summarize_errors

Group ERROR-and-above rlg records by component and count them, giving a quick error taxonomy for triage. Use this for an at-a-glance failure breakdown; use `filter_log` when you need the underlying records rather than counts.

ParameterTypeDescription
path *stringFilesystem path to an rlg log file to scan for ERROR-and-above records.

tail_log

Return the last N parseable rlg (RustLogs) records from a log file, newest last. Use this to glance at the most recent activity in a log; use `filter_log` when you need to select records by level or component, and `summarize_errors` for an aggregated error count.

ParameterTypeDescription
path *stringFilesystem path to an rlg log file (Logfmt/JSON records, one per line).
nintegerHow many of the most recent parseable records to return (default 100).

tail_logs_glob

Return the last N parseable rlg records across every file matching a glob pattern (e.g. `/var/log/**/*.log`), newest last, optionally filtered to a minimum level. Use this to tail many rotated or per-service log files at once; use `tail_log` for a single file and `summarize_errors` for per-component error totals.

ParameterTypeDescription
glob_pattern *stringGlob pattern matching one or more rlg log files, e.g. `/var/log/**/*.log`.
levelstringKeep only records at or above this severity. Omit to keep all levels.
linesintegerHow many of the most recent parseable records to return across all matched files (default 100).