Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@justjoehere
Copy link
Contributor

This PR fixes 2 issues:

  1. The dev action in cli.py could not find node or npx in the running processes due to the way they are called and managed. Added additional code for windows that checks for node/npx properly. This required an OS aware test change. Windows calls for npx subprocess twice, and unix only once. The test was only expecting once in all occasions.

  2. If a MCP server included modules, the cli would fail to build them because it wouldn't do it from the root of the mcp server being built. Added short code to add parent directory to path if not already there.

…dev mode.

2) Fixing this for allowing server.py files to include module imports.  Before they weren't resolving properly.
… twice, once to find it, and once to execute it, but unix will only call once.
@jlowin jlowin merged commit 7bf0e1e into jlowin:main Dec 3, 2024
4 checks passed
jordicore pushed a commit to jordicore/fastmcp that referenced this pull request Jul 2, 2025
Additional Windows Fixes for Dev running and for importing modules in a server
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.

2 participants