{
  "protocolVersion": "2025-11-25",
  "serverInfo": {
    "name": "cipherhouse-btc-nostr-guard",
    "version": "1.0.0",
    "license": "MIT"
  },
  "tools": [
    {
      "name": "verify_psbt_privacy_fees",
      "description": "Parse a BIP-174 base64/hex Bitcoin PSBT locally (zero dependencies) and score fee-traps, dust outputs, BIP-125 RBF, address reuse, and change-output privacy leaks.",
      "inputSchema": {
        "type": "object",
        "required": [
          "psbt"
        ],
        "properties": {
          "psbt": {
            "type": "string",
            "description": "Base64 or hex encoded BIP-174 PSBT string."
          },
          "network": {
            "type": "string",
            "enum": [
              "mainnet",
              "testnet",
              "signet"
            ],
            "default": "mainnet"
          },
          "fetchLiveFees": {
            "type": "boolean",
            "default": true,
            "description": "Compare against live mempool.space recommended fees."
          }
        }
      }
    },
    {
      "name": "get_bitcoin_recommended_fees",
      "description": "Fetch live Bitcoin mainnet recommended fee rates (sat/vB) and chain tip height from mempool.space.",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "inspect_nostr_relay_nip11",
      "description": "Fetch and audit a Nostr relay's NIP-11 metadata, round-trip latency, CORS headers, supported NIPs, and anti-spam controls (NIP-13 PoW, NIP-42 AUTH, payment/write gates).",
      "inputSchema": {
        "type": "object",
        "required": [
          "relay"
        ],
        "properties": {
          "relay": {
            "type": "string",
            "description": "Nostr relay URL (e.g. wss://relay.damus.io)."
          }
        }
      }
    }
  ]
}