UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
feat: add magicui mcp docs
Dillion Verma8303f48745db
diff --git a/config/docs.ts b/config/docs.tsindex bf4fced9..fae74194 100644--- a/config/docs.ts+++ b/config/docs.ts@@ -78,6 +78,12 @@ export const docsConfig: DocsConfig = {items: [],label: "New",},+ {+ title: "MCP",+ href: "/docs/mcp",+ items: [],+ label: "New",+ },],},{diff --git a/content/docs/mcp.mdx b/content/docs/mcp.mdxnew file mode 100644index 00000000..9202a647--- /dev/null+++ b/content/docs/mcp.mdx@@ -0,0 +1,107 @@+---+title: MCP (Model Context Protocol)+description: Learn how to use the Model Context Protocol with Magic UI.+date: 2025-04-16+---++Magic UI now has an official MCP server 🎉.++[MCP](https://modelcontextprotocol.com/) is an open protocol that standardizes how applications provide context to LLMs.++This is useful for Magic UI because you can now give your IDE direct access to all Magic UI components implementation details and examples.++<Tabs defaultValue="cli">++<TabsList>+ <TabsTrigger value="cli">CLI</TabsTrigger>+ <TabsTrigger value="manual">Manual</TabsTrigger>+</TabsList>++<TabsContent value="cli">++<Steps>++<Step>Installation</Step>++<Tabs defaultValue="cursor">+ <TabsList>+ <TabsTrigger value="cursor">Cursor</TabsTrigger>+ <TabsTrigger value="windsurf">Windsurf</TabsTrigger>+ <TabsTrigger value="claude">Claude</TabsTrigger>+ <TabsTrigger value="cline">Cline</TabsTrigger>+ <TabsTrigger value="roo-cline">Roo-Cline</TabsTrigger>+ </TabsList>+ <TabsContent value="cursor">++ ```bash+ npx @magicuidesign/cli@latest install cursor+ ```++ </TabsContent>+ <TabsContent value="windsurf">++ ```bash+ npx @magicuidesign/cli@latest install windsurf+ ```++ </TabsContent>+ <TabsContent value="claude">++ ```bash+ npx @magicuidesign/cli@latest install claude+ ```++ </TabsContent>+ <TabsContent value="cline">++ ```bash+ npx @magicuidesign/cli@latest install cline+ ```++ </TabsContent>+ <TabsContent value="roo-cline">++ ```bash+ npx @magicuidesign/cli@latest install roo-cline+ ```++ </TabsContent>+</Tabs>++<Step>Restart your IDE</Step>++</Steps>++</TabsContent>+<TabsContent value="manual">++<Steps>++<Step>Add the following to your MCP config file:</Step>++```json+{+ "mcpServers": {+ "@magicuidesign/mcp": {+ "command": "npx",+ "args": ["-y", "@magicuidesign/mcp"]+ }+ }+}+```++<Step>Restart your IDE</Step>++</Steps>++</TabsContent>++</Tabs>++## Usage++You can now ask your IDE to use any Magic UI component. Here are some examples:++- "Add a blur fade text animation"+- "Add a grid background"+- "Add a vertical marquee of logos"diff --git a/public/mcp.json b/public/mcp.jsonnew file mode 100644index 00000000..cf4bf84d--- /dev/null+++ b/public/mcp.json@@ -0,0 +1,8 @@+{+ "mcpServers": {+ "@magicuidesign/mcp": {+ "command": "npx",+ "args": ["-y", "@magicuidesign/mcp"]+ }+ }+}