get_git_implementation_info
Check Git implementation details and available features to determine compatibility and functionality for commit operations.
Instructions
Get information about the current git implementation and available features.
Returns: Dict containing: - git_enabled: Whether git operations are available - implementation: Current git implementation ("GitPython") - enhanced_features: Whether enhanced features are available - features: Dict of available feature flags
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- MCP tool handler decorated with @mcp.tool(), executes by calling service.get_git_implementation_info() and wrapping in success response.@mcp.tool() @handle_errors(log_errors=True) def get_git_implementation_info() -> Dict[str, Any]: """ Get information about the current git implementation and available features. Returns: Dict containing: - git_enabled: Whether git operations are available - implementation: Current git implementation ("GitPython") - enhanced_features: Whether enhanced features are available - features: Dict of available feature flags """ result = service.get_git_implementation_info() return create_success_response(result)
- Helper method in CommitzenService facade that provides the actual git implementation information based on service state.def get_git_implementation_info(self) -> Dict[str, Any]: """Get information about the current git implementation.""" return create_success_response( { "git_enabled": self.git_enabled, "implementation": self.git_implementation, "enhanced_features": self.git_enabled, # GitPython always has enhanced features "features": { "basic_operations": self.git_enabled, "enhanced_status": self.git_enabled, "detailed_diffs": self.git_enabled, "commit_statistics": self.git_enabled, "repository_analytics": self.git_enabled, }, } )
- src/commit_helper_mcp/server/git_tools.py:25-40 (registration)The @mcp.tool() decorator registers this function as an MCP tool.@mcp.tool() @handle_errors(log_errors=True) def get_git_implementation_info() -> Dict[str, Any]: """ Get information about the current git implementation and available features. Returns: Dict containing: - git_enabled: Whether git operations are available - implementation: Current git implementation ("GitPython") - enhanced_features: Whether enhanced features are available - features: Dict of available feature flags """ result = service.get_git_implementation_info() return create_success_response(result)