Skip to main content
Glama

docs-mcp-server

remove.test.ts689 B
/** Unit test for removeAction */ import { Command } from "commander"; import { beforeEach, describe, expect, it, vi } from "vitest"; const removeFn = vi.fn(async () => {}); vi.mock("../../store", () => ({ createDocumentManagement: vi.fn(async () => ({ shutdown: vi.fn(), removeAllDocuments: removeFn, })), })); import { removeAction } from "./remove"; function _cmd() { return new Command(); } beforeEach(() => { vi.clearAllMocks(); }); describe("removeAction", () => { it("calls removeAllDocuments", async () => { await removeAction("react", { version: "18.0.0", serverUrl: undefined }); expect(removeFn).toHaveBeenCalledWith("react", "18.0.0"); }); });

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/arabold/docs-mcp-server'

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