@cyanheads/git-mcp-server 2.0.6 → 2.0.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.
- package/README.md +7 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.typescriptlang.org/)
|
|
4
4
|
[](https://modelcontextprotocol.io/)
|
|
5
|
-
[](./CHANGELOG.md)
|
|
6
6
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
7
7
|
[](https://github.com/cyanheads/git-mcp-server/issues)
|
|
8
8
|
[](https://github.com/cyanheads/git-mcp-server)
|
|
@@ -16,7 +16,9 @@ Built on the [`cyanheads/mcp-ts-template`](https://github.com/cyanheads/mcp-ts-t
|
|
|
16
16
|
## Table of Contents
|
|
17
17
|
|
|
18
18
|
| [Overview](#overview) | [Features](#features) | [Installation](#installation) |
|
|
19
|
+
|
|
19
20
|
| [Configuration](#configuration) | [Project Structure](#project-structure) |
|
|
21
|
+
|
|
20
22
|
| [Tools](#tools) | [Resources](#resources) | [Development](#development) | [License](#license) |
|
|
21
23
|
|
|
22
24
|
## Overview
|
|
@@ -68,7 +70,7 @@ Leverages the robust utilities provided by the `mcp-ts-template`:
|
|
|
68
70
|
|
|
69
71
|
1. Install the package globally:
|
|
70
72
|
```bash
|
|
71
|
-
npm install git-mcp-server
|
|
73
|
+
npm install @cyanheads/git-mcp-server
|
|
72
74
|
```
|
|
73
75
|
|
|
74
76
|
### Install from Source
|
|
@@ -97,11 +99,12 @@ Configure the server using environment variables. Create a `.env` file in the pr
|
|
|
97
99
|
| Variable | Description | Default |
|
|
98
100
|
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
|
|
99
101
|
| `MCP_TRANSPORT_TYPE` | Transport mechanism: `stdio` or `http`. | `stdio` |
|
|
100
|
-
| `MCP_HTTP_PORT` | Port for the HTTP server (if `MCP_TRANSPORT_TYPE=http`). Retries next ports if busy. | `
|
|
102
|
+
| `MCP_HTTP_PORT` | Port for the HTTP server (if `MCP_TRANSPORT_TYPE=http`). Retries next ports if busy. | `3010` |
|
|
101
103
|
| `MCP_HTTP_HOST` | Host address for the HTTP server (if `MCP_TRANSPORT_TYPE=http`). | `127.0.0.1` |
|
|
102
104
|
| `MCP_ALLOWED_ORIGINS` | Comma-separated list of allowed origins for CORS (if `MCP_TRANSPORT_TYPE=http`). | (none) |
|
|
103
105
|
| `MCP_LOG_LEVEL` | Logging level (`debug`, `info`, `notice`, `warning`, `error`, `crit`, `alert`, `emerg`). Inherited from template. | `info` |
|
|
104
106
|
| `GIT_SIGN_COMMITS` | Set to `"true"` to enable signing attempts for commits made by the `git_commit` tool. Requires server-side Git/key setup (see below). | `false` |
|
|
107
|
+
| `MCP_AUTH_SECRET_KEY` | Secret key for signing/verifying authentication tokens (required if auth is enabled in the future). | `''` |
|
|
105
108
|
|
|
106
109
|
### MCP Client Settings
|
|
107
110
|
|
|
@@ -176,7 +179,7 @@ The Git MCP Server provides a suite of tools for interacting with Git repositori
|
|
|
176
179
|
| `git_status` | Gets repository status (branch, staged, modified, untracked files). | `path?` |
|
|
177
180
|
| `git_tag` | Manages tags (list, create annotated/lightweight, delete). | `path?`, `mode`, `tagName?`, `message?`, `commitRef?`, `annotate?` |
|
|
178
181
|
|
|
179
|
-
_Note: The `path` parameter for most tools defaults to the session's working directory if set via `git_set_working_dir
|
|
182
|
+
_Note: The `path` parameter for most tools defaults to the session's working directory if set via `git_set_working_dir`._
|
|
180
183
|
|
|
181
184
|
## Resources
|
|
182
185
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyanheads/git-mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "An MCP (Model Context Protocol) server providing tools to interact with Git repositories. Enables LLMs and AI agents to perform Git operations like clone, commit, push, pull, branch, diff, log, status, and more via the MCP standard.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|