From 436f12ab152f542469531140b5193d79bbd35b9d Mon Sep 17 00:00:00 2001 From: JunWang Date: Sun, 7 Jun 2026 12:08:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20git=20=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E5=9C=B0=E5=9D=80=E4=B8=BA=20atomdancing.pub/tlbm-mcp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 远程地址: gitea@git.atomdancing.com:atomdancing.pub/tlbm-mcp.git - 简化安装说明,统一使用 SSH 地址 Co-Authored-By: Claude Opus 4.6 --- README.md | 31 +++---------------------------- install.sh | 19 ++----------------- 2 files changed, 5 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index 53a2bb4..7d4fc50 100644 --- a/README.md +++ b/README.md @@ -13,32 +13,14 @@ TLBM 无人车运营 API 的 MCP 封装,支持 Hermes、Claude Code 等 AI Age ### 方式一:一键安装(推荐) -公开仓库: ```bash -curl -fsSL https://git.atomdancing.com/AtomDancing/tlbm-mcp/raw/branch/main/install.sh | bash +curl -fsSL https://git.atomdancing.com/atomdancing.pub/tlbm-mcp/raw/branch/main/install.sh | bash ``` -私有仓库(需要 Token): -```bash -curl -fsSL https://git.atomdancing.com/AtomDancing/tlbm-mcp/raw/branch/main/install.sh | bash -s -- --token=YOUR_TOKEN -``` - -> **获取 Token**:Gitea -> 设置 -> 应用 -> 生成访问令牌 - ### 方式二:从源码安装 -公开仓库: ```bash -git clone https://git.atomdancing.com/AtomDancing/tlbm-mcp.git -cd tlbm-mcp -npm install -npm run build -npm link -``` - -私有仓库(需要 Token): -```bash -git clone https://oauth2:YOUR_TOKEN@git.atomdancing.com/AtomDancing/tlbm-mcp.git +git clone gitea@git.atomdancing.com:atomdancing.pub/tlbm-mcp.git cd tlbm-mcp npm install npm run build @@ -49,15 +31,8 @@ npm link ### 一键更新 -重新运行安装脚本即可更新: - ```bash -curl -fsSL https://git.atomdancing.com/AtomDancing/tlbm-mcp/raw/branch/main/install.sh | bash -``` - -私有仓库: -```bash -curl -fsSL https://git.atomdancing.com/AtomDancing/tlbm-mcp/raw/branch/main/install.sh | bash -s -- --token=YOUR_TOKEN +curl -fsSL https://git.atomdancing.com/atomdancing.pub/tlbm-mcp/raw/branch/main/install.sh | bash ``` ### 手动更新 diff --git a/install.sh b/install.sh index 1d8ead4..5629b0e 100755 --- a/install.sh +++ b/install.sh @@ -16,9 +16,7 @@ done # 构建 git URL if [ -n "$TOKEN" ]; then - GIT_URL="https://oauth2:${TOKEN}@git.atomdancing.com/AtomDancing/tlbm-mcp.git" -else - GIT_URL="https://git.atomdancing.com/AtomDancing/tlbm-mcp.git" + GIT_URL="gitea@git.atomdancing.com:atomdancing.pub/tlbm-mcp.git" fi # 检测是否已克隆 @@ -28,20 +26,7 @@ if [ -d "tlbm-mcp" ]; then git pull else echo "📥 克隆仓库..." - # 尝试克隆 - if [ -n "$TOKEN" ]; then - git clone "$GIT_URL" - else - if git clone "$GIT_URL" 2>/dev/null; then - : - else - echo "⚠️ 仓库需要认证,请使用以下命令:" - echo " curl -fsSL https://git.atomdancing.com/AtomDancing/tlbm-mcp/raw/branch/main/install.sh | bash -s -- --token=YOUR_TOKEN" - echo "" - echo "💡 获取 Token: Gitea -> 设置 -> 应用 -> 生成访问令牌" - exit 1 - fi - fi + git clone "$GIT_URL" cd tlbm-mcp fi