Skip to content
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

Automatically find PATH to execute stdio process #10

Merged
merged 3 commits into from
Feb 28, 2025
Merged

Automatically find PATH to execute stdio process #10

merged 3 commits into from
Feb 28, 2025

Conversation

gsabran
Copy link
Owner

@gsabran gsabran commented Feb 27, 2025

Summary

Automatically find PATH to execute stdio process.

Details

When running from a MacOC app, the process environment is not the same as when running an executable from the terminal. Consequently, the PATH is likely to not contain the desired executables (npx, uvx etc).
-> When the executable is unknown in the current environment, try to load the environment that is the default with zsh, ie /bin/zsh -c source ~/.zshrc && printenv

Also added a small example of how to use an MCP client.

Checklist before merging

  • If this is a new feature or a bug fix, I have added tests.

Copy link

@jamesrochabrun jamesrochabrun left a comment

Choose a reason for hiding this comment

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

Nice!

@gsabran gsabran merged commit 8979940 into main Feb 28, 2025
2 checks passed
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