@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,
45 lines • 1.47 kB
TypeScript
/**
* @fileoverview Defines the core logic, schemas, and types for the git_fetch tool.
* @module src/mcp-server/tools/gitFetch/logic
*/
import { z } from "zod";
import { type RequestContext } from "../../../utils/index.js";
export declare const GitFetchInputSchema: z.ZodObject<{
path: z.ZodDefault<z.ZodString>;
remote: z.ZodOptional<z.ZodString>;
prune: z.ZodDefault<z.ZodBoolean>;
tags: z.ZodDefault<z.ZodBoolean>;
all: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
path: string;
all: boolean;
prune: boolean;
tags: boolean;
remote?: string | undefined;
}, {
path?: string | undefined;
all?: boolean | undefined;
remote?: string | undefined;
prune?: boolean | undefined;
tags?: boolean | undefined;
}>;
export declare const GitFetchOutputSchema: z.ZodObject<{
success: z.ZodBoolean;
message: z.ZodString;
}, "strip", z.ZodTypeAny, {
message: string;
success: boolean;
}, {
message: string;
success: boolean;
}>;
export type GitFetchInput = z.infer<typeof GitFetchInputSchema>;
export type GitFetchOutput = z.infer<typeof GitFetchOutputSchema>;
/**
* 4. IMPLEMENT the core logic function.
* @throws {McpError} If the logic encounters an unrecoverable issue.
*/
export declare function fetchGitRemote(params: GitFetchInput, context: RequestContext & {
getWorkingDirectory: () => string | undefined;
}): Promise<GitFetchOutput>;
//# sourceMappingURL=logic.d.ts.map