rudow-local-mcp
v0.1.3Local-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.
| Parameter | Type | Description |
|---|---|---|
before_iso | string | Only entries before this ISO timestamp (cursor pagination). |
level | string | Filter by severity level. |
limit | integer | Max rows to return (default 50, max 200). |
minutes | integer | Window size in minutes (default 60). Measured back from the newest entry in the loaded files. |
source | string | Source name from list_sources, e.g. 'app'. Omit to use all sources. |
text | string | Case-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.
| Parameter | Type | Description |
|---|---|---|
bucket_minutes | integer | Bucket width in minutes (default 5). |
limit | integer | Total max rows returned (default 400). |
minutes | integer | Window size in minutes (default 60). |
per_bucket | integer | Max rows per bucket (default 20). |
source | string | Source name from list_sources, e.g. 'app'. Omit to use all sources. |
text | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
group_by * | string | Dimension to group counts by. |
minutes | integer | Window size in minutes (default 60). Measured back from the newest entry in the loaded files. |
source | string | Source 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.
| Parameter | Type | Description |
|---|---|---|
minutes | integer | Window size in minutes (default 60). Measured back from the newest entry in the loaded files. |
source | string | Source 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.
| Parameter | Type | Description |
|---|---|---|
minutes | integer | Window size in minutes (default 60). Measured back from the newest entry in the loaded files. |
source | string | Source name from list_sources, e.g. 'app'. Omit to use all sources. |
metrics_trends
Trends section: request volume, error rate, and latency over time in bucketed intervals. Call this to understand how performance has changed and spot degradation or recovery patterns.
| Parameter | Type | Description |
|---|---|---|
minutes | integer | Window size in minutes (default 60). Measured back from the newest entry in the loaded files. |
source | string | Source 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.
| Parameter | Type | Description |
|---|---|---|
minutes | integer | Window size in minutes (default 60). Measured back from the newest entry in the loaded files. |
source | string | Source 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.
| Parameter | Type | Description |
|---|---|---|
minutes | integer | Window size in minutes (default 60). Measured back from the newest entry in the loaded files. |
source | string | Source 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.
| Parameter | Type | Description |
|---|---|---|
minutes | integer | Window size in minutes (default 60). Measured back from the newest entry in the loaded files. |
source | string | Source 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.
| Parameter | Type | Description |
|---|---|---|
route * | string | The route path to drill down into, e.g. '/api/checkout'. |
minutes | integer | Window size in minutes (default 60). Measured back from the newest entry in the loaded files. |
source | string | Source 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.
| Parameter | Type | Description |
|---|---|---|
around_iso * | string | ISO-8601 timestamp to center the window on. |
n | integer | Entries on each side (default 10, max 50). |
source | string | Source 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.
| Parameter | Type | Description |
|---|---|---|
source | string | Source name from list_sources, e.g. 'app'. Omit to use all sources. |
status | string | Locally 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.
| Parameter | Type | Description |
|---|---|---|
incident_id * | string | |
source | string | Source name from list_sources, e.g. 'app'. Omit to use all sources. |