MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / McpServer

Function McpServer

src/docs/McpServer.jsx:70–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68};
69
70const McpServer = () => {
71 const [selectedClient, setSelectedClient] = useState('claude');
72
73 useScrollToTop();
74
75 return (
76 <section className="docs-section">
77 <h3 className="docs-category-title">MCP Server</h3>
78
79 <p className="docs-paragraph">
80 <a style={{ textDecoration: 'underline' }} href="https://modelcontextprotocol.io/" target="_blank" rel="noreferrer">
81 Model Context Protocol (MCP)
82 </a>{' '}
83 is an open standard that enables AI assistants to securely connect to external data sources and tools.
84 </p>
85
86 <p className="docs-paragraph dim">
87 React Bits encourages the use of the shadcn MCP server to browse, search, and install components using natural
88 language.
89 </p>
90
91 <hr className="docs-separator" />
92
93 <h3 className="docs-category-title">Quick Start</h3>
94
95 <p className="docs-paragraph">
96 Registries are configured in your project&apos;s <span className="docs-highlight">components.json</span> file,
97 where you should first add the <span className="docs-highlight">@react-bits</span> registry:
98 </p>
99 <CodeBlock showLineNumbers>{`{
100 "registries": {
101 "@react-bits": "https://reactbits.dev/r/{name}.json"
102 }
103}`}</CodeBlock>
104
105 <p className="docs-paragraph dim">
106 Then, from the options below, select your client & set up the shadcn MCP server.
107 </p>
108
109 <MethodSelector methods={CLIENTS} selected={selectedClient} onSelect={setSelectedClient} />
110
111 <ClientInstructions client={selectedClient} />
112
113 <hr className="docs-separator" />
114
115 <h3 className="docs-category-title">Learn more</h3>
116
117 <p className="docs-paragraph dim" style={{ marginBottom: '16px' }}>
118 To learn more about using the shadcn MCP server, including manual setup for different clients, please visit the
119 official documentation:
120 </p>
121
122 <a
123 className="docs-paragraph"
124 style={{ textDecoration: 'underline' }}
125 href="https://ui.shadcn.com/docs/mcp"
126 target="_blank"
127 rel="noreferrer"

Callers

nothing calls this directly

Calls 1

useScrollToTopFunction · 0.85

Tested by

no test coverage detected