list_commits
Retrieve GitHub repository commits by specifying owner, repo, SHA, or pagination. Returns a structured MCP response for tracking or analyzing commit history.
Instructions
List commits in a GitHub repository.
Args:
params: Dictionary with commit parameters
- owner: Repository owner (username or organization)
- repo: Repository name
- page: Page number (optional)
- per_page: Results per page (optional)
- sha: Branch name or commit SHA (optional)
Returns:
MCP response with list of commits
Input Schema
Name | Required | Description | Default |
---|---|---|---|
params | Yes |
Input Schema (JSON Schema)
{
"properties": {
"params": {
"title": "Params",
"type": "object"
}
},
"required": [
"params"
],
"title": "list_commitsArguments",
"type": "object"
}