fix(mcp): point generated mcp config at the @pandacss/dev binary#3563
Open
Adebesin-Cell wants to merge 2 commits into
Open
fix(mcp): point generated mcp config at the @pandacss/dev binary#3563Adebesin-Cell wants to merge 2 commits into
Adebesin-Cell wants to merge 2 commits into
Conversation
`panda init-mcp` wrote a config that runs `npx panda mcp`, but `panda` is an unrelated package on npm with no bin, so AI clients failed to start the server with "could not determine executable to run" (`bunx panda mcp` hits the same). generate `npx -y --package @pandacss/dev panda mcp` instead. it resolves the right binary and falls back to the local install when one is present.
🦋 Changeset detectedLatest commit: 6acc2be The changes in this PR will be included in the next version bump. This PR includes changesets to release 24 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@Adebesin-Cell is attempting to deploy a commit to the Chakra UI Team on Vercel. A member of the Team first needs to authorize it. |
1 task
the mcp server reads its config from cwd, and clients don't reliably spawn it in the project. set `cwd` on the generated server entry to the project dir so the config is always found, instead of relying on a client-specific env var.
240d834 to
6acc2be
Compare
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.
what
panda init-mcpgenerated a server config that runsnpx panda mcp. that command can't run:pandais an unrelated package on npm with no bin. the generated config now runsnpx -y --package @pandacss/dev panda mcp.why
AI clients spawn the generated command to start the mcp server. with
npx panda mcpthey fail withcould not determine executable to run, so the server never starts. came in as a user report.bunx panda mcpfails the same way.notes
bunx. npx ships with node, so pnpm/yarn users still get a runnable command without per-manager handling.Please pass in filename to use requireunder bun) is a separatebundle-n-require/node-evalissue and is not in this PR.test plan
pnpm test packages/mcp(newclients.test.ts, 2 tests)npx -y --package @pandacss/dev panda mcpresolves the binary in a clean dir (only fails on the missing config, as expected)bunx --package @pandacss/dev panda mcpandpnpm --package=@pandacss/dev dlx panda mcpresolve too;npx panda mcp/bunx panda mcpreproduce the original failure