Repository navigation
[review mirror] iaser-ai/ansari#443: declare destructiveHint: false - #18
timeleft-- wants to merge 1 commit into
Conversation
…lamic_question OpenAI's app directory review requires readOnlyHint, destructiveHint and openWorldHint to be explicit on every tool. The tool only asks Ansari a question and returns its answer, so it destroys nothing. Name, title, description, input, the other hints and the card resource are unchanged. ansari-mcp 0.17.3, so /health shows when the change is live. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
yia-mw-agent
left a comment
There was a problem hiding this comment.
Review verdict: APPROVE at 9f50e13
Helmet-Review-Request: #18 (comment)
Reviewed the full merge-base-to-head diff (base sync/develop-540acc85, merge-base 540acc85, 6 files, +7/−7) in the assigned worktree at 9f50e138a75ff968bbecb78b547c8bdb3badbebe (verified with git rev-parse HEAD; live PR head re-checked at start and before submit — unchanged).
What the change does
Adds destructiveHint: false to the answer_islamic_question tool annotations, bumps apps/mcp 0.17.2 → 0.17.3 (package.json + src/version.ts mirror, consistent per check-release), updates the README compatibility line, and flips both contract tests (request-contract.test.ts, parity-cases.ts) from expecting destructiveHint === undefined to === false.
Provenance
Verified this is a byte-for-byte mirror of upstream iaser-ai#443: the upstream PR head SHA is the identical commit 9f50e138a75ff968bbecb78b547c8bdb3badbebe (base upstream develop = this fork's sync/develop-540acc85).
Correctness
destructiveHint: falseis semantically right for a read-only question-answering tool and satisfies the OpenAI app directory requirement (readOnlyHint, destructiveHint, openWorldHint all explicit) cited in iaser-ai#442. Explicitfalseis valid per the MCPToolAnnotationsschema and the@saga-a2ui/react-mcp-stacktype surface (typecheck passes).idempotentHintstays omitted, matching the prior deliberate contract and both updated tests.- No other surface references
destructiveHintor pins the old expectation.
Validation (run in the worktree at the examined head)
pnpm lint— cleanpnpm typecheck(tsc --noEmit) — cleanpnpm test— 158/158 passpnpm test:browser(via worker-browser-prereqs) — 78/78 checks pass
Non-blocking observation
apps/mcp/docs/show-me-ansari-mcp.html (a dated static walkthrough, "no live requests") still footers "app 0.17.2". It is a snapshot not enforced by check-release; refreshing it on a future release doc pass would keep the walkthrough current.
No material defects found.
Review mirror of upstream iaser-ai#443, which closes iaser-ai#442. The fork account can't request reviewers upstream, so the review happens here.
The base is
sync/develop-540acc85(upstreamdevelopexactly, also in this fork's sync PR #17), so the diff is only the one upstream commit. Do not merge this PR; the change lands upstream through iaser-ai#443.See iaser-ai#443 for the change, rationale and verification (
pnpm mcp verify: lint, typecheck, 158/158 tests, 78 browser checks).🤖 Generated with Claude Code