NestLens
v0.21.3Lets an agent read what NestLens recorded in a NestJS app: requests, queries, exceptions and logs.
Values you need
| Variable | What it is | |
|---|---|---|
NESTLENS_HEADERS | optional secret | Headers sent with every request, as JSON, when NestLens wants credentials. |
NESTLENS_MCP_ALLOW_WRITE | optional | 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/nestlensAdd 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
- 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).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: nestlens_list_tools, nestlens_call_tool.
- 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