Skip to content

Commit 94f3908

Browse files
authored
Merge pull request #5 from ShenSeanChen/mcp-integration
adding mcp
2 parents 51c8e00 + a8b59c9 commit 94f3908

File tree

6 files changed

+1477
-22
lines changed

6 files changed

+1477
-22
lines changed

.cursor/mcp.json.example

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"mcpServers": {
3+
"stripe": {
4+
"command": "npx",
5+
"args": [
6+
"-y",
7+
"@stripe/mcp"
8+
],
9+
"env": {
10+
"STRIPE_SECRET_KEY": "your_stripe_test_key_here"
11+
}
12+
},
13+
"supabase": {
14+
"command": "npx",
15+
"args": [
16+
"-y",
17+
"@supabase/mcp-server-supabase@latest",
18+
"--access-token",
19+
"your_supabase_access_token_here"
20+
]
21+
},
22+
"github": {
23+
"command": "docker",
24+
"args": [
25+
"run",
26+
"-i",
27+
"--rm",
28+
"-e",
29+
"GITHUB_PERSONAL_ACCESS_TOKEN",
30+
"ghcr.io/github/github-mcp-server"
31+
],
32+
"env": {
33+
"GITHUB_PERSONAL_ACCESS_TOKEN": "your_github_personal_access_token_here"
34+
}
35+
}
36+
}
37+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,6 @@ logs
7272
# Cache directories
7373
.cache/
7474
.next/cache/
75+
76+
# Cursor
77+
.cursor/mcp.json

app/api/stripe/webhook/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const POST = withCors(async function POST(request: NextRequest) {
8888

8989
const event = stripe.webhooks.constructEvent(body, sig, webhookSecret);
9090
logWebhookEvent(`Event received: ${event.type}`, event.data.object);
91-
91+
9292
switch (event.type) {
9393
case 'checkout.session.completed': {
9494
const session = event.data.object as Stripe.Checkout.Session;

0 commit comments

Comments
 (0)