Back to Home
axite-ai icon

apps-sdk-template

Verified Safe

by axite-ai

Overview

Production-ready starter template for building ChatGPT MCP (Model Context Protocol) apps with Next.js, OAuth 2.1, and optional Stripe subscriptions.

Installation

Run Command
pnpm dev

Environment Variables

  • DATABASE_URL
  • REDIS_URL
  • BETTER_AUTH_SECRET
  • BETTER_AUTH_URL
  • ENCRYPTION_KEY
  • MCP_PORT
  • WEB_URL
  • MCP_SERVER_URL

Security Notes

The template demonstrates robust security practices for a starter: it uses Better Auth OAuth 2.1 for authentication, explicit encryption (`crypto` module) for sensitive data, environment variable validation (`zod`, `dotenv`) to prevent hardcoded secrets, and secure session management with `jose` for JWTs. It also includes CORS and CSP middleware configurations to address common web security concerns. Secrets like `BETTER_AUTH_SECRET` and `ENCRYPTION_KEY` are explicitly required to be generated by the user. No `eval` or other inherently dangerous patterns were identified without clear justification.

Similar Servers

Stats

Interest Score42
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars1
Forks0
Last Update2025-12-06

Tags

MCPChatGPTNext.jsOAuthStripeAI-native