Skip to main content
Glama
server.test.ts703 B
import { serverName, serverVersion } from '../../src/server.js'; import { toolNames } from '../../src/tools/toolName.js'; import { resetEnv, setEnv } from '../testEnv.js'; import { getClient, listTools } from './client.js'; describe('server', () => { beforeAll(setEnv); afterAll(resetEnv); it('should get server version', async () => { const client = await getClient(); expect(client.getServerVersion()).toEqual({ name: serverName, version: serverVersion, }); }); it('should list tools', async () => { const names = await listTools(); expect(names).toEqual(expect.arrayContaining([...toolNames])); expect(names).toHaveLength(toolNames.length); }); });

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