* Added mcpinput to the backend
* Fixed list selection component to contain descriptions
* Added mcp component in the frontend with mock values
* Added mcp rendering on Parameter Render Component
* Changed input to be more concise and to have dynamic placeholder
* Added header search placeholder
* Fixed styling to match new input
* Removed unused params
* Adds AddMcpServerModal's first mock version
* Adds Add button on mcp component and list selection component
* First pass at mcp api
* Add PATCH endpoint
* Add DELETE endpoint
* fix: Bump version numbers for langflow and langflow-base to 1.4.3 and 0.4.3 respectively
* fix: Remove Igor Carvalho from maintainers list in pyproject.toml
* fix(agent): reset model list when provider changes
Switching the provider in the Agent component sometimes left models from
the previous provider visible/selected.
We now filter against the new , ensuring only
models that belong to the active provider remain.
* src/frontend/src/components/core/dropdownComponent/index.tsx
– add guard when rebuilding
* tests/extended/regression/general-bugs-dropdown-select-not-in-list.spec.ts
– expand coverage for “model not in list” edge-cases
Co-authored-by: Cristian Lousa <cristian.lousa@gmail.com>
* fix: Update Pokédex Agent template (#8373)
* Implement adding and getting MCP servers, implemented addMcpServerModal
* Added sse and stdio ways of adding a server
* Added no actions handling
* added new mcp type to constants
* Added headers to add mcp server modal
* Changed mcp component to allow persistent mcp servers
* fix input list component gradient
* fix add server modal to patch when initial data is present, and to clean variables when switching tabs
* changed message on add mcp server
* Added required mutations for mcp page
* Added mcp servers page
* Changed design of page
* Fixed delete problems and added delete confirmation
* fixed wrong error parsing
* changed padding
* Made added server be used on mcp component
* refactor: remove references to the langflow store (#8354)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
fix: apikey lock issue and add option to disable tracking (#8361)
* Fixed search on sidebar
* fixed infinite use effect
* Fixed error handling
* Fixed tool mode disappearing
* fixed key pair button submitting form
* Fixed bugs
* Added required
* Changed message
* Disabled other tabs when modifying
* Removed tool dropdown if the mcp server is empty
* parsed name
* fixed data test id not applying
* fixed mcp component
* Fixed component not working when only stdio command is present
* refactored tests
* Updated mcp_component to remove old non default keys
* Added data-testids
* Modified tests to include settings page functionality
* [autofix.ci] apply automated fixes
* Refactor out the core part of the mcp
* [autofix.ci] apply automated fixes
* Added placeholders on frontend components for errors
* Fixed bugs with mcp component
* updated bug
* fix: made empty project appear instead of empty flows list when mcp is enabled (#8336)
* try to fix
* Fix MCP persistence
* Update mcp_component.py
* Update mcp.py
* [autofix.ci] apply automated fixes
* fix: Bump version numbers for langflow and langflow-base to 1.4.3 and 0.4.3 respectively
* fix: Remove Igor Carvalho from maintainers list in pyproject.toml
* fix(agent): reset model list when provider changes
Switching the provider in the Agent component sometimes left models from
the previous provider visible/selected.
We now filter against the new , ensuring only
models that belong to the active provider remain.
* src/frontend/src/components/core/dropdownComponent/index.tsx
– add guard when rebuilding
* tests/extended/regression/general-bugs-dropdown-select-not-in-list.spec.ts
– expand coverage for “model not in list” edge-cases
Co-authored-by: Cristian Lousa <cristian.lousa@gmail.com>
* refactor: remove references to the langflow store (#8354)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
fix: apikey lock issue and add option to disable tracking (#8361)
* fix: made empty project appear instead of empty flows list when mcp is enabled (#8336)
* fix mcp client async problems
* fixed mcp sse access
* [autofix.ci] apply automated fixes
* Made values be maintained when refreshing page
* Fixed bugs with tool mode and switching from tool mode to not tool mode
* Update mcp_component.py
* Update test_mcp_component.py
* Don't expose file by name as external endpoint
* Update files.py
* Update files.py
* Add checks for id
* Refactor tests
* Update test_mcp_component.py
* Update test_mcp_component.py
* Update test_mcp_component.py
* updated tests
* re-added placeholder on input for tests to not fail
* updated session selector in order for tests to work
---------
Co-authored-by: Eric Hare <ericrhare@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
Co-authored-by: Cristian Lousa <cristian.lousa@gmail.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: Deon Sanchez <69873175+deon-sanchez@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
Co-authored-by: Ítalo Johnny <italojohnnydosanjos@gmail.com>
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
* chore: remove setup-uv action configuration file as it is no longer needed
* chore: update setup-uv action to use the official action across all workflows
* chore: disable cache pruning in all workflows to improve build stability
* chore: update Python version to 3.13 and add pre-release description in workflows
* Changed textarea classes
* Changed flowsettingscomponent to use form
* changed edit flow settings to use form and to submit on enter
* Reset form data on close
* Updated disabled state to have lower opacity instead of to have set background
* Fixed loading state of button
* Fixed bug where starter projects were refactored incorrectly
* fix: improve handling of selected outputs in custom component template builder
- Added checks to ensure selected output is valid before attempting to set its state.
- Enhanced code readability with comments explaining the logic for selecting outputs.
* Set selected output as the previous selected output
* Update base.py
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
* feat: add formatPayloadTweaks utility and integrate into API code generation
* feat: integrate formatPayloadTweaks utility for centralized payload processing in API code generation
* refactor: clean up formatPayloadTweaks import and improve curl command formatting
* refactor: remove commented code and streamline payload processing in APITabsComponent
* fix: uncomment TextInput in INPUT_TYPES constant
* fix: uncomment TextInput in INPUT_TYPES and update filter-tweaks to include it
* refactor: update OutputComponent styles and enhance dropdown functionality
* Adjusted text size in OutputComponent for better readability.
* Improved dropdown button styling and added hover effects.
* Enhanced dropdown content layout to display output types alongside names.
* Added console log for outputs to assist in debugging.
* refactor: remove console log from OutputComponent for cleaner code
* refactor: streamline GenericNode component and enhance NodeOutputs functionality
* Removed conditional rendering for hidden outputs in GenericNode for cleaner code.
* Introduced hasExistingHiddenOutputs prop to NodeOutputs for better state management.
* Updated OutputComponent styles for improved visual consistency and output type display.
* style: update OutputComponent padding for improved layout
* Added padding to the OutputComponent for better spacing and visual consistency.
* Update pass_message.py
* Update src/backend/base/langflow/components/logic/pass_message.py
Co-authored-by: Eric Hare <ericrhare@gmail.com>
---------
Co-authored-by: Eric Hare <ericrhare@gmail.com>
Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com>
* only allow customvals and options to be in the options list
* ✨ (general-bugs-dropdown-select-not-in-list.spec.ts): add additional test cases to cover dropdown selection functionality and ensure correct behavior in the frontend application
---------
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* Update loop.py
* [autofix.ci] apply automated fixes
* Update loop-component.spec.ts
* change dataframe input name to inputs
* [autofix.ci] apply automated fixes
* 🐛 (typescript_test.yml): increase the maximum shard count to 40 to improve test distribution and efficiency
* 🔧 (typescript_test.yml): adjust optimal shard count calculation to use a maximum of 10 shards instead of 40 for better test distribution
🐛 (loop-component.spec.ts): fix getByTestId selector to match the updated element ID for testing purposes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Yuqi Tang <yuqi.tang@datastax.com>
Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
* ⚡️ Speed up method `JobQueueService.create_queue` by 630% in PR #5940 (`refactor-build-flow`)
Certainly! To optimize the provided `JobQueueService` class to run faster, we should ensure the code efficiency in creating event managers and handling queues. We can speed up the process by making the following changes.
1. Remove redundant logger calls if they don't provide essential debugging or monitoring information.
2. Inline `create_default_event_manager` function to avoid redundant function calls while ensuring that the `EventManager` setup remains efficient.
3. Ensure faster dictionary access and error message handling.
Here is the rewritten and optimized code.
In this optimization.
1. The `create_queue` method was streamlined to reduce redundancy checks and fewer logger messages.
2. The `create_default_event_manager` function is integrated directly as `_create_default_event_manager` private method within the class.
3. Utilized list iteration instead of multiple function calls to register events efficiently in the `EventManager`.
These changes aim to maintain functionality while improving performance where possible, particularly in the setup process.
* fix: improve error messages in JobQueueService for better clarity
* [autofix.ci] apply automated fixes
* refactor: Relax event type constraint in EventManager
Change event type from a strict literal to a more flexible string type, allowing for greater extensibility in event registration
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes
* fix: update send_event method to use str for event_type
* fix: change event_type parameter to str and handle invalid types in create_event_by_type
* fix: Add noqa comment to suppress linting warning for access_host assignment
---------
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* chore: update langchain-anthropic dependency to version 0.3.14 and adjust revision in uv.lock
* fix: add workaround for handling function calling in Anthropic output processing
* Fix indentation
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix: remove duplicate error message in _extract_output_text function
* fix: update _build_llm_model to handle missing attributes gracefully
* fix: handle max_tokens default value and improve error handling in AnthropicModelComponent
* fix: enhance input handling in Component class to manage deepcopy errors
* fix: add 'no_blockbuster' marker to pytest configuration for improved test control
* fix: refactor agent component tests to include all OpenAI and Anthropic models, improving validation and error reporting
* fix: update agent components to include pydantic validation and improve error handling across multiple starter projects
* fix: set default max_tokens value in AnthropicModelComponent and improve API URL handling
* fix: enhance error reporting in AgentComponent tests by capturing exceptions and response discrepancies for all Anthropic models
* chore: update package versions in uv.lock, including alembic, arize-phoenix-otel, bce-python-sdk, boto3-stubs, botocore-stubs, tornado, and others for improved compatibility and features
* fix: update agent components across multiple starter projects to include new imports and improve error handling
* fix: streamline max_tokens handling in AnthropicModelComponent for improved clarity and robustness
* [autofix.ci] apply automated fixes
* fix: update artifacts_raw type to allow None for better flexibility
* fix: initialize artifacts_raw as an empty dict if None to prevent errors
* fix: specify type for similarity_score to enhance type safety and clarity
* fix: refactor JSON parsing to improve variable naming and clarity
* fix: skip flaky test in Portfolio Website Code Generator until stabilized
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>