From b1e3d4b740ca34e8e4c129f2fbc5881495040ec5 Mon Sep 17 00:00:00 2001 From: shadcn Date: Thu, 28 Aug 2025 20:58:03 +0400 Subject: [PATCH] feat: mcp --- apps/v4/components/announcement.tsx | 2 +- apps/v4/content/docs/(root)/changelog.mdx | 33 +++++++++++++++++++++-- apps/v4/lib/flags.ts | 2 +- 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/apps/v4/components/announcement.tsx b/apps/v4/components/announcement.tsx index ab54691020..8f588a8560 100644 --- a/apps/v4/components/announcement.tsx +++ b/apps/v4/components/announcement.tsx @@ -7,7 +7,7 @@ export function Announcement() { return ( - Now available: shadcn CLI 3.0 + Now available: shadcn CLI 3.0 and MCP Server ) diff --git a/apps/v4/content/docs/(root)/changelog.mdx b/apps/v4/content/docs/(root)/changelog.mdx index 1d458e5660..a1f3423a3f 100644 --- a/apps/v4/content/docs/(root)/changelog.mdx +++ b/apps/v4/content/docs/(root)/changelog.mdx @@ -4,7 +4,7 @@ description: Latest updates and announcements. toc: false --- -## August 2025 - shadcn CLI 3.0 +## August 2025 - shadcn CLI 3.0 and MCP Server We just shipped shadcn CLI 3.0 with support for namespaced registries, advanced authentication, new commands and a completely rewritten registry engine. @@ -13,6 +13,7 @@ We just shipped shadcn CLI 3.0 with support for namespaced registries, advanced - [Namespaced Registries](#namespaced-registries) - Install components using `@registry/name` format. - [Private Registries](#private-registries) - Secure your registry with advanced authentication. - [Search & Discovery](#search--discovery) - New commands to find and view code before installing. +- [MCP Server](#mcp-server) - MCP server for all registries. - [Faster Everything](#faster-everything) - Completely rewritten registry resolution. - [Improved Error Handling](#improved-error-handling) - Better error messages for users and LLMs. - [Upgrade Guide](#upgrade-guide) - Migration notes for existing users. @@ -120,6 +121,34 @@ npx shadcn list @acme Preview components before installing them. Search across multiple registries. See the code and all dependencies upfront. +### MCP Server + +Lift Mode + +Back in April, we [introduced](https://x.com/shadcn/status/1917597228513853603) the first version of the MCP server. Since then, we've taken everything we learned and built a better MCP server. + +Here's what's new: + +- Works with all registries. Zero config +- One command to add to your favorite MCP clients +- We improved the underlying tools +- Better integration with the CLI and registries +- Support for multiple registries in the same project + +Add the MCP server to your project: + +```bash +npx shadcn@latest mcp init +``` + +See the [docs](/docs/mcp) for more details. + ### Faster Everything We completely rewrote the registry resolution engine from scratch. It's faster, smarter, and handles even the trickiest dependency trees. @@ -1042,7 +1071,7 @@ const SheetContent = React.forwardRef< {...props} > {children} - + Close diff --git a/apps/v4/lib/flags.ts b/apps/v4/lib/flags.ts index 4b6cd4daff..70f57d84f2 100644 --- a/apps/v4/lib/flags.ts +++ b/apps/v4/lib/flags.ts @@ -1 +1 @@ -export const showMcpDocs = process.env.NODE_ENV === "development" +export const showMcpDocs = true