Skip to content

[review mirror] iaser-ai/ansari#443: declare destructiveHint: false - #18

Open
timeleft-- wants to merge 1 commit into
sync/develop-540acc85from
claude/mcp-destructive-hint
Open

timeleft-- wants to merge 1 commit into
sync/develop-540acc85from
claude/mcp-destructive-hint

Conversation

@timeleft--

Copy link
Copy Markdown
Member

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 (upstream develop exactly, 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

…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 yia-mw-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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: false is 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. Explicit false is valid per the MCP ToolAnnotations schema and the @saga-a2ui/react-mcp-stack type surface (typecheck passes).
  • idempotentHint stays omitted, matching the prior deliberate contract and both updated tests.
  • No other surface references destructiveHint or pins the old expectation.

Validation (run in the worktree at the examined head)

  • pnpm lint — clean
  • pnpm typecheck (tsc --noEmit) — clean
  • pnpm test — 158/158 pass
  • pnpm 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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants