* Update mcp_sse.py Uses Python's built-in asyncio.timeout() context manager Properly handles timeout exceptions Maintains the same functionality but with correct async context management * [autofix.ci] apply automated fixes * add asyncio +clean up comment * [autofix.ci] apply automated fixes * missing arg_schema in Tool Missing args_schema inside cause that tools are generated without input schema and are not able to be properly executed as agent know tool, but dost know what input field tool have. Same problem looks to be in MCP STDIO. * fix Ruff Check Line 56: Error: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling TRY003 Avoid specifying long messages outside the exception class EM102 Exception must not use an f-string literal, assign to variable first * [autofix.ci] apply automated fixes * remove asyncio.timeout Remove asyncio.timeout() (not valid for Py3.10) and replace it by asyncio.wait_for() * [autofix.ci] apply automated fixes * Ruff (TRY300) Move return response.tools inside an else block. This makes it clearer that tools are returned only if the connection is successful, and not if a TimeoutError occurs. * fix: add session initialization check in MCPSseClient Added a check to ensure the session is initialized before attempting to list tools, raising a ValueError with a descriptive message if the session is None. This improves error handling and robustness of the MCPSseClient class. * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Sebastián Estévez <estevezsebastian@gmail.com> Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org> |
||
|---|---|---|
| .. | ||
| base | ||
| langflow/version | ||
| tests | ||
| .gitignore | ||
| Dockerfile | ||