publish_project
Publishes a local project as a new GitHub repository, handling git init, commit, remote creation, and push.
Instructions
Publish a local project as a new GitHub repository.
Initializes a git repository if needed, commits all files, creates the remote repository on GitHub and pushes the default branch.
Args: path: absolute path to the local project directory. repo_name: GitHub repository name (defaults to the folder name). description: short description for the new repository. private: whether the repository is private. commit_message: optional commit message for the initial commit. branch: default branch for new repositories.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "publish_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| branch | No | main | |
| private | No | ||
| repo_name | No | ||
| description | No | ||
| commit_message | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||