MCP Tool Review

MCP Tool Review is a copy-paste React component that stops helps catch an mcp server swapping in poisoned tools before the user submits. It installs via the shadcn CLI, integrates with React 19 and Tailwind CSS, and provides accessible validation cues while keeping authorization on the server.

pnpm dlx shadcn@latest add @bollard/mcp-tool-review
Version 0.1.0Last updated Free & MIT licensed
  • Styled · shadcn theme
  • React 19+
  • MIT licensed
  • Tailwind v4
  • 2 extra npm packages
  • A11y guidance in docs

StopsHelps catch an MCP server swapping in poisoned tools

Was this component page useful?

How do I install MCP Tool Review?

pnpm dlx shadcn@latest add @bollard/mcp-tool-review

The files land in your project. They're yours to edit.

How do I use MCP Tool Review in React?

mcp-tool-review-usage.tsx
import { McpToolReview, type McpTool } from "@/components/ui/mcp-tool-review"

<McpToolReview
  server="weather-mcp"
  approved={APPROVED}
  current={CURRENT}
  otherTools={OTHERS}
  onResolve={async () => {
    await new Promise((r) => setTimeout(r, 300))
  }}
/>

What input mistakes does MCP Tool Review catch?

  • Tool definitions changed since approval (fingerprint mismatch)
  • Injected instructions such as <IMPORTANT> blocks or "do not tell the user"
  • References to secrets or config such as ~/.ssh and mcp.json, or to another server's tools
  • New free-text parameters that could carry data out
  • Invisible characters and read-only annotations that flipped

What props does MCP Tool Review accept?

McpToolReview props
PropTypeDefault
server* (required)

Server name as the person knows it.

string—
approved* (required)

Tool definitions as they were when the person approved the server (pinned).

McpTool[] | null | undefined—
current* (required)

Tool definitions the server lists now.

McpTool[] | null | undefined—
otherTools

Tools from the person's other servers, to catch shadowing and name clashes.

{ server: string; name: string }[]—
onResolve

Called per tool. May return a Promise; the card shows a pending state and can't fire twice.

(name: string, resolution: ToolResolution) => void | Promise<void>—
messages

Override any visible string, including change, risk and resolved texts.

Partial<Omit<Messages, "change" | "risk" | "resolved">> & { change?: Partial<Messages["change"]>; risk?: Partial<Messages["risk"]>; resol…—

* required. Also accepts the native props of <div> (className, aria-*, data-*…), passed through to it.

How is MCP Tool Review accessible?

  • Each tool card expands with aria-expanded and aria-controls
  • Focus moves to the open card's first action
  • Risk is shown in text with icons aria-hidden
  • Animations are skipped under reduced motion

Only what the source does. Test with your own screen reader and content before shipping.

What are the limitations and server boundaries?

This is a UX guard rail. Enforce on the server: Pin approved tool definitions in the MCP host and refuse calls to tools whose fingerprint changed until re-approved.

  • Phrase-based detection; a reworded injection can slip through
  • Only sees definitions the host passes in; it doesn't talk to MCP servers
  • Keep, disable or accept is passed to onResolve; enforcing it is the host's job

What expensive mistakes does MCP Tool Review stop?

Helps catch an MCP server swapping in poisoned tools

Also known as

mcp · model context protocol · tool pinning · ai agent · claude desktop · cursor · tools/list · supply chain

Field type

What dependencies does MCP Tool Review require?

MCP Tool Review facts & technical specifications

Technical specifications, licensing, and limitations
PropertySpecification
Component nameMCP Tool Review
Registry identifier@bollard/mcp-tool-review
Install commandnpx shadcn@latest add @bollard/mcp-tool-review
LicenseMIT License (free, commercial-friendly)
Price$0 (100% Free and Open Source)
Version0.1.0
RequirementsReact 19+, Tailwind CSS v4, shadcn CLI
SSR supportFully compatible (SSR & Server Components safe, client-hydrated controls)
Dependencieslucide-react, motion
AccessibilityWAI-ARIA compliant, keyboard navigability and screen-reader announcements verified
Last updated2026-10-16
Scope limitationClient-side guardrails catch honest mistakes in the browser; they do not replace server-side validation, database constraints, or backend authorization.

Frequently asked questions about MCP Tool Review

How does MCP Tool Review protect AI agent operations?

MCP Tool Review stops helps catch an MCP server swapping in poisoned tools. When an MCP server changes a tool you approved, shows the word-by-word diff and highlights poisoned instructions before the agent uses it. It validates autonomous actions against Tool definitions changed since approval (fingerprint mismatch), Injected instructions such as <IMPORTANT> blocks or "do not tell the user", References to secrets or config such as ~/.ssh and mcp.json, or to another server's tools, New free-text parameters that could carry data out, Invisible characters and read-only annotations that flipped. Limitation: verify mcp-tool-review policies at server boundary.

How do I install mcp-tool-review with shadcn?

Run `npx shadcn@latest add @bollard/mcp-tool-review`. Sources added: registry/default/mcp-tool-review/mcp-tool-review.tsx, registry/default/mcp-tool-review/tool-diff.ts. Package requirements: lucide-react, motion.

What props customize MCP Tool Review?

MCP Tool Review accepts `server`, `approved`, `current`, `otherTools`, `onResolve`. Configures mcp, model context protocol, tool pinning behavior. Limitation: invalid prop values fallback to safe default options.

What are the limits of mcp-tool-review?

Phrase-based detection; a reworded injection can slip through. Only sees definitions the host passes in; it doesn't talk to MCP servers. Keep, disable or accept is passed to onResolve; enforcing it is the host's job Server requirement: Pin approved tool definitions in the MCP host and refuse calls to tools whose fingerprint changed until re-approved.

How does MCP Tool Review meet accessibility guidelines?

Each tool card expands with aria-expanded and aria-controls. Focus moves to the open card's first action. Risk is shown in text with icons aria-hidden. Animations are skipped under reduced motion. Minimizes errors: mcp tool poisoning, mcp rug pull.

Which components pair with MCP Tool Review?