Repository navigation
fix(mcp): mark assignee and stage overwrites as destructive - #1778
Merged
Merged
Conversation
OpenAI rejected the ChatGPT connector because tool annotations did not match behavior. Its review rule sets destructiveHint for any tool that overwrites or clears existing data, even when the change can be undone. - conversations.assign replaces or clears the current assignee. - pipelines.moveItem replaces the item's current stage. Both now declare destructiveHint: true in x-mcp, so the default, Claude and OpenAI profiles advertise the same hint. hitlPolicy is derived from the operation id and stays confirm_diff, so the OpenAI input schemas and the approval flow are unchanged. Also fix the mcp-server README profile tables: a backticked env name in the first column was read as a tool name by the README tool-list test, which has failed on main since #1777.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
OpenAI rejected the ChatGPT connector (v1.0.0): "one or more of your tool's annotations do not appear to match". The current review guideline sets
destructiveHint: truefor any tool that overwrites or clears existing data, even when the change can be undone (https://developers.openai.com/plugins/app-guidelines).Two tools in the OpenAI profile still declared
destructiveHint: falsewhile overwriting state:conversations_assignassignedId: null)pipelines_move_itemcontacts_set_custom_fieldalready declarestrue, which made the profile inconsistent.Changes
x-mcp.destructiveHint: trueonconversations.assignandpipelines.moveItem, at the source, so the default, Claude and OpenAI profiles advertise the same hint.hitlPolicycomes from the operation id, not from the hint, so it staysconfirm_diff. The OpenAI input schemas don't change and no second_confirmround trip is added.confirm_diff.mainsince fix(mcp): serve every route under CHATBOTX_MCP_BASE_PATH #1777; this fixes it.Test plan
apps/builder:public-spec-mcp.test.ts+public-spec-operations.test.ts, 90/90. The 2 new tests failed before the change.apps/mcp-server: 340 tests passtsc(builder, mcp-server) and biome are cleandestructiveHint: true, then resubmit with a bumped version