Build with your AI editor
Connect the shadcn MCP server and ask for any phongphan component by name. Your editor searches the registry and installs it for you.
01
Install the MCP server
Pick your AI client, run the command, then restart the client.
npx shadcn@latest mcp init --client vscode02
Add the registry to your project
Add the snippet to your components.json file so the server can find phongphan components.
{
"registries": {
"@phongphan": "https://byphongphan.com/r/{name}.json"
}
}03
Ask for a component
Describe what you want. A few prompts to start with:
Add a line nav component
Add a spotlight card component
Add a koi background component
Add a time scrubber component
Add an artcraft scroll scrubber
Add a useClickOutside hook
Add a middle truncation component
Add a scroll indicator with tick marks