fix: add error handling and message on mcp servers, fixed tool mode on mcp (#8717)

* Added mcp error handling

* Added error param to servers

* Added error display on mcp servers page

* Added error display on mcp component

* Added error handling for other types of errors

* uv lock update and add error handling

* update mcp version

* fixed tool mode not working on mcp component

* update mcp to 1.9.4

* Removed server parameters custom commands on connection to stdio

* removed unused import

* disable mcp notice

* Removed drop state when home type is mcp

* Added loading before showing tools

* Updated mcp to 1.9.4

* Decreased mcp timeout

* Implemented error surfacing with exec command

* removed non default keys either way when mcp_server is used

* update to session handling

* [autofix.ci] apply automated fixes

* updated it to check if it is the same server to not clear on startup

* update to components

* Update mcp_component.py

* Update mcp_component.py

* Update mcp_component.py

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Lucas Oliveira 2025-06-26 19:22:01 -03:00 • committed by GitHub
commit f4d761e63d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 178 additions and 45 deletions

5
uv.lock generated
View file

@ -3,6 +3,7 @@ revision = 2
requires-python = ">=3.10, <3.14"
resolution-markers = [
"python_full_version >= '3.13' and sys_platform == 'darwin'",
"python_version < '0'",
"python_full_version >= '3.13' and platform_machine == 'aarch64' and sys_platform == 'linux'",
"(python_full_version >= '3.13' and platform_machine != 'aarch64' and sys_platform == 'linux') or (python_full_version >= '3.13' and sys_platform != 'darwin' and sys_platform != 'linux')",
"python_full_version >= '3.12.4' and python_full_version < '3.13' and sys_platform == 'darwin'",
@ -5086,7 +5087,7 @@ requires-dist = [
{ name = "llama-cpp-python", marker = "extra == 'local'", specifier = "~=0.2.0" },
{ name = "markdown", specifier = "==3.7" },
{ name = "markupsafe", specifier = "==3.0.2" },
{ name = "mcp", specifier = ">=0.9.1" },
{ name = "mcp", specifier = ">=1.9.4" },
{ name = "mem0ai", specifier = "==0.1.34" },
{ name = "metal-sdk", specifier = "==2.5.1" },
{ name = "metaphor-python", specifier = "==0.1.23" },
@ -5363,7 +5364,7 @@ requires-dist = [
{ name = "llama-cpp-python", marker = "extra == 'all'", specifier = ">=0.2.0" },
{ name = "llama-cpp-python", marker = "extra == 'local'", specifier = ">=0.2.0" },
{ name = "loguru", specifier = ">=0.7.1,<1.0.0" },
{ name = "mcp", specifier = ">=1.6.0" },
{ name = "mcp", specifier = "~=1.9.4" },
{ name = "multiprocess", specifier = ">=0.70.14,<1.0.0" },
{ name = "nanoid", specifier = ">=2.0.0,<3.0.0" },
{ name = "nest-asyncio", specifier = ">=1.6.0,<2.0.0" },