@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
28 lines (27 loc) • 1.07 kB
TypeScript
import { z } from 'zod';
import { RequestContext } from '../../../utils/internal/requestContext.js';
export declare const MovePathInputSchema: z.ZodObject<{
source_path: z.ZodString;
destination_path: z.ZodString;
}, "strip", z.ZodTypeAny, {
source_path: string;
destination_path: string;
}, {
source_path: string;
destination_path: string;
}>;
export type MovePathInput = z.infer<typeof MovePathInputSchema>;
export interface MovePathOutput {
message: string;
sourcePath: string;
destinationPath: string;
}
/**
* Moves or renames a file or directory.
*
* @param {MovePathInput} input - The input object containing source and destination paths.
* @param {RequestContext} context - The request context.
* @returns {Promise<MovePathOutput>} A promise resolving with the move status.
* @throws {McpError} For path errors, source not found, destination already exists (depending on OS/FS behavior), or I/O errors.
*/
export declare const movePathLogic: (input: MovePathInput, context: RequestContext) => Promise<MovePathOutput>;