create_or_update_file
Create or update a file in a GitHub repository by specifying the branch, file path, content, and commit message. This tool simplifies file management and version control within GitHub repositories.
Instructions
Create or update a single file in a GitHub repository
Input Schema
Name | Required | Description | Default |
---|---|---|---|
branch | Yes | Branch to create/update the file in | |
content | Yes | Content of the file | |
message | Yes | Commit message | |
owner | Yes | Repository owner (username or organization) | |
path | Yes | Path where to create/update the file | |
repo | Yes | Repository name | |
sha | No | SHA of the file being replaced (required when updating existing files) |
Input Schema (JSON Schema)
This server cannot be installed
Other Tools from GitHub MCP Server
Related Tools
- @modelcontextprotocol/github
- @PhialsBasement/mcp-github-server-plus
- @AstroMined/pygithub-mcp-server
- @AstroMined/pygithub-mcp-server
- @asbloom-py/mcp-servers