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,

115 lines (114 loc) 3.39 kB
{ "name": "@cyanheads/git-mcp-server", "version": "2.1.8", "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.", "main": "dist/index.js", "files": [ "dist" ], "bin": { "git-mcp-server": "dist/index.js" }, "exports": "./dist/index.js", "types": "dist/index.d.ts", "type": "module", "repository": { "type": "git", "url": "git+https://github.com/cyanheads/git-mcp-server.git" }, "bugs": { "url": "https://github.com/cyanheads/git-mcp-server/issues" }, "homepage": "https://github.com/cyanheads/git-mcp-server#readme", "scripts": { "build": "tsc && node --loader ts-node/esm scripts/make-executable.ts dist/index.js", "start": "DOTENV_CONFIG_SILENT=true node dist/index.js", "start:stdio": "DOTENV_CONFIG_SILENT=true MCP_LOG_LEVEL=debug MCP_TRANSPORT_TYPE=stdio node dist/index.js", "start:http": "DOTENV_CONFIG_SILENT=true MCP_LOG_LEVEL=debug MCP_TRANSPORT_TYPE=http node dist/index.js", "rebuild": "ts-node --esm scripts/clean.ts && npm run build", "docs:generate": "typedoc --tsconfig ./tsconfig.typedoc.json", "tree": "ts-node --esm scripts/tree.ts", "fetch-spec": "ts-node --esm scripts/fetch-openapi-spec.ts", "format": "prettier --write \"**/*.{ts,js,json,md,html,css}\"", "inspector": "npx @modelcontextprotocol/inspector --config mcp.json --server git-mcp-server", "inspector:http": "npx @modelcontextprotocol/inspector --config mcp.json --server git-mcp-server-http", "clean": "ts-node --esm scripts/clean.ts" }, "dependencies": { "@hono/node-server": "^1.14.4", "@modelcontextprotocol/sdk": "^1.13.2", "@types/node": "^24.0.7", "@types/sanitize-html": "^2.16.0", "@types/validator": "^13.15.2", "chrono-node": "2.8.0", "dotenv": "16.6.1", "hono": "^4.8.3", "jose": "^6.0.11", "openai": "^5.8.2", "partial-json": "^0.1.7", "sanitize-html": "^2.17.0", "tiktoken": "^1.0.21", "ts-node": "^10.9.2", "typescript": "^5.8.3", "validator": "^13.15.15", "winston": "^3.17.0", "winston-transport": "^4.9.0", "zod": "^3.25.67" }, "keywords": [ "typescript", "MCP", "model-context-protocol", "mcp-server", "llm-tools", "git-tools", "LLM", "AI-integration", "server", "git", "version-control", "repository", "branch", "cherry-pick", "clone", "commit", "devops", "diff", "fetch", "log", "merge", "pull", "push", "rebase", "remote", "reset", "stash", "status", "tag", "worktree", "ai-agent", "automation" ], "author": "cyanheads <casey@caseyjhand.com> (https://github.com/cyanheads/git-mcp-server#readme)", "license": "Apache-2.0", "funding": [ { "type": "github", "url": "https://github.com/sponsors/cyanheads" }, { "type": "buy_me_a_coffee", "url": "https://www.buymeacoffee.com/cyanheads" } ], "engines": { "node": ">=20.0.0" }, "devDependencies": { "prettier": "^3.6.2", "typedoc": "^0.28.6" }, "publishConfig": { "access": "public" } }