Skip to main content
Glama
jolfr

Commit Helper MCP

by jolfr

refresh_configuration

Reload and update Commitizen settings to ensure commit message tools function with current configurations.

Instructions

Refresh the Commitizen configuration and reinitialize the service.

Returns: Dict containing refresh status and new configuration info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function for the 'refresh_configuration' tool, decorated with @mcp.tool(). It refreshes the Commitizen service configuration and returns updated status information.
    @mcp.tool() @handle_errors(log_errors=True) def refresh_configuration() -> Dict[str, Any]: """ Refresh the Commitizen configuration and reinitialize the service. Returns: Dict containing refresh status and new configuration info """ try: service.refresh_config() except Exception as e: raise ConfigurationError( "Failed to refresh configuration", config_file="commitizen config", cause=e ) info = service.get_info() result = { "status": "refreshed", "new_config": info, "timestamp": str(__import__("datetime").datetime.now()), } return create_success_response(result)
  • Import statement in the main MCP server module that brings in the refresh_configuration tool from workflow_tools, ensuring it is registered and available via the MCP server.
    from .server.workflow_tools import ( get_commit_questions, health_check, refresh_configuration, commit_workflow_step, )

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