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