Skip to main content
Glama

Activepieces MCP Server

by eldoonreval
builder-state-provider.tsxβ€’1.29 kB
import { useRef } from 'react'; import { useSearchParams } from 'react-router-dom'; import { BuilderInitialState, BuilderStateContext, BuilderStore, createBuilderStore, } from '@/app/builder/builder-hooks'; import { useAuthorization } from '@/hooks/authorization-hooks'; import { projectHooks } from '@/hooks/project-hooks'; import { NEW_FLOW_QUERY_PARAM } from '@/lib/utils'; import { Permission } from '@activepieces/shared'; type BuilderStateProviderProps = React.PropsWithChildren<BuilderInitialState>; export function BuilderStateProvider({ children, sampleData, sampleDataInput, ...props }: BuilderStateProviderProps) { const storeRef = useRef<BuilderStore>(); const { checkAccess } = useAuthorization(); const readonly = !checkAccess(Permission.WRITE_FLOW) || props.readonly; projectHooks.useReloadPageIfProjectIdChanged(props.flow.projectId); const [queryParams] = useSearchParams(); if (!storeRef.current) { storeRef.current = createBuilderStore( { ...props, readonly, sampleData, sampleDataInput, }, queryParams.get(NEW_FLOW_QUERY_PARAM) === 'true', ); } return ( <BuilderStateContext.Provider value={storeRef.current}> {children} </BuilderStateContext.Provider> ); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eldoonreval/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server