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.

18 lines (17 loc) 465 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBody = getBody; function getBody(request) { return new Promise((resolve) => { const bodyParts = []; let body; request .on("data", (chunk) => { bodyParts.push(chunk); }) .on("end", () => { body = Buffer.concat(bodyParts).toString(); resolve(JSON.parse(body)); }); }); }