delete_repo
删除一个 GitHub 仓库(不可恢复!)。必须显式传 confirm:true。仅允许删除 token 所有者本人的仓库(服务端先核对 owner 与 token 身份一致,组织仓库会被拒绝)。认证:优先客户端请求头 Authorization: Bearer (需 delete_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": {
"owner": "<owner>",
"repo": "<repo>",
"confirm": "<confirm>"
},
"name": "delete_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | 仓库名 | |
| owner | Yes | 仓库属主(必须是 token 所有者本人) | |
| confirm | Yes | 必须显式传 true,确认执行不可恢复的删除 | |
| user_token | No | 可选(兼容旧用法):需 delete_repo scope 的 GitHub PAT。推荐改用客户端 headers 配置 Authorization: Bearer |