Skip to content

feat(openai): add plugin for the MCP server & generate zip - #24

Merged
ropiteaux merged 13 commits into
mainfrom
worktree-codex-plugin-contentsquare-mcp
Nov 24, 2026
Merged

ropiteaux merged 13 commits into
mainfrom
worktree-codex-plugin-contentsquare-mcp

Conversation

@ropiteaux

@ropiteaux ropiteaux commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Packages the Contentsquare MCP plugin for the OpenAI plugin directory, with the review material OpenAI asks for.

 .agents/plugins/
+└── marketplace.json            # Codex catalog, lists the contentsquare plugin
 .github/workflows/
+└── package-openai-plugin.yml   # on push to main, zips plugins/contentsquare as a workflow artifact
 docs/
+└── openai-review/
+    └── demo-recording.webm     # demo video, outside the plugin so it stays out of the ZIP
 plugins/contentsquare/
+├── plugin.json                 # portable manifest with extensions.com.openai (listing, review, publication)
+├── mcp.json                    # streamable-http server at api.contentsquare.com/mcp, OAuth with DCR
 ├── .mcp.json                   # adds the http type that Claude's validator requires
 └── README.md
 scripts/
 └── validate-plugins.mjs        # also checks plugin.json, mcp.json and the Codex catalog

The review test cases in plugin.json come from Pavel's recorded run against the OpenAI test project (project 1284308, Production, QT Store Web). OpenAI's first MCP review requires exactly 5 positive and 3 negative cases. All tools_triggered names are CSQ XP tools from gateway-api.

Positive prompt Tools
How many API errors happened last week, grouped by device type? listHierarchy, summarizeErrors
How many JavaScript errors happened in the last week, per browser type? listHierarchy, summarizeErrors
How many people visited the "payment" page in the last month? listHierarchy, getPageGroups, listMetrics, computeMetrics
Give a session split between operational systems and device types in the past week listHierarchy, listMetrics, computeMetrics
How many people checked out an item in the past 3 days? listHierarchy, getDefinedEvents, listMetrics, computeMetrics

The negative cases ask the plugin to create an event, return an end user's email, and count MCP tool calls. It should decline all three.

demo_recording_url points at the video on main, so it resolves only after this PR merges.

Evidence

  • Before: plugin.json test cases called Legacy tools (listProjects, computeFunnel, computeJourney...), which the CSQ XP server does not expose.
    After: every tool name in tools_triggered is listed as csqXpOnly in gateway-api's tool-surface-lock.expected.ts.
  • node scripts/validate-plugins.mjs prints OK - all plugin manifests, catalogs, MCP configs and skills are valid. CI validate and Aikido pass.
  • The recording shows ChatGPT's tool status lines, such as "Retrieved project hierarchy and summarized API errors by device type", which match the expected tools.

Merge Danger

Door: two-way

Revert the merge to roll back. Once the package is uploaded to OpenAI, its test cases are read-only in their dashboard, so changing them needs a new upload.

Blast Radius: small

Claude and Codex users who install from this repo get the updated .mcp.json and the new catalog. The 13.7 MB video stays in git history even if it is deleted later. GitHub may offer the .webm as a download instead of playing it in the page.

🤖 Generated with Claude Code

Add .codex-plugin manifest for the Contentsquare MCP plugin, a Codex catalog at .agents/plugins/marketplace.json, and extend the validator and READMEs to cover them.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
@ropiteaux
ropiteaux requested review from a team as code owners October 15, 2026 13:22
Claude's plugin validator rejects a remote server without a type, which has failed CI on main. Codex also expects a transport type.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
OpenAI's packaging docs recommend a root plugin.json with extensions.com.openai and a root mcp.json that declares the transport type and auth. The .codex-plugin overlay is replaced entirely once the inline object exists, so remove it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
shortDescription is capped at 30 characters for public submission, and the server advertises Dynamic Client Registration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Comment thread plugins/contentsquare/plugin.json Outdated
"developerName": "Contentsquare",
"category": "Data & Analytics",
"capabilities": ["Read Contentsquare analytics and submit feedback"],
"websiteURL": "https://support.contentsquare.com/hc/en-us/articles/41563169756945-How-to-set-up-and-use-Model-Context-Protocol-MCP",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"websiteURL": "https://support.contentsquare.com/hc/en-us/articles/41563169756945-How-to-set-up-and-use-Model-Context-Protocol-MCP",
"websiteURL": "https://contentsquare.com/",

@ropiteaux ropiteaux changed the title feat(contentsquare): add Codex plugin for the MCP server feat(openai): add plugin for the MCP server & generate zip Oct 15, 2026
ropiteaux and others added 2 commits November 23, 2026 13:53
The review cases called Legacy tools such as listProjects and computeFunnel, which the CSQ XP server does not expose. Use the prompts recorded for the demo on the OpenAI test project instead. The initial MCP review needs 5 positive and 3 negative cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The checkout prompt uses the 'Go to checkout' defined event rather than the transaction event, and the negative cases may check events or metrics before declining.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ropiteaux
ropiteaux merged commit 8f0253e into main Nov 24, 2026
2 checks passed
@ropiteaux
ropiteaux deleted the worktree-codex-plugin-contentsquare-mcp branch November 24, 2026 11:08
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.

4 participants