About Chatgpt App Boilerplate
Chatgpt App Boilerplate is an MCP server published by maskara-ai in the Developer Tools category: repository containing boilerplate code for developing ChatGPT apps. It has been installed 0 times through Conduid.
The repository has 2 stars and 0 forks, with the last commit 8 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues (0) before depending on it in production.
Install
npx chatgpt-app-boilerplateThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Chatgpt App Boilerplate
Powered by Claude · Grounded in docs
Security checks
- ·README presentNot checked yet.
- ·License declaredNot checked yet.
- ·Tests presentNot checked yet.
- ·Dependencies pinnedNot checked yet.
- ·No dynamic code executionNot checked yet.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
README
ChatGPT App Boilerplate
Fast development with Turborepo setup for MCP server and widgets built with React. Easy local testing with Storybook.
Overview
This monorepo provides a boilerplate for building ChatGPT apps with:
- MCP Server: A Model Context Protocol server built with TypeScript and Express
- React Widgets: UI components built with React, Vite, and Tailwind CSS
- Storybook: For easy local testing and component development
Getting Started
Prerequisites
- Node.js 22+
- pnpm (install via
npm install -g pnpmorcorepack enable) - ngrok (for connecting to OpenAI)
Cloning the Repository
git clone git@github.com:maskara-ai/chatgpt-app-boilerplate.git
cd chatgpt-app-boilerplate
Environment Variables
Create a .env file in the root directory with the following variables:
# MCP Server Configuration
CAB_MCP_SERVER_BASE_URL=http://localhost
CAB_MCP_SERVER_PORT=3002
# Optional: Logging
PINO_LOG_LEVEL=info
You can copy from a sample file if available, or create the .env file manually with the variables above.
Installation
pnpm install
Development
Run all apps in development mode:
pnpm dev
This will start:
- MCP server (default:
http://localhost:3002) - Widgets development server with Vite (default:
http://localhost:5173)
Running Individual Apps
MCP Server
cd apps/mcp-server
pnpm dev
The MCP server will start on http://localhost:3002 (or the port specified in the CAB_MCP_SERVER_PORT environment variable).
Use ngrok in order to connect to OpenAI:
ngrok http 3002
Widgets with Storybook (local testing)
cd apps/widgets
pnpm storybook
Storybook will start on http://localhost:6006 for easy local testing and component development.
Chrome Local Testing (Local Network Access)
When testing locally in Chrome, you may encounter restrictions due to Chrome's Local Network Access security feature, because JS and CSS for widgets served under localhost for development.
To enable local network access in Chrome:
- Go to
chrome://flags/#local-network-access-check - Set the flag to "Enabled (Blocking)"
- Restart Chrome
When you visit a site that needs to connect to localhost, Chrome will show a permission prompt: "Look for and connect to any device on your local network." Grant this permission to allow your application to connect to the local MCP server.
Note: This is particularly important when:
- Testing widgets that connect to
localhost:3002 - Using HTTPS pages that need to connect to HTTP localhost endpoints
- Developing features that require local network access
For more details, see the Chrome Local Network Access documentation.
Project Structure
.
├── apps/
│ ├── mcp-server/ # MCP server application
│ └── widgets/ # React widgets application
├── packages/
│ ├── eslint-config/ # Shared ESLint configuration
│ ├── typescript-config/ # Shared TypeScript configuration
└── turbo.json # Turborepo configuration
Technology Stack
- Monorepo: Turborepo
- Package Manager: pnpm
- MCP Server: TypeScript, Express, @modelcontextprotocol/sdk
- Widgets: React 19, Vite, Tailwind CSS, Storybook
- Code Quality: ESLint, Prettier, TypeScript
Deployment - Container Setup
Building the Container
The project includes a Dockerfile for containerized deployment. Important: Environment variables must be provided at build time in order to provide absolute url for static assets like JS and CSS (React).
Build the container using Podman (or Docker):
podman build --env CAB_MCP_SERVER_BASE_URL=http://localhost --env CAB_MCP_SERVER_PORT=3002 -t localhost/mcp-server:1 .
Note: The CAB_MCP_SERVER_BASE_URL and CAB_MCP_SERVER_PORT environment variables are required at build time and will be baked into the container image.
Running the Container
After building, run the container:
podman run -p 3002:3002 localhost/mcp-server:1
Or with Docker:
docker run -p 3002:3002 localhost/mcp-server:1
The MCP server will be available at http://localhost:3002.
README mirrored from the source repository 4 months ago. The original is authoritative.