Use the /fetch adapter in a runtime that supports the Fetch API:
Install: npm install @forgeintel/sdk@0.5.0-beta.7. Supply secrets through your runtime’s server-side configuration; process.env above is a Node example. Keep the existing x402 logic inside existingHandler. You can also call forge.handle(request, next) for each request. If the framework needs different request or response hooks, use the /core adapter. Check the connection.