Skip to main content
Glama

Simple MCP Server

object-in-es5-env.test.ts778 B
// @ts-ignore TS6133 import { expect, test } from "vitest"; import * as z from "zod/v3"; const RealSet = Set; const RealMap = Map; const RealDate = Date; test("doesn’t throw when Date is undefined", () => { delete (globalThis as any).Date; const result = z.object({}).safeParse({}); expect(result.success).toEqual(true); globalThis.Date = RealDate; }); test("doesn’t throw when Set is undefined", () => { delete (globalThis as any).Set; const result = z.object({}).safeParse({}); expect(result.success).toEqual(true); globalThis.Set = RealSet; }); test("doesn’t throw when Map is undefined", () => { delete (globalThis as any).Map; const result = z.object({}).safeParse({}); expect(result.success).toEqual(true); globalThis.Map = RealMap; });

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/shaleen-wonder-ent/simple-mcp-server'

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