Templates
Choose from three official templates or use any GitHub repository as a custom template.Official Templates
Starter
Full-featured with all examples
MCP Apps
OpenAI Apps SDK optimized
Blank
Minimal clean slate
Starter Template
The starter template is a comprehensive starting point with examples of all MCP features.Use Case
Best for:- Learning MCP concepts
- Exploring all features
- Prototyping quickly
- Building full-featured servers
What’s Included
- Tools
- Resources
- Prompts
- Widgets
Example tool implementations:
src/index.ts
Features
All MCP Features
All MCP Features
- Tools with Zod validation
- Resources (static and dynamic)
- Prompts with argument templates
- Both MCP-UI and OpenAI Apps SDK widgets
TypeScript
TypeScript
- Full type safety
- Proper tsconfig.json
- Type declarations included
Development Ready
Development Ready
- Hot reload configured
- Auto-opening inspector
- Example implementations
- Comprehensive README
Create with Starter
MCP Apps Template
The mcp-apps template is optimized for OpenAI Apps SDK integration and ChatGPT compatibility.Use Case
Best for:- OpenAI ChatGPT integration
- Apps SDK widgets
- Ecommerce applications
- ChatGPT-compatible UIs
What’s Included
- OpenAI Widgets
- Brand Info Tool
- Theme Integration
- Widget Capabilities
Pre-built OpenAI-compatible widgets:1. Display Weather2. Ecommerce Carousel3. Product Search4. Store Locations Map5. Order Confirmation
resources/display-weather.tsx
resources/ecommerce-carousel.tsx
resources/product-search-result.tsx
resources/stores-locations-map.tsx
resources/order-confirmation.tsx
Features
OpenAI Apps SDK
OpenAI Apps SDK
- Full ChatGPT compatibility
- Theme detection
- Official UI components
- Persistent state
Automatic Registration
Automatic Registration
- Widgets auto-register from
resources/ - Props schema validation
- Type-safe props
Ecommerce Examples
Ecommerce Examples
- Product carousel
- Search with filters
- Store locator map
- Order confirmation
Create with MCP Apps
Blank Template
The blank template provides a minimal starting point for custom projects.Use Case
Best for:- Custom implementations
- Minimal dependencies
- Learning from scratch
- Specific use cases
What’s Included
- Server Only
- Configuration
- Structure
Minimal server setup:No example implementations - clean slate.
src/index.ts
Features
Minimal Dependencies
Minimal Dependencies
- Only essential packages
- No example code
- Clean starting point
Full CLI Support
Full CLI Support
- Dev server with hot reload
- Build and deployment scripts
- Inspector integration
Create with Blank
Custom GitHub Templates
Use any GitHub repository as a template.Syntax
Requirements
Valid Structure
Repository should contain:
package.jsonsrc/directory (or TypeScript files)- Optional:
tsconfig.json,README.md
Example Custom Template
Create your own template repository:package.json
src/index.ts
Template Comparison
| Feature | Starter | MCP Apps | Blank |
|---|---|---|---|
| Tools | ✅ Examples | ✅ Brand info | ❌ None |
| Resources | ✅ Examples | ❌ None | ❌ None |
| Prompts | ✅ Examples | ❌ None | ❌ None |
| Widgets | ✅ Both types | ✅ Apps SDK | ❌ None |
| Documentation | ✅ Comprehensive | ✅ Apps-focused | ✅ Minimal |
| Dependencies | Full | Medium | Minimal |
| Best For | Learning | ChatGPT | Custom |
Choosing a Template
Next Steps
Customization
Customize your generated project
CLI Commands
Learn about development commands