Skip to main content
Glama
nickytonline

Pimp My Ride MCP Server

by nickytonline
config.ts1.17 kB
import { z } from "zod"; const configSchema = z.object({ HOST: z.string().default("0.0.0.0"), PORT: z.coerce.number().default(3000), NODE_ENV: z .enum(["development", "production", "test"]) .default("development"), SERVER_NAME: z.string().default("pimp-my-ride-mcp"), SERVER_VERSION: z.string().default("1.0.0"), LOG_LEVEL: z.enum(["error", "warn", "info", "debug"]).default("info"), // Storage configuration STORAGE_BACKEND: z .enum(["sqlite", "redis", "postgres", "dynamodb"]) .default("sqlite"), SQLITE_DB_PATH: z.string().default("./data/pimp-my-ride.db"), SQLITE_VERBOSE: z.coerce.boolean().default(false), }); export type Config = z.infer<typeof configSchema>; let config: Config; export function getConfig(): Config { if (!config) { try { config = configSchema.parse(process.env); } catch (error) { console.error("❌ Invalid environment configuration:", error); process.exit(1); } } return config; } export function isProduction(): boolean { return getConfig().NODE_ENV === "production"; } export function isDevelopment(): boolean { return getConfig().NODE_ENV === "development"; }

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/nickytonline/pimp-my-ride-mcp'

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