Skip to main content
Glama
testSetup.ts824 B
import { Ok } from 'ts-results-es'; import { testProductVersion } from '../../src/testShared.js'; vi.mock('../../src/sdks/tableau/restApi.js', async (importOriginal) => ({ ...(await importOriginal()), RestApi: vi.fn().mockImplementation(() => ({ signIn: vi.fn().mockResolvedValue(undefined), signOut: vi.fn().mockResolvedValue(undefined), setCredentials: vi.fn().mockResolvedValue(undefined), serverMethods: { getServerInfo: vi.fn().mockResolvedValue({ productVersion: testProductVersion, }), getCurrentServerSession: vi.fn().mockResolvedValue( Ok({ site: { id: 'site_id', name: 'test-site', }, user: { id: 'user_id', name: 'test-user', }, }), ), }, })), }));

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/datalabs89/tableau-mcp'

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