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,

175 lines 7.15 kB
/** * @fileoverview Defines the core logic, schemas, and types for the git_wrapup_instructions tool. * @module src/mcp-server/tools/gitWrapupInstructions/logic */ import { z } from "zod"; import { type RequestContext } from "../../../utils/index.js"; export declare const GitWrapupInstructionsInputSchema: z.ZodObject<{ acknowledgement: z.ZodEnum<["Y", "y", "Yes", "yes"]>; updateAgentMetaFiles: z.ZodOptional<z.ZodEnum<["Y", "y", "Yes", "yes"]>>; createTag: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { acknowledgement: "Y" | "y" | "Yes" | "yes"; updateAgentMetaFiles?: "Y" | "y" | "Yes" | "yes" | undefined; createTag?: boolean | undefined; }, { acknowledgement: "Y" | "y" | "Yes" | "yes"; updateAgentMetaFiles?: "Y" | "y" | "Yes" | "yes" | undefined; createTag?: boolean | undefined; }>; export declare const GitWrapupInstructionsOutputSchema: z.ZodObject<{ instructions: z.ZodString; gitStatus: z.ZodOptional<z.ZodObject<{ current_branch: z.ZodNullable<z.ZodString>; staged_changes: z.ZodObject<{ Added: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; Modified: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; Deleted: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; Renamed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; Copied: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; TypeChanged: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { Added?: string[] | undefined; Modified?: string[] | undefined; Deleted?: string[] | undefined; Renamed?: string[] | undefined; Copied?: string[] | undefined; TypeChanged?: string[] | undefined; }, { Added?: string[] | undefined; Modified?: string[] | undefined; Deleted?: string[] | undefined; Renamed?: string[] | undefined; Copied?: string[] | undefined; TypeChanged?: string[] | undefined; }>; unstaged_changes: z.ZodObject<{ Added: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; Modified: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; Deleted: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; Renamed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; Copied: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; TypeChanged: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { Added?: string[] | undefined; Modified?: string[] | undefined; Deleted?: string[] | undefined; Renamed?: string[] | undefined; Copied?: string[] | undefined; TypeChanged?: string[] | undefined; }, { Added?: string[] | undefined; Modified?: string[] | undefined; Deleted?: string[] | undefined; Renamed?: string[] | undefined; Copied?: string[] | undefined; TypeChanged?: string[] | undefined; }>; untracked_files: z.ZodArray<z.ZodString, "many">; conflicted_files: z.ZodArray<z.ZodString, "many">; is_clean: z.ZodBoolean; }, "strip", z.ZodTypeAny, { current_branch: string | null; staged_changes: { Added?: string[] | undefined; Modified?: string[] | undefined; Deleted?: string[] | undefined; Renamed?: string[] | undefined; Copied?: string[] | undefined; TypeChanged?: string[] | undefined; }; unstaged_changes: { Added?: string[] | undefined; Modified?: string[] | undefined; Deleted?: string[] | undefined; Renamed?: string[] | undefined; Copied?: string[] | undefined; TypeChanged?: string[] | undefined; }; untracked_files: string[]; conflicted_files: string[]; is_clean: boolean; }, { current_branch: string | null; staged_changes: { Added?: string[] | undefined; Modified?: string[] | undefined; Deleted?: string[] | undefined; Renamed?: string[] | undefined; Copied?: string[] | undefined; TypeChanged?: string[] | undefined; }; unstaged_changes: { Added?: string[] | undefined; Modified?: string[] | undefined; Deleted?: string[] | undefined; Renamed?: string[] | undefined; Copied?: string[] | undefined; TypeChanged?: string[] | undefined; }; untracked_files: string[]; conflicted_files: string[]; is_clean: boolean; }>>; gitStatusError: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { instructions: string; gitStatus?: { current_branch: string | null; staged_changes: { Added?: string[] | undefined; Modified?: string[] | undefined; Deleted?: string[] | undefined; Renamed?: string[] | undefined; Copied?: string[] | undefined; TypeChanged?: string[] | undefined; }; unstaged_changes: { Added?: string[] | undefined; Modified?: string[] | undefined; Deleted?: string[] | undefined; Renamed?: string[] | undefined; Copied?: string[] | undefined; TypeChanged?: string[] | undefined; }; untracked_files: string[]; conflicted_files: string[]; is_clean: boolean; } | undefined; gitStatusError?: string | undefined; }, { instructions: string; gitStatus?: { current_branch: string | null; staged_changes: { Added?: string[] | undefined; Modified?: string[] | undefined; Deleted?: string[] | undefined; Renamed?: string[] | undefined; Copied?: string[] | undefined; TypeChanged?: string[] | undefined; }; unstaged_changes: { Added?: string[] | undefined; Modified?: string[] | undefined; Deleted?: string[] | undefined; Renamed?: string[] | undefined; Copied?: string[] | undefined; TypeChanged?: string[] | undefined; }; untracked_files: string[]; conflicted_files: string[]; is_clean: boolean; } | undefined; gitStatusError?: string | undefined; }>; export type GitWrapupInstructionsInput = z.infer<typeof GitWrapupInstructionsInputSchema>; export type GitWrapupInstructionsOutput = z.infer<typeof GitWrapupInstructionsOutputSchema>; /** * 4. IMPLEMENT the core logic function. * @throws {McpError} If the logic encounters an unrecoverable issue. */ export declare function getWrapupInstructions(params: GitWrapupInstructionsInput, context: RequestContext & { getWorkingDirectory: () => string | undefined; }): Promise<GitWrapupInstructionsOutput>; //# sourceMappingURL=logic.d.ts.map