Files
tlbm-mcp/install.sh
T
wangjunandClaude Opus 4.6 436f12ab15 fix: 更新 git 仓库地址为 atomdancing.pub/tlbm-mcp
- 远程地址: gitea@git.atomdancing.com:atomdancing.pub/tlbm-mcp.git
- 简化安装说明,统一使用 SSH 地址

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-07 12:08:07 +08:00

65 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
set -e
echo "🚀 TLBM MCP 一键安装脚本"
# 解析参数
TOKEN=""
for arg in "$@"; do
case $arg in
--token=*)
TOKEN="${arg#*=}"
shift
;;
esac
done
# 构建 git URL
if [ -n "$TOKEN" ]; then
GIT_URL="gitea@git.atomdancing.com:atomdancing.pub/tlbm-mcp.git"
fi
# 检测是否已克隆
if [ -d "tlbm-mcp" ]; then
echo "📁 检测到已存在 tlbm-mcp 目录"
cd tlbm-mcp
git pull
else
echo "📥 克隆仓库..."
git clone "$GIT_URL"
cd tlbm-mcp
fi
echo "📦 安装依赖..."
npm install
echo "🔨 构建项目..."
npm run build
echo "🔗 链接到全局..."
npm link
echo "✅ 安装完成!"
echo ""
echo "接下来请配置 MCP 客户端:"
echo ""
echo "Hermes Agent (~/.hermes/config.yaml):"
echo ' mcp_servers:
tlbm:
command: npx
args: ["-y", "tlbm-mcp"]
env:
TLBM_API_URL: "https://www.atomdancing.com/pm"
TLBM_ADMIN_KEY: ""'
echo ""
echo "Claude Code (~/.claude/settings.json):"
echo ' "mcpServers": {
"tlbm": {
"command": "npx",
"args": ["-y", "tlbm-mcp"],
"env": {
"TLBM_API_URL": "https://www.atomdancing.com/pm",
"TLBM_ADMIN_KEY": ""
}
}
}'