Skip to content

Conversation

@microchipgnu
Copy link
Owner

Add header-based control to the MCP proxy server to allow clients to explicitly manage authentication, auto-payment, and x402 error handling.

This enables clients like the JS SDK CLI and browser-based wallets to specify how the /mcp proxy should handle session verification (API key, MCP auth, or none), whether to engage the x402 auto-payment hook, and if x402 errors should result in an HTTP 420 status code for easier client-side processing. This provides a flexible control plane for diverse client needs.


Open in Cursor Open in Web

Adds headers to control MCP proxy behavior like auth mode, autopay, and error handling.

Co-authored-by: microchipgnu <microchipgnu@gmail.com>
@cursor
Copy link

cursor bot commented Oct 17, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Oct 17, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mcpay-api2-v2 Ready Ready Preview Comment Oct 17, 2025 7:54pm
mcpay-app-v2 Ready Ready Preview Comment Oct 17, 2025 7:54pm
mcpay-docs-v2 Ready Ready Preview Comment Oct 17, 2025 7:54pm
mcpay-facilitator-v2 Ready Ready Preview Comment Oct 17, 2025 7:54pm
mcpay-mcp-data Ready Ready Preview Comment Oct 17, 2025 7:54pm
mcpay-mcp-v2 Ready Ready Preview Comment Oct 17, 2025 7:54pm
mcpay-mcp2-v2 Ready Ready Preview Comment Oct 17, 2025 7:54pm
mcpay-tech-dev Error Error Oct 17, 2025 7:54pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants