Skip to main content
Glama

mcp-google-sheets

flow-migration-util.ts864 B
import { FlowActionType } from '../../actions/action' import { FlowVersion } from '../../flow-version' import { FlowTriggerType } from '../../triggers/trigger' import { flowStructureUtil } from '../../util/flow-structure-util' export const flowMigrationUtil = { pinPieceToVersion(flowVersion: FlowVersion, pieceName: string, pieceVersion: string) { const newVersion = flowStructureUtil.transferFlow(flowVersion, (step) => { if ((step.type === FlowActionType.PIECE || step.type === FlowTriggerType.PIECE) && step.settings.pieceName === pieceName) { return { ...step, settings: { ...step.settings, pieceVersion, }, } } return step }) return newVersion }, }

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