UNPKG

@cyanheads/filesystem-mcp-server

Version:

A Model Context Protocol (MCP) server for platform-agnostic file capabilities, including advanced search and replace, and directory tree traversal

24 lines (23 loc) 866 B
import { z } from 'zod'; import { RequestContext } from '../../../utils/internal/requestContext.js'; export declare const DeleteFileInputSchema: z.ZodObject<{ path: z.ZodString; }, "strip", z.ZodTypeAny, { path: string; }, { path: string; }>; export type DeleteFileInput = z.infer<typeof DeleteFileInputSchema>; export interface DeleteFileOutput { message: string; deletedPath: string; } /** * Deletes a specified file. * * @param {DeleteFileInput} input - The input object containing the path to the file. * @param {RequestContext} context - The request context. * @returns {Promise<DeleteFileOutput>} A promise resolving with the deletion status. * @throws {McpError} For path errors, file not found, or I/O errors. */ export declare const deleteFileLogic: (input: DeleteFileInput, context: RequestContext) => Promise<DeleteFileOutput>;