Skip to content

Update dependencies and enhance secure environment management#12

Merged
Dumbris merged 5 commits into
mainfrom
bugfix/launchpad-env
Jul 9, 2025
Merged

Update dependencies and enhance secure environment management#12
Dumbris merged 5 commits into
mainfrom
bugfix/launchpad-env

Conversation

@Dumbris

@Dumbris Dumbris commented Jul 8, 2025

Copy link
Copy Markdown
Member
  • Bump github.com/mark3labs/mcp-go dependency to v0.33.0.
  • Introduce PathDiscovery struct for managing discovered paths of common tools.
  • Implement path discovery methods for macOS, Windows, and Unix systems.
  • Enhance Manager to utilize discovered paths for building a comprehensive environment variable list.
  • Improve error handling and logging in the Connect method of the client.

Dumbris added 5 commits July 8, 2025 22:19
- Bump `github.com/mark3labs/mcp-go` dependency to v0.33.0.
- Introduce `PathDiscovery` struct for managing discovered paths of common tools.
- Implement path discovery methods for macOS, Windows, and Unix systems.
- Enhance `Manager` to utilize discovered paths for building a comprehensive environment variable list.
- Improve error handling and logging in the `Connect` method of the client.
- Update BuildSecureEnvironment method to conditionally enhance PATH based on InheritSystemSafe configuration.
- Modify integration tests to assert inclusion of system paths in the enhanced PATH and ensure at least two safe system variables are filtered through.
- Update TestBuildSecureEnvironment to assert inclusion of system paths in the enhanced PATH using assert.Contains.
- Improve TestRealWorldNpxScenario to verify enhanced path discovery for executables, providing clearer error messages.
- Update TestBuildSecureEnvironment and TestSecureEnvironmentIntegration to conditionally set PATH and HOME based on the operating system.
- Improve TestGetSystemEnvVar and TestRealWorldNpxScenario to reflect platform-specific paths for better test accuracy.
- Ensure consistent handling of environment variables across different OS environments.
- Update path patterns for Node.js, Python, Rust, and Go to use a more consistent format with slashes.
- Modify discoverEnvironmentPaths method to improve clarity with named return values.
- Enhance environment variable setting in buildEnvironmentSetupScript for better readability.
@Dumbris Dumbris merged commit a58afca into main Jul 9, 2025
31 checks passed
@Dumbris Dumbris deleted the bugfix/launchpad-env branch July 14, 2025 08:52
rannow pushed a commit to rannow/mcpproxy-go that referenced this pull request Sep 23, 2025
…mcp-proxy#12)

* Update dependencies and enhance secure environment management

- Bump `github.com/mark3labs/mcp-go` dependency to v0.33.0.
- Introduce `PathDiscovery` struct for managing discovered paths of common tools.
- Implement path discovery methods for macOS, Windows, and Unix systems.
- Enhance `Manager` to utilize discovered paths for building a comprehensive environment variable list.
- Improve error handling and logging in the `Connect` method of the client.

* Enhance secure environment PATH management

- Update BuildSecureEnvironment method to conditionally enhance PATH based on InheritSystemSafe configuration.
- Modify integration tests to assert inclusion of system paths in the enhanced PATH and ensure at least two safe system variables are filtered through.

* Enhance tests for secure environment PATH validation

- Update TestBuildSecureEnvironment to assert inclusion of system paths in the enhanced PATH using assert.Contains.
- Improve TestRealWorldNpxScenario to verify enhanced path discovery for executables, providing clearer error messages.

* Enhance platform-specific environment setup in tests

- Update TestBuildSecureEnvironment and TestSecureEnvironmentIntegration to conditionally set PATH and HOME based on the operating system.
- Improve TestGetSystemEnvVar and TestRealWorldNpxScenario to reflect platform-specific paths for better test accuracy.
- Ensure consistent handling of environment variables across different OS environments.

* Refactor path discovery for macOS in Manager and AutostartManager

- Update path patterns for Node.js, Python, Rust, and Go to use a more consistent format with slashes.
- Modify discoverEnvironmentPaths method to improve clarity with named return values.
- Enhance environment variable setting in buildEnvironmentSetupScript for better readability.
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.

1 participant