Skip to main content
Glama

mcp-google-sheets

redis-connections.ts1.45 kB
import { AppSystemProp, distributedLockFactory, QueueMode, redisConnectionFactory, RedisType, } from '@activepieces/server-shared' import { system } from '../helper/system/system' export const redisConnections = redisConnectionFactory(() => { return { REDIS_TYPE: getRedisType(), REDIS_SSL_CA_FILE: system.get(AppSystemProp.REDIS_SSL_CA_FILE), REDIS_DB: system.getNumber(AppSystemProp.REDIS_DB) ?? undefined, REDIS_HOST: system.get(AppSystemProp.REDIS_HOST), REDIS_PASSWORD: system.get(AppSystemProp.REDIS_PASSWORD), REDIS_PORT: system.get(AppSystemProp.REDIS_PORT), REDIS_URL: system.get(AppSystemProp.REDIS_URL), REDIS_USER: system.get(AppSystemProp.REDIS_USER), REDIS_USE_SSL: system.get(AppSystemProp.REDIS_USE_SSL) === 'true', REDIS_SENTINEL_ROLE: system.get(AppSystemProp.REDIS_SENTINEL_ROLE), REDIS_SENTINEL_HOSTS: system.get(AppSystemProp.REDIS_SENTINEL_HOSTS), REDIS_SENTINEL_NAME: system.get(AppSystemProp.REDIS_SENTINEL_NAME), } }) export const distributedLock = distributedLockFactory(redisConnections.create) function getRedisType() { const checkIfUserHasDeprecatedQueueMode = system.getOrThrow<QueueMode>(AppSystemProp.QUEUE_MODE) === QueueMode.MEMORY if (checkIfUserHasDeprecatedQueueMode) { return RedisType.MEMORY } return system.getOrThrow<RedisType>(AppSystemProp.REDIS_TYPE) }

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