AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { ReactNode } from 'react';
import { Navigate } from 'react-router-dom';
import { mcpHooks } from '@/app/components/project-settings/mcp-server/utils/mcp-hooks';
export function McpReachGuard({ children }: { children: ReactNode }) {
const { isResolved, reachesMcp } = mcpHooks.useMcpReach();
if (!isResolved) {
return null;
}
if (!reachesMcp) {
return <Navigate to="/404" replace />;
}
return children;
}