Repository navigation
fix(git): normalize git_log and git_show formatting across filtered and unfiltered queries - #4644
teddiesloco wants to merge 1 commit into
Conversation
…nd unfiltered queries
|
Thank you for this pull request, and apologies for the long wait for a response. Since it was opened, the reference servers have been rebuilt for the 2026-07-28 MCP specification (#4857) and released as v2 (2.0.0 on npm for the TypeScript servers, 2026.10.19 on PyPI for the Python servers). The code this PR changes has been replaced, and the behavior it addresses has either been fixed in v2 or no longer exists in the same form. This is not a judgment on the change or on you; it's a consequence of the code it targets having been replaced. If the problem still happens on v2, please open a fresh issue with the version you're running and steps to reproduce. Note that this repository now accepts contributions as issues rather than pull requests from anyone but its maintainers; see This is part of the backlog triage in #4875. |
Summary
Fixes the schema and formatting asymmetry between filtered (
start_timestamp/end_timestamp) and unfiltered calls ingit_log, as well asgit_show.Root Cause
git_logandgit_show,commit.hexsha!randcommit.message!rwere used, producing quoted strings likeCommit: 'b9fd86...'andMessage: 'feat: ...'. In contrast, the timestamp-filtered branch produced unquotedCommit: b9fd86....Author: Name <email>or plain author name, whereas unfiltered queries producedAuthor: <git.Actor "Name <email>">.datetimeobject string.%x1e/%x1f) instead of splitting by raw newlines (\n), preventing multi-line commit messages from corrupting the parsed log entry count.Fix
Commit: <sha>,Author: Name <email>, ISO-8601Date: <iso_datetime>, and cleanMessage: <message>.test_git_log_schema_consistencyasserting schema uniformity across filtered and unfiltered queries.Verification
uv run pytest tests/ -q(43/43 PASS).npm run buildclean across all workspace packages).