N
Nyxis
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:

CapabilityIcon
toolsgear
promptsspeech bubble
resourcesdocument
samplingsparkle
rootsfolder tree
loggingscroll

The enabled={false} variant renders muted — useful when surfacing a capability the server advertises but the client has disabled.