Skip to content

fix(contentsquare): publish an upload-ready OpenAI ZIP as a release - #33

Open
ropiteaux wants to merge 2 commits into
mainfrom
fix/openai-plugin-release-zip
Open

ropiteaux wants to merge 2 commits into
mainfrom
fix/openai-plugin-release-zip

Conversation

@ropiteaux

@ropiteaux ropiteaux commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The OpenAI portal rejected the ZIP from #24. It wrapped everything in a contentsquare/ folder and shipped the Claude and Cursor manifests. On top of that, GitHub re-zips workflow artifacts when you download them.

 contentsquare-openai-<version>.zip
-└── contentsquare/
-    ├── .claude-plugin/plugin.json
-    ├── .cursor-plugin/plugin.json
-    ├── .mcp.json
-    ├── README.md
-    ├── assets/logo.png
-    ├── mcp.json
-    └── plugin.json
+├── plugin.json
+├── mcp.json
+└── assets/logo.png
package-openai-plugin.yml
  package   (PRs and main)       scripts/package-openai-plugin.sh
                                   zip plugin.json, mcp.json, assets/ from plugins/contentsquare
                                   scripts/check-openai-zip.sh   # fails on a wrong layout
  publish   (main only, write)   if release contentsquare-openai-v<version> exists
                                   notice "bump the version", stop
                                 gh release create with the ZIP attached

A published release is never overwritten, because its ZIP may be the one already submitted to OpenAI. To ship a changed package, bump version in plugins/contentsquare/plugin.json.

Evidence

  • Before: scripts/check-openai-zip.sh on the ZIP that main built at 8f0253e:
    ::error::...zip: plugin.json must be at the archive root
    ::error::...zip: mcp.json must be at the archive root
    ::error::...zip: unexpected entries: contentsquare/ ...
    exit 1
    
    After: ./scripts/package-openai-plugin.sh builds dist/contentsquare-openai-1.0.0.zip with plugin.json, mcp.json, assets/logo.png at the root, and the check passes.
  • node scripts/validate-plugins.mjs passes, and ./scripts/sync-plugin.sh leaves no diff.

Merge Danger

Door: two-way

The first run on main creates the contentsquare-openai-v1.0.0 release. Revert this PR to go back to the artifact. Deleting the release and tag is manual.

Blast Radius: small

Only the packaging workflow and the READMEs change. The plugin's own files are untouched, so Claude and Cursor installs are unaffected.

🤖 Generated with Claude Code

The packaged ZIP nested everything under contentsquare/ and shipped the Claude and Cursor manifests, so the OpenAI upload rejected it. Build the archive with plugin.json, mcp.json and assets at the root, and check that layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ropiteaux
ropiteaux requested review from a team as code owners November 24, 2026 12:11
@Kristjanh2

Copy link
Copy Markdown

Nice, an upload-ready ZIP makes the OpenAI submission much smoother. The part that usually costs a review round is the tool behaviour behind the package, not the package itself. At Suncly we test MCP servers on the live endpoint, tool by tool, against their annotations and descriptions, so you know it'll pass before you upload. Happy to run it on Contentsquare's server. Email me at team@suncly.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants