McpToolAnnotationBadges

Show the behavior hints an MCP server declares for a tool: read-only (teal), destructive (red), idempotent (gray) and open world (blue), mapped from readOnlyHint, destructiveHint, idempotentHint and openWorldHint. Hints that are false or missing produce no badge; with no hints the component renders nothing. withTooltips adds a one-line explanation to each badge; labels replaces the label and description of every kind (defaults are in DEFAULT_MCP_TOOL_ANNOTATION_LABELS). McpToolDetail and McpServerDetail use it; use it in your own tool lists and approval prompts. getMcpToolAnnotationKinds returns the kinds without rendering.

Getting Started
$pnpm add @sinups/ai-kit @mantine/core @mantine/hooks @tabler/icons-react
Examples
Annotations and transports
API reference
Prop
Type
Required
annotations
McpToolAnnotations
No
Tool annotations from the MCP server; missing hints take the defaults of the MCP specification
labels
McpToolAnnotationLabels
No
Badge labels and tooltip descriptions per annotation kind
withTooltips
boolean
No
Shows the description of each badge in a tooltip, `false` by default