MCP
MCPPromptLibrary
Catalog of MCP prompt templates with collapsible argument lists.
Preview
Prompts
4- 3 args
- 2 args
- 0 args
- 3 args
Installation
pnpm add nyxis-ui
Usage
import { MCPPromptLibrary, type MCPPrompt } from 'nyxis-ui';
<MCPPromptLibrary prompts={prompts} onSelect={(p) => dispatch(p)} />;
Anatomy
- Each row: prompt name (mono), one-line description, argument count.
- Click the chevron to expand the declared args inline.
- Required args get a red asterisk; descriptions render to the right.
- Click the row body to dispatch — typically you’d then route the user to a
<ParameterForm>matching the args.