Commit graph servers/src/git
Author SHA1 Message Date
adam jones
d9929014d5
Add mcpName and repository fields for MCP registry (#3068)
Adds metadata required for registering servers in the MCP registry:

- NPM servers (everything, filesystem, memory, sequentialthinking):
  Added mcpName and repository fields to package.json

- PyPI servers (fetch, git, time):
  Added mcp-name comment to README.md

Part of #3047
2025-11-26 14:29:36 +00:00
Adam Jones
350ffeec01
Fix VS Code MCP documentation URLs
Update links to point to the new location at /docs/copilot/customization/mcp-servers
2025-11-25 22:11:56 +00:00
UmakanthKaspa
2f93d3c717
Add comprehensive tests for git server functions (#2970)
- Add tests for git_diff_unstaged, git_diff_staged, and git_diff
- Add tests for git_commit and git_reset operations
- Add tests for git_log with different parameters
- Add tests for git_create_branch with base branch support
- Add tests for git_show including initial commit edge case
- Achieve 100% test coverage of git server functions (12/12)
- All 23 tests pass with 0 errors
2025-11-25 21:43:09 +00:00
Eugene Mwangi
9758f34d36
chore(uv): Prefer --locked for dependency sync (#1852)
Adopt uv best practice for dependency synchronization.

[Note]
- (uv sync --frozen) proceeds with an out-dated lockfile.
  This could lead to inconsistencies.

[Docs]
See: https://docs.astral.sh/uv/concepts/projects/sync/#locking-and-syncing
2025-11-25 21:36:35 +00:00
Christoph Blecker
99813ce5c9
Update gitpython library for git mcp server (#2948)
* bump: gitpython dependency from 3.1.43 to 3.1.45

* test: use default branch name instead of hardcoding 'master'

* fix: handle d.diff as string in GitPython 3.1.45+
2025-11-25 20:35:33 +00:00
UmakanthKaspa
5556c3a0f4 Fix git_create_branch parameter documentation
Changed incorrect 'start_point' to correct 'base_branch' parameter.
The documented parameter didn't match the actual code implementation.
2025-11-09 17:16:53 +09:00
UmakanthKaspa
4225ab46e1 Add test for git_status function
Adds test coverage for the previously untested git_status function.
  The test verifies that the function returns valid git status output
  containing branch information.
2025-11-06 16:58:07 +00:00
Aonan Guan
6382f7846d docs: update README to reflect removed initialization functionality 2025-09-23 21:31:26 -07:00
Aonan Guan
eac56e7bcd refactor: remove redundant initialization functionality 2025-09-23 20:59:54 -07:00
Mohamed Amine Berguiga
09adff0b29
feat(git): add date-based commit log retrieval functions (#2057)
Co-authored-by: adam jones <domdomegg+git@gmail.com>
2025-08-25 18:26:32 +01:00
Matthias Glastra
15ed42bf7e
git MCP: Add support for git-lfs (#2503) 2025-08-16 22:17:12 +01:00
Taj Baba
a67e3b0a92
fix: mcp_server_git: correct add logic for ["."] (#2379) 2025-08-11 12:09:26 +01:00
Kunal Babre
3e230d8637
Merge branch 'modelcontextprotocol:main' into main 2025-07-14 07:51:03 -07:00
Vibor Cipan
b64c0b2926
docs: Adds Zencoder instructions for the Time and git MCP Server (#2337)
* docs: Adds Zencoder instructions for the Time MCP Server

* docs: Adds Zencoder instructions for the git MCP Server
2025-07-14 13:59:54 +01:00
Kunal Babre
55a36ad0dd docs: Clean up VS Code installation instructions
- Remove unnecessary explanatory note about JSON format
- JSON examples already demonstrate the correct format clearly
- Streamlines documentation to focus on essential information
- Maintains reference to official VS Code MCP documentation

The removed note was redundant since both configuration methods 
use identical JSON structure shown in the examples.
2025-07-11 22:53:13 -07:00
Kunal Babre
95a72b792f docs: Add reference to official VS Code MCP documentation
- Add link to official VS Code MCP documentation in all server READMEs
- Enhances existing VS Code installation instructions with authoritative reference
- Provides users with comprehensive documentation for advanced configuration
- Complements the existing two-method approach with additional resources

Affects: everything, filesystem, git, memory, sequentialthinking
2025-07-11 22:45:10 -07:00
Kunal Babre
20eb59590e docs: Update VS Code installation instructions to use mcp.json
- Replace outdated 'Preferences: Open Settings (JSON)' instructions
- Add proper guidance for 'MCP: Open User Configuration' command
- Update JSON examples to remove mcp wrapper key
- Clarify user vs workspace configuration methods
- Fixes issue with outdated documentation across all servers

Affects: sequentialthinking, filesystem, memory, everything, git
2025-07-11 21:36:21 -07:00
JavieHush
1f952310e4 feat: Add git branch functionality and unit tests
This commit introduces the `git branch` tool to the MCP Git server, allowing users to list branches with various filtering options.

Changes include:
- Implemented `git_branch` function in `src/git/src/mcp_server_git/server.py` to support listing local, remote, and all branches, as well as filtering by `contains` and `not_contains` SHA values.
- Added comprehensive unit tests for the `git branch` functionality in `src/git/tests/test_server.py`, covering different branch types and commit filtering scenarios.
- Updated `src/git/README.md`.
2025-06-25 15:10:04 +08:00
Ola Hungerford
1252f484b9
Merge pull request #1326 from mceachen/main
feat(mcp-server-git): Add context_lines to git_diff* tools
2025-06-24 21:07:31 -07:00
Ola Hungerford
fb9bb0b4d9
Merge branch 'main' into hesreallyhim/git-small-fixes-with-typing-and-strings 2025-06-24 20:44:49 -07:00
Ola Hungerford
4e425617b0
Merge pull request #1133 from chuang8511/chunhao/git-servers-typo
Fix json format
2025-06-16 21:44:25 -07:00
David Soria Parra
e515378a90
restore git as ola asked for it 2025-05-29 13:42:18 +01:00
David Soria Parra
d53d6cc75c
Archive unmaintained servers
Removed the following servers from main branch:
- aws-kb-retrieval-server
- brave-search
- everart
- gdrive
- git
- github
- gitlab
- google-maps
- postgres
- puppeteer
- redis
- sentry
- slack
- sqlite

These servers remain maintained:
- sequentialthinking
- time
- memory
- fetch
- filesystem
- everything

Full history preserved in archive-servers branch

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-29 12:04:51 +01:00
JavieHush
e4d856214b feat: Add git branch functionality and unit tests
This commit introduces the `git branch` tool to the MCP Git server, allowing users to list branches with various filtering options.

Changes include:
- Implemented `git_branch` function in `src/git/src/mcp_server_git/server.py` to support listing local, remote, and all branches, as well as filtering by `contains` and `not_contains` SHA values.
- Added comprehensive unit tests for the `git branch` functionality in `src/git/tests/test_server.py`, covering different branch types and commit filtering scenarios.
- Updated `src/git/README.md`.
2025-05-28 16:18:42 +08:00
Really Him
8e86d49346 fix: pyproject 2025-05-13 11:07:36 -04:00
Really Him
7c5dcaf461 chore: add py.typed 2025-05-13 00:14:22 -04:00
Really Him
0ffd7013db fix: fix f-strings 2025-05-12 23:35:19 -04:00
Really Him
abd24f63f8 fix: use 'references' instead of 'refs' for pylance even though it's an alias 2025-05-12 23:32:58 -04:00
Really Him
c53b53030d fix: fix mypy warning about representation of bytes 2025-05-12 23:28:26 -04:00
Really Him
1e7d4bc254 fix: replace deprecated pydantic function 2025-05-12 23:26:09 -04:00
Matthew McEachen
c6eb49bc24
Merge branch 'main' into main 2025-05-11 20:22:48 -07:00
Matthew McEachen
ba54c9d374
fix(server.py): remove unused import 'os' 2025-04-29 16:01:50 -07:00
Matthew McEachen
4c77b64518
refactor(mcp-server-git): Change from environment variable to proper parameter 2025-04-08 17:53:03 -07:00
Matthew McEachen
1ac3c1da59
feat(mcp_server_git): Add support for configurable GIT_DIFF_CONTEXT_LINES
- Introduced `GIT_DIFF_CONTEXT_LINES` environment variable to customize the number of context lines shown in git diff output.
- Updated `git_diff_unstaged`, `git_diff_staged`, and `git_diff` functions to utilize the new context line setting.
- Enhanced README.md to document the new environment variable and its implications.
2025-04-08 15:41:41 -07:00
Burke Holland
e6db372447 Update READMEs with instructions for VS Code installation 2025-04-03 16:37:27 -05:00
ChunHao Huang
fa002daa58
Fix json format 2025-03-29 11:33:52 +00:00
Tadas Antanavicius
f7885220ac
Fix git 2025-03-27 14:19:18 -07:00
Shashwat
fc32e87129 Add git init command support to mcp-git-server and update README 2025-01-21 17:44:18 +05:30
Yuta Miyama
0a05e1085d
Update mcp/git README.md 2025-01-01 16:22:57 +09:00
Jim Clark
621919a954
Switch to uv-less final stages 2024-12-19 17:13:21 -08:00
Jim Clark
4fa1c47b0a
Update fetch Docker to not have ux in final stage 2024-12-19 16:05:22 -08:00
Jim Clark
066426c3fd
Fix git and brave-search typos in README.md 2024-12-19 14:00:30 -08:00
Jim Clark
70e19c466d
Migrate python servers to mcp namespace 2024-12-19 13:42:46 -08:00
colinmcneil
49044156e3
Update readmes to use new mcp namespace 2024-12-19 13:11:36 -08:00
Jim Clark
368e3b23ca
Add Dockerfiles for the 17 sample MCP servers
* add Dockerfiles and update README.md definitions
2024-12-19 13:11:34 -08:00
Ilia Choly
fac500018b add git_show tool 2024-12-17 08:59:45 -05:00
David Soria Parra
79794fe4cf
Merge pull request #166 from mikegehard/feature/git-checkout-command
Allow to check out branches
2024-12-10 14:31:08 +00:00
Mike Gehard
98e78c37b4 Use a test fixture to set proper patterns. 2024-12-08 16:26:59 -05:00
Mike Gehard
ebc797fa1b README change 2024-12-08 16:26:58 -05:00
Mike Gehard
021a95c904 Allow to check out branches
The git server currently lacks branch switching capabilities, limiting both
LLMs and developers. This adds branch checkout so LLMs can
help developers add new functionality in a new feature branch.
2024-12-08 16:26:58 -05:00