codeant-ai-for-open-source[bot] commented on code in PR #45084:
URL: https://github.com/apache/superset/pull/45084#discussion_r4217628295
##########
superset/mcp_service/server.py:
##########
@@ -1075,6 +1128,13 @@ def run_server(
tool_search_config = MCP_TOOL_SEARCH_CONFIG
if tool_search_config.get("enabled", False):
_apply_tool_search_transform(mcp_instance, tool_search_config)
+ else:
+ _apply_compact_tool_list_transform(
+ mcp_instance,
+ factory_flask_app.config.get(
+ "MCP_NATIVE_TOOL_LIST_CONFIG", MCP_NATIVE_TOOL_LIST_CONFIG
+ ),
+ )
Review Comment:
✅ **CodeAnt verified this suggestion was addressed in subsequent commits and
marked this thread resolved** as of `b2558a6`.
Factory startup now reads `MCP_TOOL_SEARCH_CONFIG` from Flask config,
falling back to the module setting. When search is disabled, it applies the
compact native tool list transform using the Flask-configured native list
settings.
<sub>If that's not right, unresolve this thread and CodeAnt will leave it
open.</sub>
<!-- codeant-auto-resolve-reply -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]