create_or_update_file
Create or update a file in a GitHub repository by specifying branch, content, path, and commit message, streamlining repository file management.
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)
You must be authenticated.
Other Tools from GitHub MCP Server
Related Tools
- @asbloom-py/mcp-servers
- @PhialsBasement/mcp-github-server-plus
- @AstroMined/pygithub-mcp-server
- @asbloom-py/mcp-servers
- @PhialsBasement/mcp-github-server-plus