- Notifications
You must be signed in to change notification settings - Fork899
Ensure toolsets are configurable via env var#348
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Ensure toolsets are configurable via env var#348
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this 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 makes toolsets configurable via an environment variable by refactoring the e2e test setup and updating the main server code to correctly unmarshal toolset configurations. Key changes include:
- Refactoring e2e tests to use sync.Once for token retrieval and Docker image building, along with introducing a ClientOpts mechanism to pass environment variables.
- Adding a new TestToolsets to validate toolset configuration via the environment variable.
- Updating the main command to unmarshal the "toolsets" configuration from the environment using viper.UnmarshalKey.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
File | Description |
---|---|
e2e/e2e_test.go | Refactored test setup and added toolset configuration test using new client options. |
cmd/github-mcp-server/main.go | Modified toolset configuration handling to support comma-separated values via environment vars. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Really neat PR. Loving the tests.
4e26dce
intomainUh oh!
There was an error while loading.Please reload this page.
Description
Fixes#307
Reviewer Notes
You can run the e2e tests and see a failure by adjusting
GITHUB_TOOLSETS
and running: