UNPKG

@cyanheads/git-mcp-server

Version:

An MCP (Model Context Protocol) server enabling LLMs and AI agents to interact with Git repositories. Provides tools for comprehensive Git operations including clone, commit, branch, diff, log, status, push, pull, merge, rebase, worktree, tag management,

33 lines 1.28 kB
/** * @fileoverview Defines the core logic, schemas, and types for the git_clear_working_dir tool. * @module src/mcp-server/tools/gitClearWorkingDir/logic */ import { z } from "zod"; import { type RequestContext } from "../../../utils/index.js"; export declare const GitClearWorkingDirInputSchema: z.ZodObject<{ confirm: z.ZodOptional<z.ZodEnum<["Y", "y", "Yes", "yes"]>>; }, "strict", z.ZodTypeAny, { confirm?: "Y" | "y" | "Yes" | "yes" | undefined; }, { confirm?: "Y" | "y" | "Yes" | "yes" | undefined; }>; export declare const GitClearWorkingDirOutputSchema: z.ZodObject<{ success: z.ZodBoolean; message: z.ZodString; }, "strip", z.ZodTypeAny, { message: string; success: boolean; }, { message: string; success: boolean; }>; export type GitClearWorkingDirInput = z.infer<typeof GitClearWorkingDirInputSchema>; export type GitClearWorkingDirOutput = z.infer<typeof GitClearWorkingDirOutputSchema>; /** * 4. IMPLEMENT the core logic function. * @throws {McpError} If the logic encounters an unrecoverable issue. */ export declare function gitClearWorkingDirLogic(params: GitClearWorkingDirInput, context: RequestContext & { clearWorkingDirectory: () => void; }): Promise<GitClearWorkingDirOutput>; //# sourceMappingURL=logic.d.ts.map