Skip to content
VS Code

bray for VS Code

dev.forgesworn/bray

Trust-aware Nostr for AI agents -- 235 tools covering social, DMs, zaps, trust, and identity

client:VS Code transport:stdio runtime:npm

Install bray in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "nostr-secret-key",
      "description": "NOSTR_SECRET_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "nostr-relays",
      "description": "NOSTR_RELAYS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "nwc-uri",
      "description": "NWC_URI",
      "password": true
    }
  ],
  "servers": {
    "bray": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "nostr-bray"
      ],
      "env": {
        "NOSTR_SECRET_KEY": "${input:nostr-secret-key}",
        "NOSTR_RELAYS": "${input:nostr-relays}",
        "NWC_URI": "${input:nwc-uri}"
      }
    }
  }
}

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

bray in other clients