Skip to content
Gemini CLI

NestLens for Gemini CLI

io.github.mogretici/nestlens

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

client:Gemini CLI transport:stdio runtime:npm

Install NestLens in Gemini CLI

~/.gemini/settings.json · windows: %USERPROFILE%\.gemini\settings.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "nestlens": {
      "command": "npx",
      "args": [
        "-y",
        "nestlens-mcp"
      ],
      "env": {
        "NESTLENS_HEADERS": "<NESTLENS_HEADERS>",
        "NESTLENS_MCP_ALLOW_WRITE": "<NESTLENS_MCP_ALLOW_WRITE>"
      }
    }
  }
}

Gemini expands $VAR and ${VAR} inside env values, so a secret can live in your shell rather than this file. Gemini CLI docs

NestLens in other clients