octocode-mcp
Version:
Model Context Protocol (MCP) server for advanced GitHub repository analysis and code discovery. Provides AI assistants with powerful tools to search, analyze, and understand codebases across GitHub.
9 lines (8 loc) • 340 B
TypeScript
export interface PatchLine {
originalLineNumber: number | null;
newLineNumber: number | null;
content: string;
type: 'context' | 'addition' | 'deletion';
}
export declare function parsePatch(patch: string): PatchLine[];
export declare function filterPatch(patch: string, additions?: number[], deletions?: number[]): string;