MCP
MCPCapabilityBadge
Pill per MCP capability (tools, prompts, resources, sampling, roots, logging) with icons.
Preview
toolspromptsresourcessamplingrootslogging
Installation
pnpm add nyxis-ui
Usage
import { MCPCapabilityBadge } from 'nyxis-ui';
<MCPCapabilityBadge capability="tools" />
<MCPCapabilityBadge capability="resources" compact />
Capabilities
Mirrors the MCP spec exactly — pass any of tools, prompts, resources, sampling, roots, or logging. Icons:
| Capability | Icon |
|---|---|
tools | gear |
prompts | speech bubble |
resources | document |
sampling | sparkle |
roots | folder tree |
logging | scroll |
The enabled={false} variant renders muted — useful when surfacing a capability the server advertises but the client has disabled.