Add proposal for generalized template customization system #1767
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a comprehensive proposal for a generalized template customization system in ToolHive, addressing issue #1737.
Problem
Currently, ToolHive doesn't support specifying custom package registries (NPM, PyPI, Go proxy) when running MCP servers. This is a critical limitation for enterprise environments that use private registries.
Solution
The proposal introduces a flexible, extensible configuration system that:
Key Features
1. Stage-Aware Configuration
2. Multiple Configuration Methods
3. Extensible Profile System
Implementation Plan
The proposal includes a detailed 5-phase implementation plan:
thv runandthv buildcommands)Benefits
Related Issues
Fixes #1737
Documentation
The proposal document includes:
Next Steps
Once this proposal is reviewed and approved, implementation can begin following the phased approach outlined in the document.
Note: This proposal is designed to be implemented by an LLM, with clear structure and examples throughout.