Skip to main content

How does ChatGPT apps work?

Your MCP server is the foundation of every ChatGPT App. It exposes tools that the model can call, enforces authentication, and packages the structured data plus component that the ChatGPT client renders inline. This guide walks through the core building blocks with examples in FastApps.

Tool Architecture

BaseWidget Class

Every FastApps tool must inherit from BaseWidget:

Next Steps

Ready to start building?

Tool Basics

Learn the fundamentals

API Integration

Connect to external services

Advanced Patterns

Complex business logic
Or jump straight to the Quick Start Guide for a complete walkthrough.