Skip to main content
Glama
property.operation.ts1.37 kB
import { ExecutePropsResult, PropertyType } from '@activepieces/pieces-framework' import { EngineResponse, EngineResponseStatus, ExecutePropsOptions, } from '@activepieces/shared' import { EngineConstants } from '../handler/context/engine-constants' import { testExecutionContext } from '../handler/context/test-execution-context' import { pieceHelper } from '../helper/piece-helper' export const propertyOperation = { execute: async (operation: ExecutePropsOptions): Promise<EngineResponse<ExecutePropsResult<PropertyType.DROPDOWN | PropertyType.MULTI_SELECT_DROPDOWN | PropertyType.DYNAMIC>>> => { const input = operation as ExecutePropsOptions const output = await pieceHelper.executeProps({ params: input, devPieces: EngineConstants.DEV_PIECES, executionState: await testExecutionContext.stateFromFlowVersion({ apiUrl: input.internalApiUrl, flowVersion: input.flowVersion, projectId: input.projectId, engineToken: input.engineToken, sampleData: input.sampleData, }), searchValue: input.searchValue, constants: EngineConstants.fromExecutePropertyInput(input), }) return { status: EngineResponseStatus.OK, response: output, } }, }

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/activepieces/activepieces'

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