
DCR
STDIOMCP server implementation with Git Summary tool for commit message analysis
MCP server implementation with Git Summary tool for commit message analysis
A simple MCP (Model Control Protocol) server implementation using mcp-go.
go run cmd/server/main.go
By default, the server runs on port 8080. You can change the port by setting the
DCR_MCP_PORT
environment variable.
This MCP tool generates summaries of git commit messages using OpenAI. It analyzes commit messages within a specified date range and creates a concise, user-friendly summary organized by categories.
The tool accepts the following parameters:
{ "repo_url": "https://github.com/username/repo", "branch": "main", "start_date": "2023-01-01", "end_date": "2023-12-31", "author": "author-name" }
repo_url
(required): The URL of the git repository to analyzebranch
(required): The branch to analyzestart_date
(required): The start date for commit analysis (in any standard format)end_date
(optional): The end date for commit analysis (defaults to current date)author
(required): Filter commits by author name (case-insensitive contains match)api_key
(required): Your OpenAI API key (defaults to OPENAI_API_KEY environment variable)"# Work Summary\n\nFeature Enhancements\n- Added support for filtering commits by author name. Users can now specify an optional author parameter to focus on contributions from specific team members.\n\nBug Fixes\n- Fixed date parsing issues that were causing incorrect commit ranges. The system now correctly handles various date formats and timezone considerations.\n\nDocumentation\n- Added comprehensive README with usage examples and parameter descriptions. New users will find it easier to understand how to use the tool effectively."
Run the tests with:
go test ./...
Or using gotestum:
gotestum --format-hide-empty-pkg --format testdox --format-icons hivis