Skip to main content
Glama

mcp-google-sheets

env-migrations.ts1.49 kB
import { ExecutionMode } from '@activepieces/shared' import { RedisType } from './redis/types' import { AppSystemProp, PiecesSource } from './system-props' const envPrefix = (prop: string) => `AP_${prop}` export const environmentMigrations = { migrate(): Record<string, string | undefined> { return { ...process.env, [envPrefix(AppSystemProp.PIECES_SOURCE)]: migratePiecesSource(getRawValue(AppSystemProp.PIECES_SOURCE)), [envPrefix(AppSystemProp.EXECUTION_MODE)]: migrateExecutionMode(getRawValue(AppSystemProp.EXECUTION_MODE)), [envPrefix(AppSystemProp.REDIS_TYPE)]: migrateRedisType(getRawValue(AppSystemProp.REDIS_TYPE)), } }, } function migrateRedisType(currentRedisType: string | undefined): string | undefined { const queueMode = process.env['AP_QUEUE_MODE'] if (queueMode === 'MEMORY') { return RedisType.MEMORY } return currentRedisType } function migrateExecutionMode(currentExecutionMode: string | undefined): string | undefined { if (currentExecutionMode === 'SANDBOXED') { return ExecutionMode.SANDBOX_PROCESS } return currentExecutionMode } function migratePiecesSource(currentPiecesSource: string | undefined): string | undefined { if (currentPiecesSource === 'CLOUD_AND_DB') { return PiecesSource.DB } return currentPiecesSource } function getRawValue(prop: string): string | undefined { return process.env[envPrefix(prop)] }

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