UNPKG

gitingest-mcp

Version:

MCP server for transforming Git repositories into LLM-friendly text digests

36 lines (35 loc) 1.15 kB
export interface GitCloneOptions { url: string; branch?: string; commit?: string; tag?: string; depth?: number; sparse?: boolean; subpath?: string; includeSubmodules?: boolean; } export interface GitCloneResult { path: string; branch: string; commit: string; isShallow: boolean; } export declare class GitCloneTool { private static readonly DEFAULT_DEPTH; private static readonly MAX_DEPTH; static clone(options: GitCloneOptions, signal?: AbortSignal): Promise<GitCloneResult>; static getCurrentBranch(repoPath: string): Promise<string>; static getCurrentCommit(repoPath: string): Promise<string>; static getBranches(repoPath: string, remote?: boolean): Promise<string[]>; static getTags(repoPath: string): Promise<string[]>; static getCommits(repoPath: string, maxCount?: number): Promise<Array<{ hash: string; message: string; author: string; date: string; }>>; private static createTempDir; private static executeGitCommand; static cleanup(repoPath: string): Promise<void>; static isGitAvailable(): Promise<boolean>; }