[!警告] 本仓库中的文件由GitHub Copilot生成。
此仓库包含一个简单的MCP客户端脚本mcp_client.py。
使用Python 3运行脚本:
python ./mcp_client.py
选项A(GitHub CLI):
如果你已在此机器上安装并认证了GitHub CLI(gh),你可以通过以下命令创建一个私有仓库并推送:
gh repo create <OWNER>/<REPO_NAME> --private --source=. --remote=origin --push
选项B(个人访问令牌):
使用GitHub REST API创建仓库(替换<TOKEN>和<REPO_NAME>):
curl -H "Authorization: token <TOKEN>" -H "Accept: application/vnd.github.v3+json" \
https://api.github.com/user/repos \
-d "{\"name\": \"<REPO_NAME>\", \"private\": true}"
然后添加远程仓库并推送:
git remote add origin https://github.com/<OWNER>/<REPO_NAME>.git
git push -u origin main
如果你愿意,我可以为你创建远程仓库并推送。回复你偏好哪种方法,并确认gh已登录或粘贴PAT(仅在你同意的情况下)。