feat(server): Implements support for visible tools whitelist and extra config. #71
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.
Added support for a tool whitelist mode to the
--visible-toolsparameter, registering only specified tools.Added support for dynamically extending service and API configurations to the
--extra-configparameter.Implemented the
_register_tools_with_filterfunction to register tools based on the whitelist and additional configurations.Fixed the mutual exclusion logic between the
code_deployandvisible_toolsparameters to avoid conflicts.Modified the merging and application of
extra_configto service API configurations in normal mode.Added detailed logging of the tool registration and additional configuration merging process.
Added extensive unit tests to cover
visible_tools,extra_config, and code deployment modes.Added compatibility for parsing
extra_configconfigurations in JSON and Python dict string formats.Optimized tool module loading logic to support mixed registration of static and dynamic API tools.
Change-Id: Ia3a148672783d7142a241d9b26698e1c57b01365
Co-developed-by: Qoder [email protected]