UNPKG

@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,

39 lines 1.25 kB
/** * @fileoverview Defines the core logic, schemas, and types for the git_show tool. * @module src/mcp-server/tools/gitShow/logic */ import { z } from "zod"; import { type RequestContext } from "../../../utils/index.js"; export declare const GitShowInputSchema: z.ZodObject<{ path: z.ZodDefault<z.ZodString>; ref: z.ZodString; filePath: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { path: string; ref: string; filePath?: string | undefined; }, { ref: string; path?: string | undefined; filePath?: string | undefined; }>; export declare const GitShowOutputSchema: z.ZodObject<{ success: z.ZodBoolean; content: z.ZodString; }, "strip", z.ZodTypeAny, { success: boolean; content: string; }, { success: boolean; content: string; }>; export type GitShowInput = z.infer<typeof GitShowInputSchema>; export type GitShowOutput = z.infer<typeof GitShowOutputSchema>; /** * 4. IMPLEMENT the core logic function. * @throws {McpError} If the logic encounters an unrecoverable issue. */ export declare function gitShowLogic(params: GitShowInput, context: RequestContext & { getWorkingDirectory: () => string | undefined; }): Promise<GitShowOutput>; //# sourceMappingURL=logic.d.ts.map