aa65f10c52
Audit docs:
- docs/reports/audit-phase-2{a-j}-line-walk.md: per-file line walk findings
- docs/reports/audit-phase-2-findings-matrix.md: 63 findings (52 fixed, 3 partial, 7 accepted)
- docs/reports/2026-05-23-full-audit-report.md: full audit consolidation
- docs/reports/audit-full-vs-phase2-reconciliation.md: cross-reference
- docs/reports/audit-phase-2-walk-closure.md: closure sign-off
Project docs:
- docs/project/phase-2-audit-remediation.md: SSOT for all fixes
- docs/project/alert-push-policy.md: dashboard alert design decisions
- docs/project/production-verification-checklist.md: first-deploy checklist
- docs/project/script-execution.md: script platform design
- docs/project/wsl-integration-test.md: WSL code-only verification guide
- docs/project/line-walk-audit-standard.md: audit methodology
- docs/project/mysql-mcp-setup.md: MCP config guide
Changelogs: 18 entries (2026-05-22 to 2026-05-23)
Project memory: CLAUDE.md, AGENTS.md updated to reflect current state
Deploy: nginx_https.conf template updated
Co-authored-by: Cursor <cursoragent@cursor.com>
1.7 KiB
1.7 KiB
Changelog — 本地库最大权限 + WSL Node 20 安装修复
日期: 2026-05-22
类型: 配置 / Bugfix / 工具链
变更摘要
- 修复
scripts/wsl_install_node20.sh:清理损坏代理、curl --noproxy、npmmirror 回退、.cache离线安装 - 新增
scripts/cache-node20-windows.ps1(WSL DNS 失败时由 Windows 下载) .env设置MYSQL_READONLY=false;sync_mysql_mcp_env.py增加--writable/--readonly- 新增
scripts/grant_nexus_local.sql(MySQL 侧 GRANT ALL) - Node 20 已安装至 WSL
~/.local/node-v20.19.2/;MCP 启动显示readonly: false
涉及文件
| 文件 | 操作 |
|---|---|
scripts/wsl_install_node20.sh |
代理修复 + 镜像 + 离线 cache |
scripts/cache-node20-windows.ps1 |
新增 |
scripts/sync_mysql_mcp_env.py |
--writable / --readonly |
scripts/grant_nexus_local.sql |
新增 |
.env |
MYSQL_READONLY=false |
.env.example |
注释本地可写 |
.gitignore |
忽略 .cache/ |
docs/project/mysql-mcp-setup.md |
更新 |
用户待办
# 1. Node 20(若 WSL curl 失败,先在 Windows 执行)
pwsh scripts/cache-node20-windows.ps1
bash scripts/wsl_install_node20.sh
# 2. MCP 可写同步
python3 scripts/sync_mysql_mcp_env.py --writable
# 3. MySQL 授权(需 root,MySQL 服务需运行)
mysql -h 172.31.170.47 -u root -p < scripts/grant_nexus_local.sql
# 4. Cursor Reload Window
验证(2026-05-22 复测)
- WSL
~/.local/node-v20.19.2/bin/node --version→ v20.19.2 wsl_mcp_mysql.sh→[MySQL MCP] Connected!/readonly: falsewsl_check_mysql.py→ 16 张表SHOW GRANTS→GRANT ALL PRIVILEGES ON nexus.* TO Nexus@%(库级权限已具备)