@cyanheads/pubmed-mcp-server
Version:
A Model Context Protocol (MCP) server enabling AI agents to intelligently search, retrieve, and analyze biomedical literature from PubMed via NCBI E-utilities. Built on the mcp-ts-template for robust, production-ready performance.
44 lines (43 loc) • 1.79 kB
TypeScript
import { z } from "zod";
import { RequestContext } from "../../../utils/index.js";
export declare const GeneratePubMedChartInputSchema: z.ZodObject<{
chartType: z.ZodEnum<["bar", "line", "scatter", "pie", "doughnut", "bubble", "radar", "polarArea"]>;
title: z.ZodOptional<z.ZodString>;
width: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
height: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
dataValues: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
outputFormat: z.ZodDefault<z.ZodEnum<["png"]>>;
xField: z.ZodString;
yField: z.ZodString;
seriesField: z.ZodOptional<z.ZodString>;
sizeField: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
width: number;
height: number;
outputFormat: "png";
chartType: "bar" | "line" | "scatter" | "pie" | "doughnut" | "bubble" | "radar" | "polarArea";
dataValues: Record<string, any>[];
xField: string;
yField: string;
title?: string | undefined;
seriesField?: string | undefined;
sizeField?: string | undefined;
}, {
chartType: "bar" | "line" | "scatter" | "pie" | "doughnut" | "bubble" | "radar" | "polarArea";
dataValues: Record<string, any>[];
xField: string;
yField: string;
title?: string | undefined;
width?: number | undefined;
height?: number | undefined;
outputFormat?: "png" | undefined;
seriesField?: string | undefined;
sizeField?: string | undefined;
}>;
export type GeneratePubMedChartInput = z.infer<typeof GeneratePubMedChartInputSchema>;
export type GeneratePubMedChartOutput = {
base64Data: string;
chartType: string;
dataPoints: number;
};
export declare function generatePubMedChartLogic(input: GeneratePubMedChartInput, parentRequestContext: RequestContext): Promise<GeneratePubMedChartOutput>;