Git Objects
Generated automatically at build time from the madtea repository - do not edit here. Source: docs/reference/git-objects.md.
MCP Tools
madt_git_objects
Low-level git object operations (current repo by default; requires madt_enable(domains=[“git-objects”])): refs, trees, blobs, annotated tags, notes, and diff/patch apply.
Output schema: declared
One tool, action-dispatched. Set action to one of:
action="apply_diff"
Apply a diff or patch to the repository, creating a new commit. The target branch must already exist (create one via madt_branches_remote action=create); applying to a protected default branch is rejected.
Required: content
Optional: branch, message, author
action="blob"
Get a git blob by SHA. Content is returned base64-encoded (NOT decoded); for decoded file content addressed by path, use madt_files action=get.
Required: sha
action="commit_patch"
Get a commit as diff or patch format. Returns raw text content.
Required: sha
Optional: format
action="note_create"
Create or update a git note on a commit SHA.
Required: sha, body
action="note_delete"
Delete the git note for a commit SHA.
Required: sha
action="note_get"
Get the git note attached to a commit SHA.
Required: sha
action="refs"
List or filter git references. Without a ref pattern, lists all refs.
Optional: ref
action="tag_object"
Get an annotated tag object by SHA.
Required: sha
action="tree"
Get a git tree object by SHA. Use recursive=true to expand subtrees.
Required: sha
Optional: recursive
Canonical source: docs/reference/git-objects.md in the madtea repo.