Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .well-known/x402.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "ChromeDevTools/chrome-devtools-mcp",
"description": "MCP server for Chrome DevTools",
"accepts": [
{
"network": "eip155:8453",
"asset": "USDC",
"address": "YOUR_WALLET_ADDRESS"
}
],
"resources": []
}
16 changes: 16 additions & 0 deletions x402-middleware-example.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// x402 payment check - framework-agnostic
// Before responding to API requests, check for the x-payment header.
// If missing, return HTTP 402 with your payment requirements:
//
// HTTP/1.1 402 Payment Required
// Content-Type: application/json
//
// {
// "accepts": [{ "network": "eip155:8453", "asset": "USDC", "address": "YOUR_WALLET" }],
// "price": "0.01"
// }
//
// If present, verify the payment signature with the facilitator:
// POST https://facilitator.402.bot/verify
//
// Full guide: https://api.402.bot/mcp/setup
Loading