Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

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
Contributor

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants