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.

16 lines (15 loc) 595 B
/** * Call a tool to generate a chart based on the provided name and arguments. * @param tool The name of the tool to call, e.g., "generate_area_chart". * @param args The arguments for the tool, which should match the expected schema for the chart type. * @returns */ export declare function callTool(tool: string, args?: object): Promise<{ content: import("@modelcontextprotocol/sdk/types.js").CallToolResult["content"]; isError?: import("@modelcontextprotocol/sdk/types.js").CallToolResult["isError"]; } | { content: { type: string; text: string; }[]; }>;