Repository navigation
feat(mcp): give every tool all three hints, with the reason for each - #2260
Merged
Merged
Conversation
ChatGPT's app review needs readOnlyHint, destructiveHint and openWorldHint on every tool, with a reason for each; the 48 read tools stated no destructiveHint. They now say false: a list_ or get_ tool reads what Ansvisor stores, changes nothing and reaches nothing outside it. dismiss_topic_suggestion and dismiss_prompt_suggestion are now destructive: a dismissed suggestion can't be brought back, as dismiss_task_review already says. Their descriptions say so. The MCP guide's new Tool hints table gives each write's hints and why; the server test checks the table against the server, so the reasons pasted into a directory form match what clients read. Part of ansvisor#2141. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
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.
Summary
PR 1 of the MCP over OAuth plan (#2141, approved by the owner on 2026-11-10). It is independent of the OAuth work and can merge on its own.
ChatGPT's app review needs
readOnlyHint,destructiveHintandopenWorldHinton every tool, each with a written reason. Wrong or missing hints are its most common rejection. Claude's directory needs atitleand the applicablereadOnlyHintordestructiveHint, which every tool already had.What changes
list_*,get_*) now statedestructiveHint: false. Before, they stated onlyreadOnlyHintandopenWorldHint. A read changes nothing and reads only what Ansvisor stores: none fetches a page or calls an LLM.dismiss_topic_suggestionanddismiss_prompt_suggestionare nowdestructiveHint: true.dismiss_task_reviewwas already destructive for the same reason.generate_content_briefanddismiss_task_review.override_mention_sentimentkeeps the correction history;update_*_statustools set a status the same tool can set back;create_improve_actionsends suggestions that already exist and calls no LLM, so it stays inside Ansvisor.docs/guides/mcp-server.mdxhas a new Tool hints section.web/src/lib/mcp/server.test.ts):destructiveHint: falseandopenWorldHint: false;dismiss_prompt_suggestion,dismiss_task_review,dismiss_topic_suggestionandgenerate_content_brief;No migration. No change a person sees in the app, so no Help change.
Related issue
Part of #2141
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
cd web && npx vitest run src/lib/mcp/server.test.ts: 5 tests pass.destructiveHintinserver.ts, or a yes/no in the guide's Tool hints table, and run the test again: it fails and names the tool.claude mcp addand ask "list the Ansvisor tools"). Every tool showsreadOnlyHint,destructiveHintandopenWorldHint, and the twodismiss_*_suggestiontools showdestructiveHint: true.Checklist
feature/mcp-tool-hints)yarn lintpasses (eslint on the changed files: 0 problems)yarn typecheckpasses (0 errors)yarn format:checkpassessrc/lib/mcp,src/lib/chat/registryandsrc/app/api/mcp: 63 files, 575 tests passedhelp/(or no user-visible change): no change a person sees in the appChecked on 8a794ec, which merges cleanly into current
main.Generated by Claude Code