Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies = [
"pyarrow==19.0.0",
"wikipedia==1.4.0",
"qdrant-client==1.9.2",
"weaviate-client==4.10.2",
"weaviate-client>=4.10.2,<5.0.0",
"faiss-cpu==1.9.0.post1",
"types-cachetools>=5.5.0.20240820,<6.0.0",
"pymongo==4.10.1",
Expand All @@ -37,7 +37,7 @@ dependencies = [
'fastavro>=1.9.8,<2.0.0; python_version >= "3.13"',
"redis>=5.2.1,<6.0.0",
"metaphor-python==0.1.23",
'pywin32==307; sys_platform == "win32"',
'pywin32>=307,<400; sys_platform == "win32"',
"langfuse==2.53.9",
"metal_sdk==2.5.1",
"MarkupSafe==3.0.2",
Expand Down Expand Up @@ -105,7 +105,8 @@ dependencies = [
"arize-phoenix-otel>=0.6.1,<1.0.0",
"openinference-instrumentation-langchain>=0.1.29,<0.1.52",
# "crewai>=0.126.0",
"mcp>=1.10.1,<2.0.0",
"fastmcp==2.13.0",
"mcp>=1.17.0,<2.0.0",
"uv==0.7.20",
"scipy>=1.14.1,<1.16.2",
"scrapegraph-py>=1.12.0,<2.0.0",
Expand Down
6 changes: 3 additions & 3 deletions src/backend/base/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ dependencies = [
"rich>=13.7.0,<14.0.0",
"langchain-experimental>=0.3.4,<1.0.0",
"sqlmodel==0.0.22",
"pydantic~=2.10.1",
"pydantic~=2.11.0",
"pydantic-settings>=2.2.0,<3.0.0",
"email-validator>=2.0.0",
"typer>=0.13.0,<1.0.0",
"cachetools>=5.5.0,<6.0.0",
"cachetools>=6.0.0",
"platformdirs>=4.2.0,<5.0.0",
"python-multipart>=0.0.12,<1.0.0",
"orjson==3.10.15",
Expand Down Expand Up @@ -80,7 +80,7 @@ dependencies = [
"validators>=0.34.0,<1.0.0",
"networkx>=3.4.2,<4.0.0",
"json-repair>=0.30.3,<1.0.0",
"mcp~=1.10.1",
"mcp>=1.17.0,<2.0.0",
"aiosqlite>=0.20.0,<1.0.0",
"greenlet>=3.1.1,<4.0.0",
"jsonquerylang>=1.1.1,<2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/lfx/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"docstring-parser>=0.16,<1.0.0",
"networkx>=3.4.2,<4.0.0",
"nanoid>=2.0.0,<3.0.0",
"cachetools>=5.5.2,<6.0.0",
"cachetools>=6.0.0",
"emoji>=2.14.1,<3.0.0",
"chardet>=5.2.0,<6.0.0",
"defusedxml>=0.7.1,<1.0.0",
Expand Down
9 changes: 6 additions & 3 deletions src/lfx/src/lfx/services/mcp_composer/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,15 @@ async def _start_project_composer_process(
f"(check {check + 1}/{max_startup_checks})"
)

# Try to read any available stderr without blocking (only log if there's an error)
# Try to read any available stderr/stdout without blocking
if process.stderr and select.select([process.stderr], [], [], 0)[0]:
try:
stderr_line = process.stderr.readline()
if stderr_line and "ERROR" in stderr_line:
await logger.aerror(f"MCP Composer error: {stderr_line.strip()}")
if stderr_line:
if "ERROR" in stderr_line:
await logger.aerror(f"MCP Composer error: {stderr_line.strip()}")
else:
await logger.adebug(f"MCP Composer stderr: {stderr_line.strip()}")
except Exception: # noqa: BLE001
pass

Expand Down
5 changes: 2 additions & 3 deletions src/lfx/src/lfx/services/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,8 @@ class Settings(BaseSettings):
# MCP Composer
mcp_composer_enabled: bool = True
"""If set to False, Langflow will not start the MCP Composer service."""
mcp_composer_version: str = "~=0.1.0.7"
"""Version constraint for mcp-composer when using uvx. Uses PEP 440 syntax.
~=0.1.0.7 allows patch updates (0.1.0.x) but prevents minor/major version changes."""
mcp_composer_version: str = "==0.1.0.21"
"""Version constraint for mcp-composer when using uvx. Uses PEP 440 syntax."""

# Public Flow Settings
public_flow_cleanup_interval: int = Field(default=3600, gt=600)
Expand Down
Loading
Loading