xmcp
Version:
The TypeScript MCP framework
9 lines (8 loc) • 467 B
TypeScript
import { McpServer } from "@modelcontextprotocol/server";
import { ZodOptional, ZodType, ZodTypeDef } from "zod/v3";
import { PromptFile } from "./server";
export type PromptArgsRawShape = {
[k: string]: ZodType<string, ZodTypeDef, string> | ZodOptional<ZodType<string, ZodTypeDef, string>>;
};
/** Loads prompts and injects them into the server */
export declare function addPromptsToServer(server: McpServer, promptModules: Map<string, PromptFile>): McpServer;