Skip to main content
Glama

MCP ECharts

matcher.ts734 B
import path from "node:path"; import { expect } from "vitest"; import { toImageEqual } from "./toImageEqual"; import type { toImageEqualOptions } from "./toImageEqual"; // Extend expect type declare module "vitest" { interface Assertion<T = unknown> { toImageEqual(name: string, options?: toImageEqualOptions): Promise<void>; } } // Add custom matcher with default output directory expect.extend({ async toImageEqual( received: unknown, name: string, options: toImageEqualOptions = {}, ) { const result = await toImageEqual( received, path.join(__dirname, "../snapshots"), name, options, ); return { pass: result.pass, message: result.message, }; }, });

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