Commit Graph

25 Commits

Author SHA1 Message Date
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
Taj Baba
a67e3b0a92 fix: mcp_server_git: correct add logic for ["."] (#2379) 2025-08-11 12:09:26 +01: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
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
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
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
Shashwat
fc32e87129 Add git init command support to mcp-git-server and update README 2025-01-21 17:44:18 +05:30
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
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
monkeydaichan
768a5af80c docs(git): restore original README formatting and add git_diff doc
Restored the original formatting while adding documentation for the new git_diff tool. No changes were made to the existing documentation structure.
2024-12-07 01:33:34 +09:00
monkeydaichan
ba301c4a66 feat(git): add git_diff tool for branch comparison
Added new git_diff tool to allow comparison between branches or commits.
This adds the ability to compare branches directly through the MCP interface.
2024-12-07 01:25:33 +09:00
Mike Gehard
c0a1cb7eac Update src/git/src/mcp_server_git/server.py
Co-authored-by: Justin Spahr-Summers <justin@jspahrsummers.com>
2024-12-03 11:19:22 -05:00
Mike Gehard
6135c62c69 Add git branch creation functionality 2024-12-01 16:30:36 -05:00
David Soria Parra
e8a26bbf53 lint clean 2024-11-27 22:42:47 +00:00
David Soria Parra
100323a425 Reworking the git server 2024-11-21 23:16:04 +00:00
Justin Spahr-Summers
06cb2759b8 Fix package and executable names, re-sync uv 2024-11-21 21:07:25 +00:00