Skip to main content
Glama

Vibe Check MCP

index-main.test.ts926 B
import { afterEach, describe, expect, it, vi } from 'vitest'; describe('main entrypoint', () => { afterEach(() => { vi.restoreAllMocks(); }); it('initializes the HTTP server when stdio transport is disabled', async () => { vi.resetModules(); const module = await import('../src/index.js'); const serverMock = { connect: vi.fn() } as unknown as import('@modelcontextprotocol/sdk/server/index.js').Server; const startMock = vi .fn<Parameters<typeof module.startHttpServer>, ReturnType<typeof module.startHttpServer>>() .mockResolvedValue({ app: {} as any, listener: { close: vi.fn() } as any, transport: {} as any, close: vi.fn() }); await module.main({ createServer: async () => serverMock, startHttp: startMock, }); expect(startMock).toHaveBeenCalledWith(expect.objectContaining({ server: serverMock, attachSignalHandlers: true, logger: console })); }); });

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/PV-Bhat/vibe-check-mcp-server'

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