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:
parent
a642691fb1
commit
bd1bec6224
3 changed files with 7 additions and 2 deletions
|
|
@ -101,6 +101,11 @@ LANGFLOW_SUPERUSER_PASSWORD=
|
||||||
# Values: true, false
|
# Values: true, false
|
||||||
LANGFLOW_STORE_ENVIRONMENT_VARIABLES=
|
LANGFLOW_STORE_ENVIRONMENT_VARIABLES=
|
||||||
|
|
||||||
|
# Should enable the MCP composer feature in MCP projects
|
||||||
|
# Values: true, false
|
||||||
|
# Default: true
|
||||||
|
LANGFLOW_FEATURE_MCP_COMPOSER=
|
||||||
|
|
||||||
# STORE_URL
|
# STORE_URL
|
||||||
# Example: LANGFLOW_STORE_URL=https://api.langflow.store
|
# Example: LANGFLOW_STORE_URL=https://api.langflow.store
|
||||||
# LANGFLOW_STORE_URL=
|
# LANGFLOW_STORE_URL=
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ from pydantic_settings import BaseSettings
|
||||||
|
|
||||||
class FeatureFlags(BaseSettings):
|
class FeatureFlags(BaseSettings):
|
||||||
mvp_components: bool = False
|
mvp_components: bool = False
|
||||||
mcp_composer: bool = False
|
mcp_composer: bool = True
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
env_prefix = "LANGFLOW_FEATURE_"
|
env_prefix = "LANGFLOW_FEATURE_"
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ export default defineConfig(({ mode }) => {
|
||||||
envLangflow.LANGFLOW_AUTO_LOGIN ?? true,
|
envLangflow.LANGFLOW_AUTO_LOGIN ?? true,
|
||||||
),
|
),
|
||||||
"process.env.LANGFLOW_FEATURE_MCP_COMPOSER": JSON.stringify(
|
"process.env.LANGFLOW_FEATURE_MCP_COMPOSER": JSON.stringify(
|
||||||
envLangflow.LANGFLOW_FEATURE_MCP_COMPOSER ?? "false",
|
envLangflow.LANGFLOW_FEATURE_MCP_COMPOSER ?? "true",
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
plugins: [react(), svgr(), tsconfigPaths()],
|
plugins: [react(), svgr(), tsconfigPaths()],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue