Skip to main content
Glama

MCP Server Chart

Official
mind-map.ts1.65 kB
import { z } from "zod"; import { zodToJsonSchema } from "../utils"; import { validatedTreeDataSchema } from "../utils/validator"; import { HeightSchema, TextureSchema, ThemeSchema, WidthSchema } from "./base"; import { FishboneNodeSchema } from "./fishbone-diagram"; // Mind map node schema // The recursive schema is not supported by gemini, and other clients, so we use a non-recursive schema which can represent a tree structure with a fixed depth. // Ref: https://github.com/antvis/mcp-server-chart/issues/155 // Ref: https://github.com/antvis/mcp-server-chart/issues/132 const MindMapNodeSchema = FishboneNodeSchema; // Mind map chart input schema const schema = { data: MindMapNodeSchema.describe( "Data for mind map chart which is a hierarchical structure, such as, { name: 'main topic', children: [{ name: 'topic 1', children: [{ name:'subtopic 1-1' }] }, and the maximum depth is 3.", ).refine(validatedTreeDataSchema, { message: "Invalid parameters: node name is not unique.", path: ["data"], }), style: z .object({ texture: TextureSchema, }) .optional() .describe("Custom style configuration for the chart."), theme: ThemeSchema, width: WidthSchema, height: HeightSchema, }; // Mind map chart tool descriptor const tool = { name: "generate_mind_map", description: "Generate a mind map chart to organizes and presents information in a hierarchical structure with branches radiating from a central topic, such as, a diagram showing the relationship between a main topic and its subtopics.", inputSchema: zodToJsonSchema(schema), }; export const mindMap = { schema, tool, };

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