log-inspector-mcp

v0.4.4
log-inspector-mcp Checked 12 hours ago Published 12 months ago

MCP server for inspecting log files in XDG_RUNTIME_DIR/log

Starts only with mcp<2 (written for an older SDK); the install commands pin it.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add log-inspector-mcp -- uvx --with 'mcp<2' --from log-inspector-mcp==0.4.4 log-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "log-inspector-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "log-inspector-mcp==0.4.4",
        "log-mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "log-inspector-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "log-inspector-mcp==0.4.4",
        "log-mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "log-inspector-mcp": {
      "args": [
        "--with",
        "mcp<2",
        "--from",
        "log-inspector-mcp==0.4.4",
        "log-mcp"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.log-inspector-mcp]
command = "uvx"
args = ["--with", "mcp<2", "--from", "log-inspector-mcp==0.4.4", "log-mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: list_log_files, get_log_content, read_log_paginated, search_log_file, head_log, tail_log, read_log_range, find_errors.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json