5.6 KiB
ChatGPT GPT Store — Submission Prep
Date: 2026-06-12 Status: IN PROGRESS — code review done, listing copy drafted Related: 2026-06-09-marketplace-release-checklist, 2026-06-12-claude-mcp-directory-submission, 2026-06-12-claude-marketplace-submission-session
Code review against 2026-06-09 checklist
1. OAuth callback domains (chat.openai.com vs chatgpt.com)
src/index.tsCORS allowlist already includes bothhttps://chatgpt.comandhttps://chat.openai.com(lines 94-95). ✅src/oauth.ts— DCR flow (/oauth/register→registerClient) stores whateverredirect_urisChatGPT sends verbatim, andisValidRedirectUridoes an exact match against that stored list. So for a normal DCR registration, either domain (chat.openai.comorchatgpt.com) works automatically — no gap here.- However, there's a special-case wildcard fallback,
CHATGPT_CALLBACK_RE(oauth.ts:185), that only matcheschat.openai.com/aip/g-{hex}/oauth/callback, notchatgpt.com. It's triggered only if a client's registered_uris list literally contains the string'https://chat.openai.com/aip/*/oauth/callback'— which nothing currently inserts (not the DCR path, not the pre-registered app inmain()). So this branch is presently dead code. - Risk: if a future fix relies on this wildcard (e.g. to handle a GPT being republished with a new
g-{id}without re-running DCR), it would silently fail forchatgpt.com-domain callbacks. Low priority, but a one-line fix (extend the regex to match either host) would close the gap defensively. Not blocking for submission.
2. Rate limit headers (Retry-After / X-RateLimit-Remaining)
checkRateLimit()(index.ts:314) returns429 { error: "Too many requests..." }with noRetry-AfterorX-RateLimit-Remainingheaders.- It's only applied to 3 endpoints:
/api/auth/login(10/15min),/api/auth/forgot-password(5/hr),/api/chat(30/hr). - None of these are ChatGPT Action endpoints. The 29 paths exposed via
/openapi-chatgpt.json(/api/email/*,/api/whatsapp/*,/api/linkedin/*,/api/telegram/*,/api/discord/*,/api/instagram/*,/api/facebook/*,/api/twitter/*,/api/tiktok/*) have no rate limiting at all currently, so ChatGPT won't hit a 429 from SquareMCP in normal use. - Conclusion: the checklist concern doesn't currently apply (no 429s on Action paths) — not a blocker. If rate limiting is later added to these endpoints, add
Retry-After/X-RateLimit-Remainingheaders at that time.
3. OpenAPI spec for ChatGPT
/openapi-chatgpt.jsonis live (index.ts:1139-1140 →getOpenApiSpecChatGPT).CHATGPT_PATHS(manifest.ts:770-809) = 29 paths, confirmed by count: email (4), WhatsApp (2), LinkedIn (3), Telegram (2), Discord (3), Instagram (4), Facebook (5), Twitter/X (4), TikTok (2).- Spec title: "SquareMCP". Description: "AI Social Media Gateway — send WhatsApp, email, LinkedIn, Instagram, Facebook, Twitter/X, TikTok, Telegram, and Discord messages from ChatGPT."
- Note/correction: the marketplace checklist table row says "33 paths incl. Obsidian" — that's stale/incorrect for the ChatGPT-specific spec. The actual
/openapi-chatgpt.jsonhas 29 paths and does not include/api/obsidian/*. Obsidian access is not exposed to ChatGPT (only via the MCP/Claude side). Worth correcting that line in the checklist, or deciding whether Obsidian should be added toCHATGPT_PATHS.
Draft GPT Store Listing Copy
GPT name: SquareMCP (or SquareMCP — Social & Messaging if more descriptive naming preferred)
Category: Productivity
Short description (137 chars):
Post to LinkedIn, WhatsApp, Twitter/X, Instagram, Facebook, TikTok, Telegram, Discord, and email — one connected account, nine platforms.
Long description (380 chars):
SquareMCP connects ChatGPT to your social, messaging, and email accounts via one OAuth login. Send and search email, post LinkedIn updates, send WhatsApp messages, post photos and reels to Instagram and Facebook, publish to TikTok, message on Telegram and Discord, and search or post on Twitter/X — all from one connected account. Connect once at app.squaremcp.com, then just ask.
Conversation starters (4):
- "Post this announcement to LinkedIn and Twitter/X for me"
- "Send a WhatsApp message to a customer about their order status"
- "Check my Instagram and Facebook page profiles"
- "Search my email for messages from a specific sender and draft a reply"
Action import URL: https://hermes.squaremcp.com/openapi-chatgpt.json
Logo: reuse product/site/squaremcp-logo-512.png (already exported for the Claude submission)
Privacy policy / ToS: reuse https://squaremcp.com/privacy and https://squaremcp.com/terms (already updated 2026-06-12)
Still open from the 2026-06-09 checklist (not addressed in this pass)
- OpenAI builder verification (platform.openai.com identity/org verification) — required before any GPT can go public
- Create the private GPT itself (was blocked on FB token, which is now fixed as of today's session — unblocked)
- Test private GPT end-to-end (OAuth → tool call flow) with a few real accounts before public submission
- Public GPT Store review submission (1-3 week OpenAI review timeline)
Outcome
- OAuth callback handling, rate limiting, and OpenAPI spec all reviewed against the checklist — no submission blockers found in code.
- Listing copy (name, descriptions, conversation starters, category) drafted and ready to paste into the GPT builder.
- Remaining work is mostly process (OpenAI builder verification, creating/testing the actual GPT, public review submission), not code changes.