- Run
npm installto regeneratepackage-lock.jsonwith the current dependency set (qrcode,jose,nanoid,x402-mcp,@ai-sdk/react,ai,streamdown,use-stick-to-bottom,react-syntax-highlighter). - Use Node.js
>= 18.17.0locally, then runnpm run lint/npm run buildto ensure type-checking passes with the new routes. - Populate
.env.local(or Vercel project settings) with the new variables:SIGNED_REDIRECT_SECRET, Upstash creds, and Coinbase facilitator keys. - Validate the
enforceX402result payload matches your facilitator response (payer address, tx hash) and tweak receipt storage if the shape differs. - Adjust
MCP_PRICE_USDCinapp/api/mcp/route.tsif you want a different agent fee.