rudow-local-mcp

v0.1.3
rudow-local-mcp Checked 20 hours ago Published 2 days ago

Local-first MCP server that lets your AI coding agent read your own log files.

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

list_sources

List the configured log files: name, path, format, entry count and time range. Call this first to get a source name to pass to the other tools.

query_logs

Fetch matching log entries, newest first. Use to inspect specific errors or recent activity. Call this when you need the actual log lines.

ParameterTypeDescription
before_isostringOnly entries before this ISO timestamp (cursor pagination).
levelstringFilter by severity level.
limitintegerMax rows to return (default 50, max 200).
minutesintegerWindow size in minutes (default 60). Measured back from the newest entry in the loaded files.
sourcestringSource name from list_sources, e.g. 'app'. Omit to use all sources.
textstringCase-insensitive substring match on the message.

query_logs_batched

Fetch a time-bucketed sample over a larger window. Useful when logs are high-volume: returns a balanced slice across time buckets instead of only the very latest lines.

ParameterTypeDescription
bucket_minutesintegerBucket width in minutes (default 5).
limitintegerTotal max rows returned (default 400).
minutesintegerWindow size in minutes (default 60).
per_bucketintegerMax rows per bucket (default 20).
sourcestringSource name from list_sources, e.g. 'app'. Omit to use all sources.
textstringOptional substring filter across message and raw line.

aggregate_logs

Count log entries grouped by a dimension over a recent window. Call this to spot trends, e.g. error rate or status-code distribution.

ParameterTypeDescription
group_by *stringDimension to group counts by.
minutesintegerWindow size in minutes (default 60). Measured back from the newest entry in the loaded files.
sourcestringSource name from list_sources, e.g. 'app'. Omit to use all sources.

metrics_summary

Computed health overview from the loaded logs: volume, error rate, average and p95 latency where parseable, top routes by traffic and errors, and top error groups. Call this to answer how the app is performing or whether it is healthy.

ParameterTypeDescription
minutesintegerWindow size in minutes (default 60). Measured back from the newest entry in the loaded files.
sourcestringSource name from list_sources, e.g. 'app'. Omit to use all sources.

metrics_overview

Overview section of metrics: total requests, error count and rate, average and p95 latency, and top error routes. Use this for a quick health snapshot focused on request volume and performance.

ParameterTypeDescription
minutesintegerWindow size in minutes (default 60). Measured back from the newest entry in the loaded files.
sourcestringSource name from list_sources, e.g. 'app'. Omit to use all sources.

metrics_distributions

Response time distribution: histogram showing the spread of latencies (p50, p75, p90, p95, p99). Use this to understand if latency is consistent or if there are outliers and slow queries.

ParameterTypeDescription
minutesintegerWindow size in minutes (default 60). Measured back from the newest entry in the loaded files.
sourcestringSource name from list_sources, e.g. 'app'. Omit to use all sources.

metrics_routes

Top routes by request volume and error count. Shows which endpoints are getting the most traffic and which are failing most often. Use this to identify hot spots and problem areas.

ParameterTypeDescription
minutesintegerWindow size in minutes (default 60). Measured back from the newest entry in the loaded files.
sourcestringSource name from list_sources, e.g. 'app'. Omit to use all sources.

metrics_levels

Distribution of log levels: count and percentage of debug, info, warn, error, and fatal entries. Use this to understand the severity profile of logs and if error rates are elevated.

ParameterTypeDescription
minutesintegerWindow size in minutes (default 60). Measured back from the newest entry in the loaded files.
sourcestringSource name from list_sources, e.g. 'app'. Omit to use all sources.

route_drilldown

Deep dive into a specific route: request count, error rate, average and p95 latency, errors by status code. Call this after seeing a problematic route in metrics_routes to get details.

ParameterTypeDescription
route *stringThe route path to drill down into, e.g. '/api/checkout'.
minutesintegerWindow size in minutes (default 60). Measured back from the newest entry in the loaded files.
sourcestringSource name from list_sources, e.g. 'app'. Omit to use all sources.

fetch_window

Fetch the log entries immediately before and after a timestamp, to see the context around a specific event.

ParameterTypeDescription
around_iso *stringISO-8601 timestamp to center the window on.
nintegerEntries on each side (default 10, max 50).
sourcestringSource name from list_sources, e.g. 'app'. Omit to use all sources.

list_incidents

List incidents detected in the local log files (newest first). Detection is deterministic: an error-rate spike against the surrounding baseline, with new error strings, latency rise and traffic drop as supporting signals. Use to answer what broke recently.

ParameterTypeDescription
sourcestringSource name from list_sources, e.g. 'app'. Omit to use all sources.
statusstringLocally detected incidents are always open; 'resolved' returns none.

get_incident

Full detail of one incident: why it fired (signals with observed vs usual), top error groups, timeline.

ParameterTypeDescription
incident_id *string
sourcestringSource name from list_sources, e.g. 'app'. Omit to use all sources.