Skip to main content
Glama
url.test.ts402 B
import { expect, expectTypeOf, test } from "vitest"; import * as z from "zod/v4"; test("type inference", () => { const schema = z.string().array(); expectTypeOf<z.infer<typeof schema>>().toEqualTypeOf<string[]>(); }); test("url regex", () => { expect((z.url({ hostname: /^example\.com$/ }).safeParse("http://example.org/").error?.issues[0] as any).pattern).toBe( "^example\\.com$" ); });

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/dylanmarriner/MCP-server'

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