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 { AgentMcpTool } from '@activepieces/shared';
import { create } from 'zustand';
interface McpToolDialogState {
showAddMcpDialog: boolean;
editingMcpTool: AgentMcpTool | null;
resetDialogState: () => void;
closeMcpDialog: () => void;
setShowAddMcpDialog: (show: boolean, tool?: AgentMcpTool) => void;
}
const initialState = {
showAddMcpDialog: false,
editingMcpTool: null,
};
export const useMcpToolDialogStore = create<McpToolDialogState>((set, get) => ({
...initialState,
setShowAddMcpDialog: (show, tool) =>
set({ showAddMcpDialog: show, editingMcpTool: tool }),
resetDialogState: () => {
set({
editingMcpTool: null,
});
},
closeMcpDialog: () => {
get().resetDialogState();
set({ showAddMcpDialog: false });
},
}));