Day 6, 30 minutes · advanced
Why it matters
To submit a ChatGPT plugin, you prepare the package files, five good and three bad test cases, a demo video and a listing, then pass review and keep the server updated.
Ingrid's plugin works for her. Nobody else can find it until it is submitted and reviewed, and the review has strict inputs: exactly five good test cases and three bad ones, a demo video, a listing with fixed length limits, and an address you can prove you own. Missing one is the most common reason a first submission stops.
Today you prepare everything you can on your own computer: the package files, the test cases and a script that checks the limits from the docs. You also read what happens after publishing, because OpenAI scans the server every day and holds back new tools until checks pass. You end with a submission pack that passes your own checks, and a list of the steps only the portal can do.
What a submission is
The submission page is called the source of truth. You go to the Platform plugins page, choose Upload new or existing plugin, and upload a ZIP with plugin.json (the listing: name, descriptions, links, icon), mcp.json (which server and which sign-in) and optional skills. You need a verified individual or business identity to publish under your name or a company name. Organization owners can submit; other members need the Apps Management Write role.
Then in the portal: Connect the MCP server, complete the domain challenge (a file the server must serve at /.well-known/openai-apps-challenge), wait for the tool scan, fix the findings, Submit for review, and later Publish. One review page calls the scan step "Scan Tools" where the submission page says "Connect" and "Rescan". Follow the submission page and expect labels to differ.
The listing limits
displayName and shortDescription: at most 30 characters each. longDescription: at most 4,000. developerName: at most 80. Up to three starter prompts of at most 128 characters, with no @mention. Up to 20 capabilities of at most 120. Website, support, privacy and terms addresses must be https. Include a square logo and composer icon (the dashboard needs a primary icon before submission): PNG, JPEG, WebP or SVG, at least 48 by 48, at most 5 MiB.
Review inputs
Exactly five positive and three negative test cases. A positive case needs a description, a prompt, the tools it triggers and the expected behaviour. A demo video address, release notes and a reviewer demo account without multi-factor sign-in are also needed. The docs say test cases may be put in the package, under extensions.com.openai.review.test_cases in plugin.json, and imported ones are then read-only in the dashboard. Your review-cases.json has that shape: paste it there before you zip the pack, or enter the cases in the dashboard. publication.countries is an allowlist of country codes; leave it out to keep existing targeting.
Rules that can stop you
- EU data residency: the review requirements say projects with EU data residency cannot submit plugins with MCP servers for review; use global data residency. This is a rule about your OpenAI project, not about where your users live.
- Guidelines: commerce only for physical goods, no ads, a privacy policy, minimal data and no restricted data. Moorhen takes no payment inside the plugin. If you add payment to your own plugin, read the commerce section of the guidelines first.
- The server origin cannot change after publication.
- Two pages disagree on justification text for annotations: the guidelines say it is no longer required, an errors page still lists a
justification_requirederror. This course could not settle that.
After publishing
OpenAI scans your server daily. New tools are held until checks pass, and held updates appear under Issues in the portal. Removed tools take effect after a scan. So keep tool names stable, and plan changes as additions.
The steps
- Make the pack folder and the logo.
- Write
plugin.json,mcp.jsonandreview-cases.json. - Write
check_pack.pyin two parts. - Run it, fix the placeholder, run again.
- Write the portal steps in
submission-notes.md.
Pick your tool below and follow the steps.
If something fails
- A KeyError in the script: a field is missing in a file. The name tells you which.
- The script says the address is a placeholder: replace it with your public https address that ends in
/mcp. - The portal blocks you on identity: that step is not about the code. Follow the verification page.
Common mistakes
- Seven or nine test cases instead of five and three.
- Starter prompts that mention a plugin with
@. - Submitting from a project with EU data residency.
Today's actions
Ticks are not saved without an accountDo it in OpenAI API
OpenAI API
- Make a folder
packnext to your server with a folderassetsinside, and createassets/logo.svg: a square image of at least 48 by 48.<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" width="96" height="96"> <rect width="96" height="96" rx="16" fill="#1f6f78"/> <path d="M12 58 Q48 82 84 58 Q48 70 12 58 Z" fill="#ffffff"/> </svg> - In
pack, createplugin.json, the listing. The names and links are made-up placeholders on example.com; put your own in a real submission. The category must be a category title from the dashboard list; Travel is only a guess, so check the list.{ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "moorhen-paddle-hire", "version": "0.1.0", "description": "Check free kayaks and book one at Moorhen Paddle Hire.", "author": {"name": "Ingrid Example", "url": "https://example.com"}, "extensions": { "com.openai": { "interface": { "displayName": "Moorhen Paddle Hire", "shortDescription": "Free kayaks and bookings", "longDescription": "Check which kayaks are free on a Saturday or Sunday, read the launch rules, and see or make your own booking after you sign in. Made-up service for practice.", "developerName": "Ingrid Example", "category": "Travel", "capabilities": ["List free kayaks", "Read launch rules", "Book a kayak"], "websiteURL": "https://example.com/moorhen", "supportURL": "https://example.com/moorhen/support", "privacyPolicyURL": "https://example.com/moorhen/privacy", "termsOfServiceURL": "https://example.com/moorhen/terms", "defaultPrompt": ["Which kayaks are free on 2027-06-12?", "What are the launch rules?"], "logo": "./assets/logo.svg", "composerIcon": "./assets/logo.svg" } } } } - Create
mcp.json: one server, with sign-in set to a mix of public and signed-in tools and registration by CIMD. Replace the address with your own.{ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json", "mcpServers": { "moorhen": { "type": "streamable-http", "url": "https://replace-me.example.net/mcp", "extensions": { "com.openai": { "auth": {"type": "mixed", "client": {"mode": "cimd"}} } } } } } - Create
review-cases.json: exactly five positive and three negative test cases for the review.{ "positive": [ {"description": "Free kayaks on a day", "prompt": "Which kayaks are free on 2027-06-12?", "tools_triggered": "list_free_kayaks", "expected_behavior": "Lists K2 Swallow and K4 Lilypad."}, {"description": "Only double kayaks", "prompt": "Is a double kayak free on 2027-06-13?", "tools_triggered": "list_free_kayaks", "expected_behavior": "Lists K3 Pondskater and K4 Lilypad."}, {"description": "Launch rules", "prompt": "Do children need a life jacket?", "tools_triggered": "get_launch_rules", "expected_behavior": "Says everyone wears a life jacket."}, {"description": "Own booking", "prompt": "What is my booking?", "tools_triggered": "get_my_booking", "expected_behavior": "Asks to sign in, then shows the demo account booking."}, {"description": "Book a kayak", "prompt": "Book K1 for 2027-06-19.", "tools_triggered": "book_kayak", "expected_behavior": "Asks to confirm, then books K1."} ], "negative": [ {"description": "Payment is out of scope", "prompt": "Pay my 40 euro deposit."}, {"description": "Other people's bookings", "prompt": "Cancel everyone's bookings on Saturday."}, {"description": "Not a kayak question", "prompt": "Write me a poem about lakes."} ] } - Create
check_pack.pywith this first part: it checks the listing limits and the files.import json import sys from pathlib import Path root = Path(sys.argv[1] if len(sys.argv) > 1 else ".") problems = [] def need(ok, text): if not ok: problems.append(text) plugin = json.loads((root / "plugin.json").read_text(encoding="utf-8")) ui = plugin["extensions"]["com.openai"]["interface"] need(0 < len(ui["displayName"]) <= 30, "displayName: 1 to 30 characters") need(0 < len(ui["shortDescription"]) <= 30, "shortDescription: 1 to 30 characters") need(len(ui["longDescription"]) <= 4000, "longDescription: at most 4000 characters") need(len(ui["defaultPrompt"]) <= 3, "defaultPrompt: at most 3") need(all(len(p) <= 128 and "@" not in p for p in ui["defaultPrompt"]), "prompts: 128 characters, no @") for key in ("websiteURL", "supportURL", "privacyPolicyURL", "termsOfServiceURL"): need(ui[key].startswith("https://"), key + ": must be an https address") for key in ("logo", "composerIcon"): need((root / ui[key].removeprefix("./")).is_file(), key + ": file not found") - Add this second part to the end of the same file: it checks the server address and the number of test cases.
servers = json.loads((root / "mcp.json").read_text(encoding="utf-8"))["mcpServers"] need(len(servers) == 1, "review test cases need exactly one MCP server") for name, server in servers.items(): url = server["url"] need(url.startswith("https://") and url.endswith("/mcp"), name + ": https address ending in /mcp") need("replace-me" not in url, name + ": still the placeholder address") need("clientSecret" not in json.dumps(server), name + ": no client secret in a package") cases = json.loads((root / "review-cases.json").read_text(encoding="utf-8")) need(len(cases["positive"]) == 5, "review needs exactly 5 positive cases") need(len(cases["negative"]) == 3, "review needs exactly 3 negative cases") print("Problems:" if problems else "No problems found.") for problem in problems: print(" -", problem) sys.exit(1 if problems else 0) - Run
python check_pack.py .in thepackfolder. It should complain about the placeholder address. Put in your own https address ending in/mcpand run it again until it prints that it found no problems. - Write
submission-notes.md: the portal steps in order (Upload, Connect, domain challenge, scan, fix, Submit for review, Publish), your demo video and demo account still to prepare, and your data residency setting.
Note: The check script covers only limits the docs list; the portal runs its own checks. Package names, the demo video and the reviewer account are not checked here. Nothing was submitted for this course. Labels differ between OpenAI pages, so follow the page for the screen you are on.
Paid planSubmitting needs a verified identity, and an organization owner or a member with the Apps Management Write role. A project with EU data residency cannot submit MCP plugins, per the review page.
Create a free account to save your progress
Free, and no payment details. Your ticks and finished lessons are kept, on every device.
Create a free account I already have an accountCreate a free account to save your progress. Sign in or sign up