Repository navigation
feat(mcp-server-kit): advertise every tool hint as an explicit boolean - #24
Merged
Merged
Conversation
The ChatGPT Plugins Directory requires readOnlyHint, destructiveHint and openWorldHint to be explicit on every tool. Read tools left destructiveHint out and tools without annotations left out openWorldHint, so a product on the kit could not pass review. idempotentHint and openWorldHint now default to false (tools act on the tenant's own workspace unless they say otherwise).
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.
What
Every tool's
annotationsnow carries all four hints as explicit booleans:readOnlyHintanddestructiveHintcome fromrisk, as before. Read tools used to leavedestructiveHintout.idempotentHintandopenWorldHintcome from the tool'sannotationsand default tofalse. Tools withoutannotationsused to leave them out.Why
The ChatGPT plugin guidelines say to "set
readOnlyHint,destructiveHint, andopenWorldHintto explicit boolean values" on every tool. A product on the kit couldn't satisfy that for read tools. SendLit is preparing submissions to the ChatGPT and Claude directories.Product impact
A tool that reaches outside the tenant's own workspace (sending email, arbitrary destinations, public web search) should pass
annotations: { openWorldHint: true }. Without it the kit now advertisesfalse, where before the hint was left out (the MCP spec's default istrue). The changeset is minor and lists this under "Product changes".Testing
bun testinpackages/mcp-server-kit: 19 pass. Typecheck and Biome are clean.