Skip to main content
Glama

MCP ECharts

sunburst.spec.ts1.07 kB
import { describe, expect, it } from "vitest"; import { generateSunburstChartTool } from "../../src/tools/sunburst"; import "../utils/matcher"; describe("Sunburst Chart Tool", () => { it("should generate a basic sunburst chart", async () => { const result = await generateSunburstChartTool.run({ title: "Technology Stack Distribution", data: [ { name: "Frontend", value: 100, children: [ { name: "React", value: 60, children: [ { name: "Components", value: 30 }, { name: "Hooks", value: 30 }, ], }, { name: "Vue", value: 40 }, ], }, { name: "Backend", value: 80, children: [ { name: "Node.js", value: 50 }, { name: "Python", value: 30 }, ], }, ], width: 800, height: 600, theme: "default", }); await expect(result).toImageEqual("sunburst-basic"); }); });

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/hustcc/mcp-echarts'

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