A ChatGPT app that lets users generate professional AI headshots via the Runflow API directly inside the ChatGPT interface.
-
Install dependencies:
npm install
-
Build the project:
npm run build
-
Start the MCP server:
npm start
The server runs on http://localhost:8000
-
For production/local testing with ChatGPT, tunnel with ngrok:
ngrok http 8000
Use the provided URL (e.g., https://abc123.ngrok-free.app/mcp) in ChatGPT Developer Mode settings.
- Enable ChatGPT Developer Mode
- Add the app with the MCP URL
- In ChatGPT, invoke the app to see the widget
- Enter your Runflow API key
- Provide 3-10 image URLs (one per line)
- Optionally, set a callback URL (e.g., webhook.site)
- Click "Generate Headshots"
- The widget shows the job ID and confirmation
Results arrive in 1-2 hours via the callback URL.
- MCP Server (
src/server.ts): Handles tool calls, serves the widget HTML - Widget (
public/index.html): React-free HTML form that calls the tool viawindow.openai.callTool - API Integration: Calls Runflow's generate-headshots endpoint
- API key is handled client-side only (not stored on server)
- For MVP, images are provided as URLs; file upload not implemented
- Callback handling is for future phase