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,

144 lines (143 loc) 4.13 kB
{ "name": "@cyanheads/git-mcp-server", "version": "2.3.2", "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": { ".": { "types": "./dist/index.d.ts", "import": "./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", "postbuild": "tsx scripts/make-executable.ts dist/index.js", "start": "node dist/index.js", "start:stdio": "MCP_LOG_LEVEL=debug MCP_TRANSPORT_TYPE=stdio node dist/index.js", "start:http": "MCP_LOG_LEVEL=debug MCP_TRANSPORT_TYPE=http node dist/index.js", "dev": "tsx --watch src/index.ts", "dev:stdio": "MCP_LOG_LEVEL=debug MCP_TRANSPORT_TYPE=stdio tsx --watch src/index.ts", "dev:http": "MCP_LOG_LEVEL=debug MCP_TRANSPORT_TYPE=http tsx --watch src/index.ts", "rebuild": "tsx scripts/clean.ts && npm run build", "docs:generate": "typedoc --tsconfig ./tsconfig.typedoc.json", "depcheck": "npx depcheck", "lint": "eslint .", "lint:fix": "eslint . --fix", "typecheck": "tsc --noEmit", "tree": "tsx scripts/tree.ts", "fetch-spec": "tsx scripts/fetch-openapi-spec.ts", "format": "prettier --write \"**/*.{ts,js,json,md,html,css}\"", "inspector": "npx mcp-inspector --config mcp.json --server git-mcp-server", "test": "vitest run", "test:watch": "vitest", "test:coverage": "vitest run --coverage", "audit": "npm audit --production", "audit:fix": "npm audit fix --production", "prepublishOnly": "npm run typecheck && npm run lint && npm run test && npm run build" }, "dependencies": { "@hono/node-server": "^1.18.0", "@modelcontextprotocol/sdk": "^1.17.1", "axios": "^1.11.0", "chrono-node": "2.8.0", "dotenv": "16.6.1", "hono": "^4.8.10", "ignore": "^7.0.5", "jose": "^6.0.12", "js-yaml": "^4.1.0", "openai": "^5.11.0", "partial-json": "^0.1.7", "sanitize-html": "^2.17.0", "tiktoken": "^1.0.21", "validator": "^13.15.15", "winston": "^3.17.0", "winston-transport": "^4.9.0", "zod": "^3.25.76" }, "devDependencies": { "@eslint/js": "^9.32.0", "@types/node": "^24.1.0", "@types/sanitize-html": "^2.16.0", "@types/validator": "13.15.2", "@vitest/coverage-v8": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^9.32.0", "globals": "^16.3.0", "prettier": "^3.6.2", "tsx": "^4.20.3", "msw": "^2.10.4", "typedoc": "^0.28.8", "typescript": "^5.8.3", "typescript-eslint": "^8.38.0", "vite-tsconfig-paths": "^5.1.4", "vitest": "^3.2.4" }, "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" }, "publishConfig": { "access": "public" } }