Skip to main content
Glama

GitHub MCP Server Plus

create_or_update_file

Automate file creation or updates in GitHub repositories by specifying branch, content, path, and commit message. Integrates with GitHub API for streamlined repository management.

Instructions

Create or update a single file in a GitHub repository

Input Schema

NameRequiredDescriptionDefault
branchYesBranch to create/update the file in
contentYesContent of the file
messageYesCommit message
ownerYesRepository owner (username or organization)
pathYesPath where to create/update the file
repoYesRepository name
shaNoSHA of the file being replaced (required when updating existing files)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "branch": { "description": "Branch to create/update the file in", "type": "string" }, "content": { "description": "Content of the file", "type": "string" }, "message": { "description": "Commit message", "type": "string" }, "owner": { "description": "Repository owner (username or organization)", "type": "string" }, "path": { "description": "Path where to create/update the file", "type": "string" }, "repo": { "description": "Repository name", "type": "string" }, "sha": { "description": "SHA of the file being replaced (required when updating existing files)", "type": "string" } }, "required": [ "owner", "repo", "path", "content", "message", "branch" ], "type": "object" }

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/PhialsBasement/mcp-github-server-plus'

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