@cyanheads/git-mcp-server 2.5.6 → 2.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +13 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -164276,7 +164276,7 @@ var InputSchema7 = z.object({
164276
164276
  path: z.string().min(1).describe("Absolute path to the git repository to use as the working directory."),
164277
164277
  validateGitRepo: z.boolean().default(true).describe("Validate that the path is a Git repository."),
164278
164278
  initializeIfNotPresent: z.boolean().default(false).describe("If not a Git repository, initialize it with 'git init'."),
164279
- includeContext: z.boolean().default(true).describe("Include repository context (status, branches, remotes, recent commits) in the response. Provides immediate understanding of repository state.")
164279
+ includeMetadata: z.boolean().default(false).describe("Include repository metadata (status, branches, remotes, recent commits) in the response. Set to true for immediate repository context understanding. Defaults to false to minimize response size.")
164280
164280
  });
164281
164281
  var OutputSchema8 = z.object({
164282
164282
  success: z.boolean().describe("Indicates if the operation was successful."),
@@ -164310,7 +164310,7 @@ var OutputSchema8 = z.object({
164310
164310
  date: z.string().describe("Commit date (ISO 8601 format)."),
164311
164311
  message: z.string().describe("Commit message (first line).")
164312
164312
  })).describe("Recent commits (up to 5 most recent).")
164313
- }).optional().describe("Rich repository context including status, branches, remotes, and recent history. Only included when includeContext is true.")
164313
+ }).optional().describe("Rich repository metadata including status, branches, remotes, and recent history. Only included when includeMetadata parameter is true.")
164314
164314
  });
164315
164315
  async function gatherRepositoryContext(targetPath, dependencies) {
164316
164316
  const { provider, appContext } = dependencies;
@@ -164411,7 +164411,7 @@ async function gitSetWorkingDirLogic(input, dependencies) {
164411
164411
  }
164412
164412
  const storageKey = `session:workingDir:${tenantId}`;
164413
164413
  await storage.set(storageKey, input.path, appContext);
164414
- const repositoryContext = input.includeContext ? await gatherRepositoryContext(input.path, dependencies) : undefined;
164414
+ const repositoryContext = input.includeMetadata ? await gatherRepositoryContext(input.path, dependencies) : undefined;
164415
164415
  return {
164416
164416
  success: true,
164417
164417
  path: input.path,
@@ -164782,7 +164782,16 @@ var gitAddTool = {
164782
164782
  init_lib();
164783
164783
  var TOOL_NAME11 = "git_commit";
164784
164784
  var TOOL_TITLE11 = "Git Commit";
164785
- var TOOL_DESCRIPTION11 = "Create a new commit with staged changes in the repository. Records a snapshot of the staging area with a commit message.";
164785
+ var TOOL_DESCRIPTION11 = `Create a new commit with staged changes in the repository. Records a snapshot of the staging area with a commit message.
164786
+
164787
+ **Commit Message Format:**
164788
+ Pass commit messages as JSON string parameters. Multi-line messages are supported using standard JSON string escaping.
164789
+
164790
+ **Examples:**
164791
+ - Single line: { "message": "feat: add user authentication" }
164792
+ - Multi-line: { "message": "feat: add user authentication\\n\\nImplemented OAuth2 flow with JWT tokens.\\nAdded tests for login and logout." }
164793
+
164794
+ Note: Do not use bash heredoc syntax.`;
164786
164795
  var InputSchema11 = z.object({
164787
164796
  path: PathSchema,
164788
164797
  message: CommitMessageSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyanheads/git-mcp-server",
3
- "version": "2.5.6",
3
+ "version": "2.5.7",
4
4
  "mcpName": "io.github.cyanheads/git-mcp-server",
5
5
  "description": "A secure and scalable Git MCP server enabling AI agents to perform comprehensive Git version control operations via STDIO and Streamable HTTP.",
6
6
  "main": "dist/index.js",