@antv/mcp-server-chart
Version:
A Model Context Protocol server for generating charts using AntV. This is a TypeScript-based MCP server that provides chart generation capabilities. It allows you to create various types of charts through MCP tools.
48 lines (47 loc) • 1.81 kB
TypeScript
import { z } from "zod";
export declare const boxplot: {
schema: {
data: z.ZodArray<z.ZodObject<{
category: z.ZodString;
value: z.ZodNumber;
group: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
value: number;
category: string;
group?: string | undefined;
}, {
value: number;
category: string;
group?: string | undefined;
}>, "atleastone">;
style: z.ZodOptional<z.ZodObject<{
backgroundColor: z.ZodOptional<z.ZodString>;
palette: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
texture: z.ZodDefault<z.ZodOptional<z.ZodEnum<["default", "rough"]>>>;
}, "strip", z.ZodTypeAny, {
texture: "default" | "rough";
backgroundColor?: string | undefined;
palette?: string[] | undefined;
}, {
backgroundColor?: string | undefined;
palette?: string[] | undefined;
texture?: "default" | "rough" | undefined;
}>>;
theme: z.ZodDefault<z.ZodOptional<z.ZodEnum<["default", "academy", "dark"]>>>;
width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
height: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
axisXTitle: z.ZodDefault<z.ZodOptional<z.ZodString>>;
axisYTitle: z.ZodDefault<z.ZodOptional<z.ZodString>>;
};
tool: {
name: string;
description: string;
inputSchema: import("zod-to-json-schema").JsonSchema7Type & {
$schema?: string | undefined;
definitions?: {
[key: string]: import("zod-to-json-schema").JsonSchema7Type;
} | undefined;
};
};
};