MCP Catalogs
Homechatgpt-app-typescript-template screenshot

chatgpt-app-typescript-template

by pomerium·16·Score 45

Production-ready MCP app template for building ChatGPT-style tools with React UI widgets.

ai-llmdeveloper-toolsproductivity
7
Forks
9
Open issues
this month
Last commit
2d ago
Indexed

Overview

This is a well-architected starter template demonstrating best practices for building MCP Apps using the Model Context Protocol with React widgets. It provides a complete development environment with TypeScript, Tailwind CSS v4, Pino logging, Storybook, and Vitest. The template includes an MCP server with example Echo tool, React widgets that demonstrate the MCP Apps API, support for multiple display modes (inline, picture-in-picture, fullscreen), and UI capability negotiation.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Building custom AI-powered tools with interactive UI for ChatGPT
you:Creating MCP applications with React-based frontends
you:Developing tools that integrate with various MCP hosts like Claude Desktop and VS Code
you:What MCP hosts does this template support?
you:How do I add custom tools to my app?

When to choose this

Choose this template when starting a new MCP application that needs a rich UI with React components and a well-structured production-ready codebase.

When NOT to choose this

Avoid if you need a simple tool without UI components or if you're not using TypeScript and React in your stack.

Tools this server exposes

1 tool extracted from the README
  • echo

    Example tool that displays messages and demonstrates UI binding

Comparable tools

mcp-server-templatereact-mcp-startermcp-typescript-boilerplate

Installation

Installation & Setup

git clone https://github.com/pomerium/chatgpt-app-typescript-template your-chatgpt-app
cd your-chatgpt-app
npm install
npm run dev

ChatGPT Connection

  1. Create a public tunnel using [Pomerium's SSH tunnel](https://www.pomerium.com/docs/tcp/ssh):

``bash ssh -R 0 pom.run ``

  1. Find your public URL in the terminal output
  2. In ChatGPT, go to **Settings → Connectors → Add Connector**
  3. Enter your Remote URL + /mcp, e.g. https://your-unique-url.pom.run/mcp
  4. Save the connector and test with your tool

FAQ

What MCP hosts does this template support?
The template works with any MCP host that supports the MCP Apps specification, including ChatGPT, Claude Desktop, VS Code, and others.
How do I add custom tools to my app?
Add tool schemas to server/src/types.ts, register tools in server/src/server.ts, and create corresponding widgets in the widgets/src/widgets/ directory.

On Hacker News

Recent discussion from the developer community.

Compare chatgpt-app-typescript-template with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.