Skip to main content
Glama

MCP Server Chart

Official
validator.spec.ts834 B
import { describe, expect, it } from "vitest"; import { z } from "zod"; import * as Charts from "../../src/charts"; import { FlowDiagramSchema, MindMapSchema } from "../constant"; describe("validator", () => { it("should valid schema for mind-map chart", () => { const chartType = "mind-map"; expect(() => { const schema = Charts[chartType].schema; z.object(schema).safeParse(MindMapSchema); }).toThrow("Invalid parameters: node's name '文字动画' should be unique."); }); it("should valid schema for flow diagram chart", () => { const chartType = "flow-diagram"; expect(() => { const schema = Charts[chartType].schema; z.object(schema).safeParse(FlowDiagramSchema); }).toThrow( "Invalid parameters: edge pair 'KnowledgeBase-Model' should be unique.", ); }); });

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-chart'

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