We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/growthbook/growthbook-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { describe, expect, it } from "vitest";
import { getDocsMetadata } from "../src/utils.js";
describe("getDocsMetadata", () => {
it("maps .tsx to react docs + stub", () => {
const res = getDocsMetadata(".tsx");
expect(res.language).toBe("react");
expect(res.docs).toContain("docs.growthbook.io/lib/react");
expect(res.stub).toContain("React Feature Flag Implementation");
});
it("maps .ts to javascript docs", () => {
const res = getDocsMetadata(".ts");
expect(res.language).toBe("javascript");
expect(res.docs).toContain("docs.growthbook.io/lib/js");
});
it("falls back to unknown", () => {
const res = getDocsMetadata(".weird");
expect(res.language).toBe("unknown");
expect(res.docs).toContain("docs.growthbook.io/lib/");
});
});