@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) • 1.06 kB
TypeScript
import { z } from 'zod';
import { RequestContext } from '../../../utils/internal/requestContext.js';
export declare const SetFilesystemDefaultInputSchema: z.ZodObject<{
path: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
}, {
path: string;
}>;
export type SetFilesystemDefaultInput = z.infer<typeof SetFilesystemDefaultInputSchema>;
export interface SetFilesystemDefaultOutput {
message: string;
currentDefaultPath: string | null;
}
/**
* Sets the default filesystem path for the current session.
*
* @param {SetFilesystemDefaultInput} input - The input object containing the absolute path.
* @param {RequestContext} context - The request context for logging and error handling.
* @returns {Promise<SetFilesystemDefaultOutput>} A promise that resolves with a success message and the new default path.
* @throws {McpError} Throws McpError if the path is invalid or not absolute.
*/
export declare const setFilesystemDefaultLogic: (input: SetFilesystemDefaultInput, context: RequestContext) => Promise<SetFilesystemDefaultOutput>;