1. Conduid
  2. Communication
  3. Chatgpt App Example
MCP server · Communication

Chatgpt App Example

MCP server: Chatgpt App Example

Unclaimed last commit a year ago comms
39Low

Scored 5 months ago · breakdown

About Chatgpt App Example

Chatgpt App Example is an MCP server published by mikelopster in the Communication category: mCP server: Chatgpt App Example.

The repository has 1 stars and 0 forks, with the last commit a year ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/mikelopster/chatgpt-app-example

This 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.

Tools (4)

AuthenticationNot required

Parameters not published.

DescriptionDisplays a simple greeting message

Parameters not published.

Input`name` (string) - The name to greet

Parameters not published.

OutputInteractive greeting card with custom message

Parameters not published.

Ask AI

✦

Ask AI about Chatgpt App Example

Powered by Claude · Grounded in docs

I know everything about Chatgpt App Example. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 18 hours ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • !License declaredNo license file. Legally you have no right to use it in a product.
  • !Tests presentNo tests found. Behaviour changes may go unnoticed between versions.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

README

ChatGPT App Example

A demonstration project showcasing how to build interactive applications for ChatGPT using the Apps SDK and Model Context Protocol (MCP).

🌟 Overview

This project demonstrates how to create custom applications that integrate directly with ChatGPT, allowing users to interact with dynamic UI components within the chat interface. The application uses the Model Context Protocol (MCP) to communicate between ChatGPT and a custom backend server.

Key Features

  • 🔧 MCP Server Implementation - Backend server using Express.js and MCP SDK
  • ⚛️ React UI Components - Interactive frontend components rendered in ChatGPT
  • 🎨 Tailwind CSS Integration - Modern, responsive UI styling
  • 📦 TypeScript Support - Fully typed codebase

🏗️ Project Structure

chatgpt-app-example/
├── server/
│   └── index.ts              # MCP server implementation
├── web/
│   ├── src/
│   │   └── component.jsx  # React component for UI
│   └── dist/                 # Built component output
├── package.json
├── tsconfig.json
└── README.md

🚀 Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • pnpm (or npm/yarn)
  • ngrok account (for local testing with ChatGPT)
  • ChatGPT Plus account (for testing in ChatGPT UI)

Installation

  1. Clone the repository:
git clone https://github.com/mikelopster/chatgpt-app-example.git
cd chatgpt-app-example
  1. Install dependencies:
pnpm install
  1. Build the UI component:
pnpm run build:esbuild

Running the Server

Start the development server:

pnpm run dev

The server will start on http://localhost:3000 with the MCP endpoint available at http://localhost:3000/mcp.

Exposing Your Local Server

Use ngrok to create a public HTTPS tunnel:

ngrok http 3000

Copy the HTTPS URL provided by ngrok (e.g., https://random-string.ngrok.app).

🔌 Connecting to ChatGPT

  1. Open ChatGPT and go to Settings → Connectors → Advanced
  2. Enable Developer mode
  3. Click Create to add a new connector
  4. Fill in the details:
    • Name: Greeting App
    • Description: A simple app to show a greeting
    • Connector URL: https://your-ngrok-url.ngrok.app/mcp
  5. Save and enable the connector in a new chat
  6. Try it out by typing: "Use the Greeting App to greet the world"

💡 How It Works

Architecture Overview

User Input → ChatGPT → MCP Server → Backend Processing → UI Rendering
  1. User Request: User invokes a tool through ChatGPT
  2. Tool Call: ChatGPT sends a request to the MCP server
  3. Processing: Server processes the request and prepares response data
  4. Response: Server returns structured content and UI template
  5. Rendering: ChatGPT renders the React component with the data
  6. Interaction: User interacts with the rendered UI

Available Tools

show_greeting

  • Description: Displays a simple greeting message
  • Input: name (string) - The name to greet
  • Authentication: Not required
  • Output: Interactive greeting card with custom message

Component Structure

The React component (GreetingComponent.jsx) demonstrates:

  • Reading data from window.openai.toolOutput
  • Listening to openai:set_globals events for updates
  • Rendering dynamic content based on structured data
  • Using TailwindCSS for styling

🛠️ Development

Scripts

  • pnpm run dev - Start development server with hot reload (using tsx)
  • pnpm run start - Start production server
  • pnpm run build - Build TypeScript files
  • pnpm run build:esbuild - Build React component for production

Tech Stack

Backend:

  • Express.js - Web framework
  • @modelcontextprotocol/sdk - MCP protocol implementation
  • TypeScript - Type safety
  • Zod - Schema validation

Frontend:

  • React 18 - UI components
  • TailwindCSS (via CDN) - Styling
  • esbuild - Fast bundling

📚 Documentation

For comprehensive guides and concepts:

Key Concepts

Model Context Protocol (MCP) is the communication standard that enables:

  • LLMs to interact with external tools and services
  • Secure and structured data exchange
  • Dynamic UI rendering within ChatGPT
  • Tool registration and discovery

Apps SDK provides:

  • Helper functions for building MCP servers
  • UI template management
  • Authentication framework
  • Best practices and patterns

📖 Additional Resources

README fetched from the repository 18 hours ago. The original is authoritative.

Questions

About Chatgpt App Example

How do I install Chatgpt App Example?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Chatgpt App Example safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 3 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Chatgpt App Example still maintained?

The last commit was a year ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.