NestLens

v0.21.3
io.github.mogretici/nestlens Checked 4 hours ago Published 1 hour ago

Lets an agent read what NestLens recorded in a NestJS app: requests, queries, exceptions and logs.

Values you need

VariableWhat it is
NESTLENS_HEADERSoptional secret Headers sent with every request, as JSON, when NestLens wants credentials.
NESTLENS_MCP_ALLOW_WRITEoptional Enable the tools that change data: clear, prune, pause, resolve, tags, replay. Default: false

npm (npx) verified

Requires Node.js 18+

Run in a terminal
claude mcp add nestlens -- npx -y nestlens-mcp@0.21.1 --url http://localhost:3000/nestlens
Add to claude_desktop_config.json
{
  "mcpServers": {
    "nestlens": {
      "args": [
        "-y",
        "nestlens-mcp@0.21.1",
        "--url",
        "http://localhost:3000/nestlens"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "nestlens": {
      "args": [
        "-y",
        "nestlens-mcp@0.21.1",
        "--url",
        "http://localhost:3000/nestlens"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "nestlens": {
      "args": [
        "-y",
        "nestlens-mcp@0.21.1",
        "--url",
        "http://localhost:3000/nestlens"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.nestlens]
command = "npx"
args = ["-y", "nestlens-mcp@0.21.1", "--url", "http://localhost:3000/nestlens"]

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: nestlens_list_tools, nestlens_call_tool.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json