Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ LANGFLOW_STORE_ENVIRONMENT_VARIABLES=

# Should enable the MCP composer feature in MCP projects
# Values: true, false
# Default: true
# Default: false
LANGFLOW_FEATURE_MCP_COMPOSER=

# STORE_URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class FeatureFlags(BaseSettings):
mvp_components: bool = False
mcp_composer: bool = True
mcp_composer: bool = False

class Config:
env_prefix = "LANGFLOW_FEATURE_"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import LangflowLogo from "@/assets/LangflowLogo.svg?react";
import { TextEffectPerChar } from "@/components/ui/textAnimation";
import CustomChatInput from "@/customization/components/custom-chat-input";
import { ENABLE_IMAGE_ON_PLAYGROUND } from "@/customization/feature-flags";
import useCustomUseFileHandler from "@/customization/hooks/use-custom-use-file-handler";
import { track } from "@/customization/utils/analytics";
import { useMessagesStore } from "@/stores/messagesStore";
import { useUtilityStore } from "@/stores/utilityStore";
Expand All @@ -20,7 +21,6 @@ import type { ChatMessageType } from "../../../../../types/chat";
import type { chatViewProps } from "../../../../../types/components";
import FlowRunningSqueleton from "../../flow-running-squeleton";
import useDragAndDrop from "../chatInput/hooks/use-drag-and-drop";
import { useFileHandler } from "../chatInput/hooks/use-file-handler";
import ChatMessage from "../chatMessage/chat-message";
import { ChatScrollAnchor } from "./chat-scroll-anchor";

Expand Down Expand Up @@ -141,7 +141,7 @@ export default function ChatView({
});
}

const { files, setFiles, handleFiles } = useFileHandler(realFlowId);
const { files, setFiles, handleFiles } = useCustomUseFileHandler(realFlowId);
const [isDragging, setIsDragging] = useState(false);

const { dragOver, dragEnter, dragLeave } = useDragAndDrop(
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? "true",
envLangflow.LANGFLOW_FEATURE_MCP_COMPOSER ?? "false",
),
},
plugins: [react(), svgr(), tsconfigPaths()],
Expand Down
Loading