GitHub MCP Server

by asbloom-py

push_files

Push multiple files to a GitHub repository in a single commit, specifying branch, file paths, content, and commit message. Streamline file updates and collaborative workflows on GitHub.

Instructions

Push multiple files to a GitHub repository in a single commit

Input Schema

NameRequiredDescriptionDefault
branchYesBranch to push to (e.g., 'main' or 'master')
filesYesArray of files to push
messageYesCommit message
ownerYesRepository owner (username or organization)
repoYesRepository name

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "branch": { "description": "Branch to push to (e.g., 'main' or 'master')", "type": "string" }, "files": { "description": "Array of files to push", "items": { "additionalProperties": false, "properties": { "content": { "description": "Content of the file", "type": "string" }, "path": { "description": "Path where to create the file", "type": "string" } }, "required": [ "path", "content" ], "type": "object" }, "type": "array" }, "message": { "description": "Commit message", "type": "string" }, "owner": { "description": "Repository owner (username or organization)", "type": "string" }, "repo": { "description": "Repository name", "type": "string" } }, "required": [ "owner", "repo", "branch", "files", "message" ], "type": "object" }

You must be authenticated.

Other Tools from GitHub MCP Server

Related Tools

ID: bnif4b1rh6