UNPKG

@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.

92 lines (91 loc) 2.75 kB
import { z } from "zod"; export declare const networkGraph: { schema: { data: z.ZodEffects<z.ZodObject<{ nodes: z.ZodArray<z.ZodObject<{ name: z.ZodString; }, "strip", z.ZodTypeAny, { name: string; }, { name: string; }>, "atleastone">; edges: z.ZodArray<z.ZodObject<{ source: z.ZodString; target: z.ZodString; name: z.ZodDefault<z.ZodOptional<z.ZodString>>; }, "strip", z.ZodTypeAny, { source: string; name: string; target: string; }, { source: string; target: string; name?: string | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { nodes: [{ name: string; }, ...{ name: string; }[]]; edges: { source: string; name: string; target: string; }[]; }, { nodes: [{ name: string; }, ...{ name: string; }[]]; edges: { source: string; target: string; name?: string | undefined; }[]; }>, { nodes: [{ name: string; }, ...{ name: string; }[]]; edges: { source: string; name: string; target: string; }[]; }, { nodes: [{ name: string; }, ...{ name: string; }[]]; edges: { source: string; target: string; name?: string | undefined; }[]; }>; style: z.ZodOptional<z.ZodObject<{ texture: z.ZodDefault<z.ZodOptional<z.ZodEnum<["default", "rough"]>>>; }, "strip", z.ZodTypeAny, { texture: "default" | "rough"; }, { 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>>; }; 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; }; }; };