feat(config): add yaml config file support#74
Conversation
|
Hi @konippi, thanks a lot for your PR. Our project was only recently released so we did not have a mechanism for RFCs. This is a new feature and ideally we would like you to open a issue in the project. I will add this to the contributing guideline soon. We do have plan to introduce a config feature, but it is not for local config, but the server-side config. And we are thinking of using The config will be added to the JSON RPC message to send to the remote server. The feature is currently under development so we cannot merge this PR for now. However, we do think having a config makes sense. We need to figure out a default location of this config such as in I will create a issue for this so that you can track the progress. |
|
Thank you for explaining that to me. I'll close this PR now. |
Summary
Changes
Add support for loading configuration from YAML files, allowing users to manage complex configurations more easily. CLI arguments take precedence over file configuration for maximum flexibility.
User experience
Before
# Long command line with many arguments mcp-proxy-for-aws https://example.com/mcp \ --service my-service \ --profile production \ --region us-east-1 \ --read-only \ --log-level DEBUG \ --retries 3 \ --timeout 200After
# Simple command with config file mcp-proxy-for-aws --config config.yamlChecklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change? (Y/N)
Please add details about how this change was tested.
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.