Add pinned shadcn MCP as the v1.2.0 UI registry hub - #3
Merged
Conversation
One enabled stdio server (shadcn@4.18.0) searches and installs from shadcn-compatible registries. Routing requires search-then-inspect, visual restraint, and a components.json gate. 21st.dev and extra UI MCPs stay out of policy.
Make the MCP config rewrite section-aware so startup_timeout_sec is upserted once and stays idempotent across reinstalls. Fail preflight and doctor unless Node is >=20.18.1 and npx exists, matching shadcn 4.18.0 engines. Treat a missing policy command as MCP_COMMAND_MISSING. Require inspect of file targets and collisions before install, and document that registry search may write components.json.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npx -y shadcn@4.18.0 mcp.reference/ui-hub.md): search → inspect → pick one → install. Registries (@shadcn,@animate-ui,@aceternity,@react-bits,@kibo-ui,@magicui) stay behind that hub.components.jsonbefore init/install.Test plan
python3 tests/test-mcp-state.pybash tests/test-source-integrity.shpython3 tests/test-routing-eval.pybash tests/test-doctor-dry-run.shbash tests/test-no-secrets.shbash scripts/ci-gitleaks.shgrok mcp doctor shadcnhealthytestcheck on this PR