fix: MCP component auto reset issue in non Tool Mode#10440
Conversation
Improves logic for updating tool dropdown options by checking if the server has changed and whether tool mode is active, reducing unnecessary updates. Adds a process_output_item method to parse tool output as JSON when appropriate, enhancing output handling.
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughBoth files update MCPToolsComponent logic. The Nvidia Remix.json file replaces the implementation with enhanced caching, error handling, and state management. The mcp_component.py file adds optimization flags to reduce unnecessary recomputation in update_build_config and clarifies tool-selection behavior. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~30 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touchesImportant Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional. ❌ Failed checks (1 error, 2 warnings)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…angflow-ai/langflow into fix-mcp-component-reload-issue
Updated component_index.json to include new Notion integration components: AddContentToPage, NotionDatabaseProperties, NotionListPages, NotionPageContent, NotionPageCreator, NotionPageUpdate, and NotionSearch. These components provide functionality for interacting with Notion databases and pages, including querying, creating, updating, and retrieving content.
add Select a tool selector to let dropdown load before interacting
Updated the code and code_hash for MCPToolsComponent in Nvidia Remix starter project and synchronized the component_index.json to reflect the latest code and metadata. This ensures consistency and includes recent improvements or fixes to the MCPToolsComponent implementation.
This pull request refines the logic for updating the build configuration in the
MCPComponentto avoid unnecessary UI updates and improve efficiency when switching servers and handling tool options. The main improvements focus on only resetting or updating tool-related options when the server actually changes, and on better handling of the "Tool Mode" state.Optimizations for tool dropdown and server switching:
remove_non_default_keys) when the server actually changes, preventing unwanted resets.Code cleanup and logic streamlining:
Summary by CodeRabbit
Bug Fixes
Performance