MCP access to registries in a monorepo #8228
Unanswered
erikpr1994
asked this question in
Q&A
Replies: 1 comment
-
|
I had this issue, you can use the {
"mcpServers": {
"shadcn": {
"command": "bash",
"args": ["-c", "cd ${workspaceFolder} && npx -y shadcn@latest mcp"],
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to configure the shadcn MCP server within a monorepo using cursor, and although I have configured the registries key in the components.json file correctly, the MCP has only access to the default shadcn registry.
I guess that the MCP is searching for a base components.json file in the root, but as it's a monorepo, the components.json file is within each workspace, and not the root.
Is there any way to solve it to have access to the registry without needing to open only the workspace folder and be able to maintain the entire monorepo opened in cursor?
Beta Was this translation helpful? Give feedback.
All reactions