feat: 支持私有仓库 Bearer Token 认证安装

- install.sh 添加 --token 参数支持
- 使用 oauth2:${TOKEN}@ 格式进行认证
- README 更新安装说明,包含公开/私有两种方式

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-12 15:36:25 +08:00
co-authored by Claude Opus 4.6
parent 881aeda5bd
commit 71dba5bc2f
2 changed files with 49 additions and 7 deletions
+18
View File
@@ -15,12 +15,21 @@ TLBM 无人车运营 API 的 MCP 封装,支持 Hermes、Claude Code 等 AI Age
### 方式一:一键安装(推荐)
公开仓库:
```bash
curl -fsSL https://git.atomdancing.com/AtomDancing/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
@@ -29,6 +38,15 @@ npm run build
npm link
```
私有仓库(需要 Token):
```bash
git clone https://oauth2:YOUR_TOKEN@git.atomdancing.com/AtomDancing/tlbm-mcp.git
cd tlbm-mcp
npm install
npm run build
npm link
```
## 配置
### Hermes Agent