@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.
81 lines (80 loc) • 3.27 kB
TypeScript
import { z } from "zod";
export declare const waterfall: {
schema: {
data: z.ZodArray<z.ZodEffects<z.ZodObject<{
category: z.ZodString;
value: z.ZodOptional<z.ZodNumber>;
isIntermediateTotal: z.ZodOptional<z.ZodBoolean>;
isTotal: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
category: string;
value?: number | undefined;
isIntermediateTotal?: boolean | undefined;
isTotal?: boolean | undefined;
}, {
category: string;
value?: number | undefined;
isIntermediateTotal?: boolean | undefined;
isTotal?: boolean | undefined;
}>, {
category: string;
value?: number | undefined;
isIntermediateTotal?: boolean | undefined;
isTotal?: boolean | undefined;
}, {
category: string;
value?: number | undefined;
isIntermediateTotal?: boolean | undefined;
isTotal?: boolean | undefined;
}>, "atleastone">;
style: z.ZodOptional<z.ZodObject<{
backgroundColor: z.ZodOptional<z.ZodString>;
texture: z.ZodDefault<z.ZodOptional<z.ZodEnum<["default", "rough"]>>>;
palette: z.ZodOptional<z.ZodObject<{
positiveColor: z.ZodOptional<z.ZodString>;
negativeColor: z.ZodOptional<z.ZodString>;
totalColor: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
positiveColor?: string | undefined;
negativeColor?: string | undefined;
totalColor?: string | undefined;
}, {
positiveColor?: string | undefined;
negativeColor?: string | undefined;
totalColor?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
texture: "default" | "rough";
backgroundColor?: string | undefined;
palette?: {
positiveColor?: string | undefined;
negativeColor?: string | undefined;
totalColor?: string | undefined;
} | undefined;
}, {
backgroundColor?: string | undefined;
palette?: {
positiveColor?: string | undefined;
negativeColor?: string | undefined;
totalColor?: string | undefined;
} | 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;
};
};
};