Skip to main content
Glama
JagjeevanAK

OpenFoodFacts-mcp

by JagjeevanAK
setup.ts678 B
import { vi } from 'vitest'; import path from 'path'; // Set up the mock project root for testing vi.stubGlobal('__dirname', '/Users/jagjeevankashid/Developer/open-source/openfoodfacts-server/mcp-server'); // Set up path mocks to ensure proper path resolution vi.mock('path', async () => { const actual = await vi.importActual<typeof path>('path'); return { ...actual, resolve: vi.fn((...args: string[]) => { // Preserve the actual behavior but make it mockable return actual.resolve(...args); }), join: vi.fn((...args: string[]) => { // Preserve the actual behavior but make it mockable return actual.join(...args); }) }; });

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/JagjeevanAK/OpenFoodFacts-MCP'

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