docwriter-mcp-server
Version:
A Model Context Protocol (MCP) server for programmatic creation, modification, and compilation of structured LaTeX documents. Enables AI agents and automated workflows to generate reports, articles, and papers from templates, with secure, structured conte
30 lines (29 loc) • 1.41 kB
TypeScript
/**
* @fileoverview Core logic for the docwriter_list_latex_documents tool.
* This module handles listing all LaTeX documents in the data directory.
* @module src/mcp-server/tools/listLatexDocuments/logic
*/
import { z } from "zod";
import { type RequestContext } from "../../../utils/index.js";
/**
* Zod schema for validating input arguments for the `docwriter_list_latex_documents` tool.
*/
export declare const ListLatexDocumentsInputSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
/**
* TypeScript type inferred from `ListLatexDocumentsInputSchema`.
*/
export type ListLatexDocumentsInput = z.infer<typeof ListLatexDocumentsInputSchema>;
/**
* Defines the structure of the JSON payload returned by the `listLatexDocumentsLogic` tool handler.
*/
export interface ListLatexDocumentsResponse {
documents: string[];
}
/**
* Processes the core logic for the `docwriter_list_latex_documents` tool.
* @param {ListLatexDocumentsInput} params - The validated input parameters for the tool.
* @param {RequestContext} context - The request context for logging and tracing.
* @returns {Promise<ListLatexDocumentsResponse>} A promise that resolves to an object containing the list of documents.
* @throws {McpError} If a file system error occurs.
*/
export declare function listLatexDocumentsLogic(params: ListLatexDocumentsInput, context: RequestContext): Promise<ListLatexDocumentsResponse>;