@cyanheads/git-mcp-server 2.2.1 → 2.2.2

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.
@@ -9,6 +9,7 @@ import { getGitStatus, GitStatusOutputSchema } from "../gitStatus/logic.js";
9
9
  export const GitWrapupInstructionsInputSchema = z.object({
10
10
  acknowledgement: z.enum(["Y", "y", "Yes", "yes"]).describe("Acknowledgement to initiate the wrap-up workflow."),
11
11
  updateAgentMetaFiles: z.enum(["Y", "y", "Yes", "yes"]).optional().describe("Include an instruction to update agent-specific meta files."),
12
+ createTag: z.boolean().optional().describe("If true, instructs the agent to create a Git tag after committing all changes. Only set to true if given permission to do so."),
12
13
  });
13
14
  // 2. DEFINE the Zod response schema.
14
15
  export const GitWrapupInstructionsOutputSchema = z.object({
@@ -37,6 +38,9 @@ export async function getWrapupInstructions(params, context) {
37
38
  if (params.updateAgentMetaFiles) {
38
39
  finalInstructions += `\nExtra request: review and update if needed the .clinerules and claude.md files if present.`;
39
40
  }
41
+ if (params.createTag) {
42
+ finalInstructions += `\n5. After all changes are committed and confirmed via 'git_status', use the 'git_tag' tool to create a new annotated tag. The tag name should follow semantic versioning (e.g., v1.2.3), and the annotation message should summarize the key changes in this wrap-up.`;
43
+ }
40
44
  let statusResult;
41
45
  let statusError;
42
46
  const workingDir = context.getWorkingDirectory();
@@ -5,7 +5,7 @@
5
5
  import { ErrorHandler, logger, requestContextService } from "../../../utils/index.js";
6
6
  import { getWrapupInstructions, GitWrapupInstructionsInputSchema, GitWrapupInstructionsOutputSchema, } from "./logic.js";
7
7
  const TOOL_NAME = "git_wrapup_instructions";
8
- const TOOL_DESCRIPTION = "Provides a standard Git wrap-up workflow. This involves reviewing changes with `git_diff`, updating documentation (README, CHANGELOG), and making logical, descriptive commits using the `git_commit` tool. The tool's response also includes the current `git status` output. You should set the working directory using `git_set_working_dir` before running this tool.";
8
+ const TOOL_DESCRIPTION = "Provides a standard Git wrap-up workflow. This involves reviewing changes with `git_diff`, updating documentation (README, CHANGELOG), and making logical, descriptive commits using the `git_commit` tool. Can optionally include instructions to create a Git tag after committing. The tool's response also includes the current `git status` output. You should set the working directory using `git_set_working_dir` before running this tool.";
9
9
  /**
10
10
  * Registers the git_wrapup_instructions tool with the MCP server instance.
11
11
  * @param server The MCP server instance.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyanheads/git-mcp-server",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "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, and more, via the MCP standard. STDIO & HTTP.",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -35,9 +35,9 @@
35
35
  "clean": "ts-node --esm scripts/clean.ts"
36
36
  },
37
37
  "dependencies": {
38
- "@hono/node-server": "^1.16.0",
38
+ "@hono/node-server": "^1.17.1",
39
39
  "@modelcontextprotocol/sdk": "^1.16.0",
40
- "@types/node": "^24.0.14",
40
+ "@types/node": "^24.0.15",
41
41
  "@types/sanitize-html": "^2.16.0",
42
42
  "@types/validator": "^13.15.2",
43
43
  "chrono-node": "2.8.0",