Skip to main content
Glama
env.ts855 B
import { z } from 'zod'; import dotenv from 'dotenv'; dotenv.config(); const EnvSchema = z.object({ CONTENTFUL_MANAGEMENT_ACCESS_TOKEN: z .string() .describe('Contentful CMA token'), CONTENTFUL_HOST: z .string() .optional() .default('api.contentful.com') .describe('Contentful API host'), APP_ID: z.string().optional().describe('Contentful App ID'), SPACE_ID: z.string().optional().describe('Contentful Space ID'), ENVIRONMENT_ID: z .string() .optional() .default('master') .describe('Contentful environment ID'), ORGANIZATION_ID: z.string().optional().describe('Contentful organization ID'), }); export const env = EnvSchema.safeParse(process.env); if (!env.success && process.env['TEST_TYPE'] !== 'unit') { console.error('Invalid environment variables', env.error.format()); process.exit(1); }

Latest Blog Posts

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/contentful/contentful-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server