Major additions: - Territory manager system with application workflow - Custom pricing and page builder with Craft.js - Enhanced Stripe Connect onboarding - CodeReadr QR scanning integration - Kiosk mode for venue sales - Super admin dashboard and analytics - MCP integration for AI-powered operations Infrastructure improvements: - Centralized API client and routing system - Enhanced authentication with organization context - Comprehensive theme management system - Advanced event management with custom tabs - Performance monitoring and accessibility features Database schema updates: - Territory management tables - Custom pages and pricing structures - Kiosk PIN system - Enhanced organization profiles - CodeReadr integration tables 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
4.9 KiB
Stripe MCP (Model Context Protocol) Setup
This project includes Stripe MCP integration for AI-powered Stripe operations through Claude Code and other AI agents.
What is Stripe MCP?
The Stripe Model Context Protocol (MCP) defines a set of tools that AI agents can use to:
- Interact with the Stripe API
- Search Stripe's knowledge base and documentation
- Automate payment processing tasks
- Manage customers, products, and subscriptions
- Handle refunds and disputes
Quick Start
1. Environment Setup
Ensure your .env file contains your Stripe secret key:
STRIPE_SECRET_KEY=sk_test_... # or sk_live_... for production
2. Run Stripe MCP Server
# Start the MCP server with all available tools
npm run mcp:stripe
# Or with debugging interface
npm run mcp:stripe:debug
3. Claude Desktop Configuration
Copy the provided claude_desktop_config.json to your Claude Desktop configuration directory:
macOS:
cp claude_desktop_config.json ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows:
copy claude_desktop_config.json %APPDATA%\Claude\claude_desktop_config.json
Linux:
cp claude_desktop_config.json ~/.config/claude/claude_desktop_config.json
Then update the configuration with your actual Stripe secret key.
Available MCP Tools
The Stripe MCP server provides these tool categories:
Customer Management
customers.create- Create new customerscustomers.read- Retrieve customer informationcustomers.update- Update customer detailscustomers.delete- Delete customers
Payment Processing
payment_intents.create- Create payment intentspayment_intents.confirm- Confirm paymentspayment_intents.cancel- Cancel paymentscharges.capture- Capture authorized charges
Product & Pricing
products.create- Create productsproducts.read- Retrieve product informationprices.create- Create pricing tiersprices.read- Retrieve pricing information
Subscription Management
subscriptions.create- Create subscriptionssubscriptions.read- Retrieve subscription detailssubscriptions.update- Update subscriptionssubscriptions.cancel- Cancel subscriptions
Financial Operations
refunds.create- Process refundsrefunds.read- Retrieve refund informationdisputes.read- Review disputespayouts.read- Check payout status
Custom Tool Selection
To use specific tools only:
npx @stripe/mcp --tools=customers.create,customers.read,products.create --api-key=$STRIPE_SECRET_KEY
Stripe Connect Account
For Stripe Connect operations:
npx @stripe/mcp --tools=all --api-key=$STRIPE_SECRET_KEY --stripe-account=CONNECTED_ACCOUNT_ID
Integration with BCT Platform
The MCP integration enhances the Black Canyon Tickets platform by enabling:
- AI-Powered Customer Support: Automatically handle customer inquiries about payments and refunds
- Intelligent Analytics: Generate insights from payment and subscription data
- Automated Dispute Resolution: Handle disputes with AI assistance
- Smart Subscription Management: Optimize subscription plans based on usage patterns
- Enhanced Event Management: AI-assisted pricing and capacity optimization
Security Considerations
- Never commit your actual Stripe secret keys to version control
- Use test keys during development
- Ensure proper environment variable configuration
- The MCP server respects all Stripe API security measures
- All operations are logged and auditable
Debugging
Use the MCP Inspector for debugging:
npm run mcp:stripe:debug
This opens a web interface showing:
- Available tools and their schemas
- Real-time request/response logs
- Error messages and stack traces
- Performance metrics
Troubleshooting
Common Issues
-
"Could not connect to MCP server"
- Verify your Stripe secret key is correct
- Check that the environment variable is properly set
- Ensure npx can access @stripe/mcp package
-
"Tool not found"
- Verify the tool name matches exactly
- Check if you're using the correct tool subset
- Ensure the MCP server started successfully
-
"API key invalid"
- Confirm you're using the correct environment (test vs live)
- Verify the API key has necessary permissions
- Check for typos in the environment variable
Logs
MCP server logs are available in the Claude Desktop application logs. Check:
- macOS:
~/Library/Logs/Claude/ - Windows:
%LOCALAPPDATA%\Claude\logs\ - Linux:
~/.local/share/claude/logs/
Next Steps
- Configure Claude Desktop with your Stripe credentials
- Test the MCP integration with simple customer operations
- Explore AI-powered payment analytics
- Implement automated customer support workflows
- Integrate with the BCT platform's existing Stripe Connect setup
For more information, see the Stripe MCP Documentation.