fix: set mcp_composer feature as true by default (#9522)

* Set mcp composer feature flag as default true

* Add env var to .env.example
This commit is contained in:
Lucas Oliveira 2025-08-25 18:03:57 -03:00 committed by GitHub
commit bd1bec6224
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -101,6 +101,11 @@ LANGFLOW_SUPERUSER_PASSWORD=
# Values: true, false
LANGFLOW_STORE_ENVIRONMENT_VARIABLES=
# Should enable the MCP composer feature in MCP projects
# Values: true, false
# Default: true
LANGFLOW_FEATURE_MCP_COMPOSER=
# STORE_URL
# Example: LANGFLOW_STORE_URL=https://api.langflow.store
# LANGFLOW_STORE_URL=

View file

@ -3,7 +3,7 @@ from pydantic_settings import BaseSettings
class FeatureFlags(BaseSettings):
mvp_components: bool = False
mcp_composer: bool = False
mcp_composer: bool = True
class Config:
env_prefix = "LANGFLOW_FEATURE_"

View file

@ -54,7 +54,7 @@ export default defineConfig(({ mode }) => {
envLangflow.LANGFLOW_AUTO_LOGIN ?? true,
),
"process.env.LANGFLOW_FEATURE_MCP_COMPOSER": JSON.stringify(
envLangflow.LANGFLOW_FEATURE_MCP_COMPOSER ?? "false",
envLangflow.LANGFLOW_FEATURE_MCP_COMPOSER ?? "true",
),
},
plugins: [react(), svgr(), tsconfigPaths()],