Skip to main content
Glama

mcp-google-sheets

file-system-utils.ts845 B
import { access, mkdir } from 'node:fs/promises' export const INFINITE_LOCK_TIMEOUT = 60 * 60 * 1000 export const fileSystemUtils = { fileExists: async (path: string): Promise<boolean> => { try { await access(path) return true } catch (e) { const castedError = e as Error if ('code' in castedError && castedError.code === 'ENOENT') { return false } throw e } }, threadSafeMkdir: async (path: string): Promise<void> => { try { await mkdir(path, { recursive: true }) } catch (e) { const castedError = e as Error if ('code' in castedError && castedError.code === 'EEXIST') { return } throw e } }, }

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