You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Composing a third-party spend/policy gate with examples/x402 and x402-mcp?
#2307
Separately, npm affixio@1.3.3 exports x402BeforePay and mcpToolGate (dist/agentic-pay-kit.d.ts). Spend/policy checks only. Not an x402 settlement impl. Not integrated with Agents today.
Ask
For builders who want a third-party spend/policy check before pay on those paths, where should that sit?
Beside the Hono paymentMiddleware / fetch wrapper in examples/x402
Beside paidTool() / the client confirmation flow in examples/x402-mcp
Somewhere else you prefer vendors to plug in
Discovery only. Happy to follow your preferred pattern.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Context
Your README points ideas to Discussions (no external PRs). Looking at:
examples/x402— HTTP route gating via@x402/hono+ agentwrapFetchWithPaymentexamples/x402-mcp— paid MCP tools viawithX402/withX402Client/paidTool()Separately, npm
affixio@1.3.3exportsx402BeforePayandmcpToolGate(dist/agentic-pay-kit.d.ts). Spend/policy checks only. Not an x402 settlement impl. Not integrated with Agents today.Ask
For builders who want a third-party spend/policy check before pay on those paths, where should that sit?
paymentMiddleware/ fetch wrapper inexamples/x402paidTool()/ the client confirmation flow inexamples/x402-mcpDiscovery only. Happy to follow your preferred pattern.
All reactions