get_commit_questions
Generate interactive questions to guide the creation of conventional commit messages, simplifying adherence to structured formatting standards.
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' tool. Decorated with @mcp.tool() for registration and @handle_errors for error handling. Retrieves questions from CommitzenService, formats result 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-51 (registration)Explicit import of the get_commit_questions function (along with other workflow tools) in the main MCP server module. Importing the decorated function ensures its registration with the MCP framework.from .server.workflow_tools import ( get_commit_questions, health_check, refresh_configuration, commit_workflow_step, )
- src/commit_helper_mcp/mcp_server.py:13-18 (registration)Module-level import of workflow_tools.py, which triggers the execution of the @mcp.tool() decorators and registers the get_commit_questions tool with the MCP server.from .server import message_tools from .server import git_tools from .server import workflow_tools from .server import enhanced_tools from .server import resources