RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
import { Operator } from '../constant';
import useGraphStore from '../store';
export function useIsMcp(operatorName: Operator) {
const { clickedToolId, getAgentToolById } = useGraphStore();
const { component_name: toolName } = getAgentToolById(clickedToolId) ?? {};
return (
operatorName === Operator.Tool &&
Object.values(Operator).every((x) => x !== toolName)
);
}