get_commit_questions
Generate conventional commit messages by answering interactive questions that guide proper formatting and structure.
Instructions
Get interactive questions for commit message generation.
Returns: Dict containing the questions and metadata
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The core handler function for the 'get_commit_questions' MCP tool. Decorated with @mcp.tool() for registration and @handle_errors for error handling. Retrieves commit questions from the CommitzenService, formats the response with count and plugin info, and returns a success response.@mcp.tool() @handle_errors(log_errors=True) def get_commit_questions() -> Dict[str, Any]: """ Get interactive questions for commit message generation. Returns: Dict containing the questions and metadata """ questions = service.get_questions() result = { "questions": questions, "count": len(questions), "plugin": service.get_info().get("plugin_name"), } return create_success_response(result)
- src/commit_helper_mcp/mcp_server.py:46-52 (registration)Import statement in mcp_server.py that brings in the get_commit_questions tool function, triggering its @mcp.tool() decorator registration when the module is imported.from .server.workflow_tools import ( get_commit_questions, health_check, refresh_configuration, commit_workflow_step, )