UNPKG

gitingest-mcp

Version:

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

29 lines (28 loc) 997 B
import { z } from "zod"; export declare const repositoryUrlSchema: z.ZodObject<{ url: z.ZodString; type: z.ZodOptional<z.ZodEnum<{ github: "github"; gitlab: "gitlab"; bitbucket: "bitbucket"; local: "local"; git: "git"; }>>; owner: z.ZodOptional<z.ZodString>; repo: z.ZodOptional<z.ZodString>; branch: z.ZodOptional<z.ZodString>; commit: z.ZodOptional<z.ZodString>; tag: z.ZodOptional<z.ZodString>; subpath: z.ZodOptional<z.ZodString>; isLocal: z.ZodOptional<z.ZodBoolean>; }, z.core.$strip>; export type RepositoryUrl = z.infer<typeof repositoryUrlSchema>; export declare class GitUrlParser { private static readonly GITHUB_PATTERNS; private static readonly GITLAB_PATTERNS; private static readonly BITBUCKET_PATTERNS; static parse(url: string): RepositoryUrl; private static isLocalPath; static toHttpsUrl(parsed: RepositoryUrl): string; static toApiUrl(parsed: RepositoryUrl): string; }