[Feature]: Configuration as code
Problem / motivation
MCPProxy is awesome, but bootstrapping it into new computers is cumbersome. Requires lots of manual steps.
Scripting through its CLI is possible, but making it work nicely would be a huge amount of work for every user.
There is no easy way to backup or ship my MCPProxy configuration via a dotfiles repository.
Proposed solution
Implement a proper "Configuration as code" mechanism, where MCPProxy would allow users to configure more things through YAML/JSON files like other tools do (VS Code is one example).
When some configuration is changed from UI, write that back to the configuration file.
When the configuration file is changed (users bringing or syncing their own dotfiles for example), re-load it.
I also think this can be done in steps:
- Support for a single MCP Servers configuration file (almost done, thanks to
mcpproxy upstream import) - Support for loading tool approvals via config file.
- Everything else?
It's implied but that would also mean implementing a file system watcher on ~/.mcpproxy.
Speaking of which, it may be a good time to reconsider it to be ~/.config/mcpproxy instead (and perhaps ~/.local/share/mcpproxy).
Alternatives considered
Scripting around CLI commands. Example:
mcpproxy upstream import- Check remaining ones, find which ones are not in config file
mcpproxy upstream removethem
Which edition?
Both / not sure
Pre-submission checklist
- [x] I searched existing issues and discussions for a similar request