Skip to main content
Glama

Lighthouse MCP

security.test.ts671 B
/* eslint-disable @typescript-eslint/no-explicit-any */ import { describe, it, expect, vi } from "vitest"; import { registerSecurityTools } from "./security"; // Mock the MCP server const mockServer = { tool: vi.fn(), }; describe("tools/security", () => { it("should register security tools without errors", () => { expect(() => { registerSecurityTools(mockServer as any); }).not.toThrow(); // Verify that tools were registered expect(mockServer.tool).toHaveBeenCalledTimes(1); // get_security_audit // Verify tool names const toolCalls = mockServer.tool.mock.calls; expect(toolCalls[0][0]).toBe("get_security_audit"); }); });

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/danielsogl/lighthouse-mcp-server'

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