@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 • 935 B
TypeScript
/**
* @fileoverview Handles registration and error handling for the git_clear_working_dir tool.
* @module src/mcp-server/tools/gitClearWorkingDir/registration
*/
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { RequestContext } from "../../../utils/index.js";
export type ClearWorkingDirectoryFn = (sessionId: string | undefined) => void;
export type GetSessionIdFn = (context: RequestContext) => string | undefined;
/**
* Registers the git_clear_working_dir tool with the MCP server instance.
* @param server The MCP server instance.
* @param clearWorkingDirectory Function to clear the session's working directory.
* @param getSessionId Function to get the session ID from context.
*/
export declare const registerGitClearWorkingDirTool: (server: McpServer, clearWorkingDirectory: ClearWorkingDirectoryFn, getSessionId: GetSessionIdFn) => Promise<void>;
//# sourceMappingURL=registration.d.ts.map