Skip to main content
Glama

MCP Server AntV

Official
by antvis
constant.spec.ts1.05 kB
import { describe, expect, it } from 'vitest'; import { ANTV_LIBRARY_META, CONTEXT7_TOKENS } from '../src/constant'; // Helper function to check if a library is valid function isValidLibrary(library: string): boolean { return Object.keys(ANTV_LIBRARY_META).includes(library); } describe('context7', () => { it('isValidLibrary', () => { expect(isValidLibrary('g2')).toBe(true); expect(isValidLibrary('s2')).toBe(true); expect(isValidLibrary('f2')).toBe(true); expect(isValidLibrary('g6')).toBe(true); expect(isValidLibrary('x6')).toBe(true); expect(isValidLibrary('l7')).toBe(true); expect(isValidLibrary('ava')).toBe(true); expect(isValidLibrary('adc')).toBe(true); expect(isValidLibrary('g')).toBe(true); expect(isValidLibrary('unknown')).toBe(false); }); it('ANTV_LIBRARY_META', () => { expect(Object.values(ANTV_LIBRARY_META).length).toBe(9); }); it('CONTEXT7_TOKENS', () => { expect(CONTEXT7_TOKENS).toEqual({ default: 5000, max: 20000, min: 1000, }); }); });

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/antvis/mcp-server-antv'

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