@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.
51 lines (50 loc) • 2.04 kB
TypeScript
import { z } from "zod";
export declare const dualAxes: {
schema: {
categories: z.ZodArray<z.ZodString, "atleastone">;
series: z.ZodArray<z.ZodObject<{
type: z.ZodEnum<["column", "line"]>;
data: z.ZodArray<z.ZodNumber, "many">;
axisYTitle: z.ZodOptional<z.ZodDefault<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
type: "column" | "line";
data: number[];
axisYTitle?: string | undefined;
}, {
type: "column" | "line";
data: number[];
axisYTitle?: string | undefined;
}>, "atleastone">;
style: z.ZodOptional<z.ZodObject<{
backgroundColor: z.ZodOptional<z.ZodString>;
palette: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
startAtZero: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
texture: z.ZodDefault<z.ZodOptional<z.ZodEnum<["default", "rough"]>>>;
}, "strip", z.ZodTypeAny, {
texture: "default" | "rough";
startAtZero: boolean;
backgroundColor?: string | undefined;
palette?: string[] | undefined;
}, {
backgroundColor?: string | undefined;
palette?: string[] | undefined;
texture?: "default" | "rough" | undefined;
startAtZero?: boolean | 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>>;
};
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;
};
};
};