DCR MCP Server
@cybersiddhu
DCR MCP Server - An MCP server implementation using mcp-go
Overview
What is DCR MCP Server?
DCR MCP Server is a Model Context Protocol (MCP) server built with Go that provides a Git Summary tool. It analyzes git commit messages within a specified date range and generates a concise, categorized markdown summary using OpenAI. It is intended for developers who need automated commit analysis.
How to use DCR MCP Server?
Run the server with go run cmd/server/main.go (requires Go 1.23+). It listens on port 8080 by default; set the DCR_MCP_PORT environment variable to change the port. The server exposes a Git Summary tool that accepts parameters like repo_url, branch, start_date, end_date, author, and api_key (or the OPENAI_API_KEY environment variable).
Key features of DCR MCP Server
- Basic MCP server implementation using mcp-go
- Git Summary tool for analyzing commit messages
- Clone any git repository by URL and branch
- Filter commits by date range and author
- Generate human-readable summaries using OpenAI
- Output formatted as markdown with categorized bullet points
Use cases of DCR MCP Server
- Generate weekly or monthly sprint summaries from commit history
- Analyze contributions of a specific author across a date range
- Create release notes by summarizing commits between two dates
- Automate commit report generation for team stand-ups
FAQ from DCR MCP Server
What are the prerequisites to run DCR MCP Server?
You need Go version 1.23 or later installed on your system.
How do I configure the server port?
The server runs on port 8080 by default. Change it by setting the DCR_MCP_PORT environment variable.
How do I provide my OpenAI API key?
Pass the api_key parameter in the tool request, or set the OPENAI_API_KEY environment variable. The api_key parameter overrides the environment variable.
What parameters are required for the Git Summary tool?
The required parameters are repo_url, branch, start_date, author, and api_key. The end_date is optional and defaults to the current date.