create_repo
在调用者自己的 GitHub 账号下创建一个新仓库(无需 owner 参数,自动建在 token 所有者名下)。可指定描述、私有/公开、README 初始化、.gitignore 与 License 模板。认证:优先客户端 headers 的 Authorization: Bearer (repo scope),兼容 user_token 参数。服务端仅转发不存储。
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": {
"name": "<name>"
},
"name": "create_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 仓库名:1~100 位字母/数字/./_/-,不以 . - 开头、不以 .git 结尾 | |
| private | No | true 为私有仓库,缺省公开 | |
| auto_init | No | 是否用 README 初始化仓库,缺省 true | |
| user_token | No | 可选(兼容旧用法):GitHub PAT(repo scope)。推荐改用客户端 headers 配置 Authorization: Bearer | |
| description | No | 可选:仓库描述(最长 350 字符) | |
| license_template | No | 可选:License key,如 mit / apache-2.0 / gpl-3.0 | |
| gitignore_template | No | 可选:.gitignore 模板名(GitHub 语言名),如 Node / Python / Go / Rust |