Skip to content

Commit 9c3b9ca

Browse files
committed
chore: improve x402 discovery information
1 parent 258b5a5 commit 9c3b9ca

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/x402.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,14 @@ export async function handleX402(
279279
inputSchema: {
280280
properties: {
281281
url: { type: "string", format: "uri", description: "Upstream URL to proxy" },
282-
nwc_url: { type: "string", description: "Nostr Wallet Connect URL" },
282+
nwc_url: { type: "string", description: "Nostr Wallet Connect URL (NIP-47) used to create the Lightning invoice" },
283283
amount: { type: "integer", minimum: 1, description: "Amount in satoshis" },
284284
},
285285
required: ["url", "nwc_url", "amount"],
286286
},
287+
output: {
288+
schema: { description: "The upstream HTTP response body, forwarded verbatim after payment is verified" },
289+
},
287290
});
288291

289292
const baseRequirements: PaymentRequirements = {

0 commit comments

Comments
 (0)