Skip to main content
Glama

mcp-google-sheets

memory-redis.ts690 B
import Redis from 'ioredis' import { RedisMemoryServer } from 'redis-memory-server' let redisMemoryServer: RedisMemoryServer | null = null export async function createMemoryRedisConnection(): Promise<Redis> { const memoryServer = getOrCreateRedisMemoryServer() const host = await memoryServer.getHost() const port = await memoryServer.getPort() const client = new Redis({ maxRetriesPerRequest: null, host, port, }) return client } function getOrCreateRedisMemoryServer(): RedisMemoryServer { if (redisMemoryServer) { return redisMemoryServer } redisMemoryServer = new RedisMemoryServer() return redisMemoryServer }

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