Skip to main content
Glama
index.test.ts512 B
import { describe, expect, it } from "vitest"; import createServer, { configSchema } from "./index.js"; describe("Smithery exports", () => { it("validates HEVY_API_KEY via configSchema", () => { expect(() => configSchema.parse({ apiKey: "" })).toThrow(); const parsed = configSchema.parse({ apiKey: "abc" }); expect(parsed.apiKey).toBe("abc"); }); it("creates an MCP server instance", () => { const server = createServer({ config: { apiKey: "test-key" } }); expect(server).toBeDefined(); }); });

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/chrisdoc/hevy-mcp'

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