@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,
46 lines • 1.47 kB
TypeScript
/**
* @fileoverview Defines the core logic, schemas, and types for the git_clone tool.
* @module src/mcp-server/tools/gitClone/logic
*/
import { z } from "zod";
import { type RequestContext } from "../../../utils/index.js";
export declare const GitCloneInputSchema: z.ZodObject<{
repositoryUrl: z.ZodString;
targetPath: z.ZodString;
branch: z.ZodOptional<z.ZodString>;
depth: z.ZodOptional<z.ZodNumber>;
quiet: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
repositoryUrl: string;
targetPath: string;
quiet: boolean;
branch?: string | undefined;
depth?: number | undefined;
}, {
repositoryUrl: string;
targetPath: string;
branch?: string | undefined;
depth?: number | undefined;
quiet?: boolean | undefined;
}>;
export declare const GitCloneOutputSchema: z.ZodObject<{
success: z.ZodBoolean;
message: z.ZodString;
path: z.ZodString;
}, "strip", z.ZodTypeAny, {
path: string;
message: string;
success: boolean;
}, {
path: string;
message: string;
success: boolean;
}>;
export type GitCloneInput = z.infer<typeof GitCloneInputSchema>;
export type GitCloneOutput = z.infer<typeof GitCloneOutputSchema>;
/**
* 4. IMPLEMENT the core logic function.
* @throws {McpError} If the logic encounters an unrecoverable issue.
*/
export declare function gitCloneLogic(params: GitCloneInput, context: RequestContext): Promise<GitCloneOutput>;
//# sourceMappingURL=logic.d.ts.map