Skip to main content
Glama
jolfr

Commit Helper MCP

by jolfr

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
NameRequiredDescriptionDefault

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)
  • 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, )
  • 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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jolfr/commit-helper-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server