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,

16 lines 899 B
/** * @fileoverview Handles registration and error handling for the git_commit tool. * @module src/mcp-server/tools/gitCommit/registration */ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RequestContext } from "../../../utils/index.js"; export type GetWorkingDirectoryFn = (sessionId: string | undefined) => string | undefined; export type GetSessionIdFn = (context: RequestContext) => string | undefined; /** * Registers the git_commit tool with the MCP server instance. * @param server The MCP server instance. * @param getWorkingDirectory Function to get the session's working directory. * @param getSessionId Function to get the session ID from context. */ export declare const registerGitCommitTool: (server: McpServer, getWorkingDirectory: GetWorkingDirectoryFn, getSessionId: GetSessionIdFn) => Promise<void>; //# sourceMappingURL=registration.d.ts.map