Skip to main content
Glama

dev-kit-mcp-server

commit.py1.14 kB
"""Module for committing changes to a git repository.""" from dataclasses import dataclass from typing import Any, Dict from ...core import AsyncOperation @dataclass class GitCommitOperation(AsyncOperation): """Class to commit changes to a git repository.""" name = "git_commit" async def __call__( self, message: str, ) -> Dict[str, Any]: """Commit changes to the git repository. Args: message: Parameters for committing changes or a commit message Returns: A dictionary containing the status of the commit operation """ # Handle both model and direct parameter input for backward compatibility # Get the repository repo = self._repo # Commit the changes if not message: return { "error": "Commit message cannot be empty", } # Commit the changes commit = repo.git.commit(m=message) return { "status": "success", "message": f"Successfully committed changes: {message}", "commit": commit, }

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/DanielAvdar/dev-kit-mcp-server'

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