Files
server-deploy/claude-dev-stack/.env.example
Joywayer 1a29cab661 新增 claude-dev-stack 全栈一键部署脚本
WSL2 + Claude Code CLI (WSL2 原生) + Unity MCP Server (AnkleBreaker) + Rust Token Killer + v2rayN 代理自动配置

- deploy.ps1:8 步全自动部署,支持幂等重跑
- Invoke-WSL 改用 base64 编码规避 PowerShell→WSL CRLF 问题
- nvm 安装 Node.js,正确排除 Windows interop 路径
- claude mcp add --scope user 全局注册 Unity MCP
- .wslconfig networkingMode=mirrored,代理直连 127.0.0.1
- 摘要显示复用已检测变量,避免二次 WSL 调用
- .env.example 提供配置模板,.env 已加入 .gitignore

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-28 09:38:17 +08:00

40 lines
2.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# =============================================================
# Claude Dev Stack 配置文件
# 复制为 .env 并按需填写
# =============================================================
# ── Claude / Anthropic API ──────────────────────────────────
# Anthropic 官方 API Key从 https://console.anthropic.com 获取)
ANTHROPIC_API_KEY=
# API Base URL默认使用 Anthropic 官方;若使用中转代理请修改)
# 示例DeepSeek 兼容接口):
# ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
ANTHROPIC_BASE_URL=https://api.anthropic.com
# 默认使用的模型
# 可选claude-opus-4-5 | claude-sonnet-4-5 | claude-haiku-4-5
# deepseek-v3-0324配合 DeepSeek 接口使用)
CLAUDE_MODEL=claude-opus-4-5
# ── WSL2 ────────────────────────────────────────────────────
# WSL2 发行版名称wsl --list 查看已安装发行版)
WSL_DISTRO=Ubuntu
# 设为 true 可跳过 WSL2 安装步骤(已安装时使用)
SKIP_WSL_INSTALL=false
# ── Unity MCP ───────────────────────────────────────────────
# unity-mcp-server 自动克隆至 WSL2 ~/.mcp-servers/unity-mcp-server/
# Unity Plugin 需手动通过 Package Manager 安装:
# https://github.com/AnkleBreaker-Studio/unity-mcp-plugin.git
# (无需额外配置)
# ── Rust / Token Killer ──────────────────────────────────────
# (暂无需配置,预留扩展用)
# CARGO_REGISTRY_MIRROR=https://rsproxy.cn/
# ── Docker 镜像加速(可选)──────────────────────────────────
# 若 WSL2 内需要 Docker可配置国内加速镜像逗号分隔
# DOCKER_REGISTRY_MIRRORS=https://docker.m.daocloud.io,https://hub-mirror.c.163.com