Skip to main content
Glama
jolfr

Commit Helper MCP

by jolfr
base_server.py1.16 kB
""" Base MCP Server Setup Common utilities and FastMCP initialization for the Commit Helper MCP Connector. """ import logging from mcp.server.fastmcp import FastMCP from ..service_facade import CommitzenService from ..errors import handle_errors, ServiceError # Configure logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) # Initialize FastMCP server mcp = FastMCP("Commitizen MCP Connector") # Initialize global service instance with environment variable support @handle_errors(log_errors=True) def initialize_service(): """Initialize the CommitzenService with error handling.""" try: service_instance = ( CommitzenService() ) # Will check COMMITIZEN_REPO_PATH automatically logger.info("CommitzenService initialized successfully") return service_instance except Exception as e: logger.error(f"Failed to initialize CommitzenService: {e}") raise ServiceError( "Failed to initialize CommitzenService", service_name="CommitzenService", cause=e, ) # Initialize service service = initialize_service()

Implementation Reference

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