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.5 KiB
1.5 KiB
Changelog — 技术栈 Cursor 规则 + MySQL MCP 配置
日期: 2026-05-22
类型: 规范 / 工具链
变更摘要
- 新增 4 条基于 Nexus 技术栈的 Cursor 规则(
.cursor/rules/) - 全局安装
@yclenove/mysql-mcp-server,配置项目.cursor/mcp.json - 新增
scripts/sync_mysql_mcp_env.py从NEXUS_DATABASE_URL同步MYSQL_* - 新增
docs/project/mysql-mcp-setup.md配置指南
新增 Cursor 规则
| 文件 | 作用域 |
|---|---|
nexus-tech-stack.mdc |
alwaysApply — 分层、配置、数据流 |
nexus-python-backend.mdc |
server/**/*.py |
nexus-frontend.mdc |
web/app/** |
nexus-security.mdc |
API/应用/DB/前端 — JWT、MCP 只读 |
MCP
- 命令:
npx -y @yclenove/mysql-mcp-server(Windows 经cmd /c) - 连接:项目根
.env内MYSQL_*(由 sync 脚本生成,默认只读)
涉及文件
.cursor/rules/nexus-*.mdc(4 个).cursor/mcp.jsonscripts/sync_mysql_mcp_env.pydocs/project/mysql-mcp-setup.md.env.example(MCP 注释块)docs/README.md
用户待办(启用 MCP 前)
- 确保有
.env(安装向导或copy .env.example .env) python scripts/sync_mysql_mcp_env.py- Cursor → Settings → MCP → 启用
mysql-mcp→ Reload Window
验证
npm install -g @yclenove/mysql-mcp-server@latest成功mysql-mcp-server可执行并读取 worktree 为 cwd- 用户本地
.env+ sync 后test_connection通过(需本机 MySQL)