Skip to content

fix: npx path in windows is npx.cmd #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2025

Conversation

JoJoJoJoJoJoJo
Copy link
Contributor

resolves #153

@JoJoJoJoJoJoJo JoJoJoJoJoJoJo marked this pull request as ready for review June 6, 2025 12:21
@Copilot Copilot AI review requested due to automatic review settings June 6, 2025 12:21
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the Windows compatibility issue by ensuring that the correct NPX command ("npx.cmd") is used when running commands.

  • Introduces the NPX_CMD constant in platform.py to differentiate between Windows and other platforms.
  • Updates inspector.py and client.py to use NPX_CMD instead of the hard-coded "npx".
  • Updates cli.py to include "inspector" in the valid command list.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/mcpm/utils/platform.py Defines NPX_CMD for Windows compatibility.
src/mcpm/commands/inspector.py Refactors command strings to use NPX_CMD for uniformity.
src/mcpm/commands/client.py Updates command configuration to use NPX_CMD.
src/mcpm/cli.py Adds "inspector" to the recognized commands list.

@JoJoJoJoJoJoJo JoJoJoJoJoJoJo enabled auto-merge (squash) June 6, 2025 12:22
@JoJoJoJoJoJoJo JoJoJoJoJoJoJo merged commit 9dc8746 into main Jun 7, 2025
6 checks passed
@JoJoJoJoJoJoJo JoJoJoJoJoJoJo deleted the jonathan/fix-npx-cmd-in-windows branch June 7, 2025 00:40
mcpm-semantic-release bot pushed a commit that referenced this pull request Jun 7, 2025
## [1.13.4](v1.13.3...v1.13.4) (2025-06-07)

### Bug Fixes

* npx path in windows is npx.cmd ([#169](#169)) ([9dc8746](9dc8746))
@mcpm-semantic-release
Copy link

🎉 This PR is included in version 1.13.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Windows mcpm inspector
2 participants