Skip to content
VS Code

nats trail for VS Code

io.github.solsolettidev/nats-trail

Read-only NATS and JetStream observability: trace a request across streams, rank what is broken.

client:VS Code transport:stdio runtime:npm

Install nats trail in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "nats-trail-api",
      "description": "NATS_TRAIL_API",
      "password": true
    },
    {
      "type": "promptString",
      "id": "nats-trail-token",
      "description": "NATS_TRAIL_TOKEN",
      "password": true
    }
  ],
  "servers": {
    "nats-trail": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@nats-trail/mcp"
      ],
      "env": {
        "NATS_TRAIL_API": "${input:nats-trail-api}",
        "NATS_TRAIL_TOKEN": "${input:nats-trail-token}"
      }
    }
  }
}

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

nats trail in other clients