rlg-mcp 0.0.9

Model Context Protocol (MCP) server exposing rlg log streams as tools to LLM agents (Claude Desktop, Cursor, mcp.run). Tools: `tail_log`, `filter_log`, `summarize_errors`. Speaks JSON-RPC 2.0 over stdio.
Documentation

Install

cargo install rlg-mcp

Tools

Tool Inputs Returns
tail_log path, optional n (default 100) Last n parseable records, rendered in Logfmt.
filter_log path, optional min_level, component, format Records matching every supplied filter, in the chosen LogFormat.
summarize_errors path JSON map of component → error_count for ERROR-and-above records.

Wire format

rlg-mcp speaks the MCP stdio transport — JSON-RPC 2.0, one request per line on stdin, one response per line on stdout. The protocol revision is 2025-06-18.

Quick smoke test

printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | rlg-mcp

Client configurations

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "rlg": {
      "command": "rlg-mcp"
    }
  }
}

Cursor

.cursor/mcp.json in the workspace root:

{
  "mcpServers": {
    "rlg": { "command": "rlg-mcp" }
  }
}

mcp.run

Use the stdio server registration; supply rlg-mcp as the executable and no arguments.

Limitations

  • v0.0.9 only parses the canonical LogFormat::JSON input shape. MCP / OTLP / ECS / GELF transport-envelope parsing is tracked under crates/rlg-cli/doc/INPUT-FORMATS.md and lands incrementally — when it does, rlg-mcp picks the new input formats up automatically through rlg-cli's shared parser.
  • No SSE / HTTP transport yet — stdio only.

License

Dual-licensed under Apache 2.0 or MIT, at your option.