When a task requires building or modifying a user interface, you must use the tools available in the shadcn-ui MCP server.
When planning a UI build using shadcn:
- Discover Assets: First, use
list_components()andlist_blocks()to see all available assets in the MCP server. - Map Request to Assets: Analyze the user's request and map the required UI elements to the available components and blocks.
- Prioritize Blocks: You should prioritize using blocks (
get_block) wherever possible for common, complex UI patterns (e.g., login pages, calendars, dashboards). Blocks provide more structure and accelerate development. Use individual components (get_component) for smaller, more specific needs.