Skip to content
VS Code

NestLens for VS Code

io.github.mogretici/nestlens

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

client:VS Code transport:stdio runtime:npm

Install NestLens in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "nestlens-headers",
      "description": "NESTLENS_HEADERS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "nestlens-mcp-allow-write",
      "description": "NESTLENS_MCP_ALLOW_WRITE",
      "password": true
    }
  ],
  "servers": {
    "nestlens": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "nestlens-mcp"
      ],
      "env": {
        "NESTLENS_HEADERS": "${input:nestlens-headers}",
        "NESTLENS_MCP_ALLOW_WRITE": "${input:nestlens-mcp-allow-write}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

NestLens in other clients