Commit Graph
2 Commits
Author SHA1 Message Date
fenghpandCursor 03eb61520f build: 将 mactfs-mcp 以 esbuild 单文件打进 .app
- mactfs-mcp 增加 esbuild 与 build:bundle 脚本,产出单文件 dist-bundle/index.cjs
  (免带 node_modules),用 .cjs 规避 type:module 下的 ESM 误判
- mactfsui extraResources 增加 { from: ../mactfs-mcp/dist-bundle, to: mcp },
  dist 链路加入 prepare:mcp(自动 install + build:bundle)
- Electron resolveMcpEntry 打包态改为命中 Resources/mcp/index.cjs
- 同步更新 mactfs-mcp/README 与打包构建文档(移除「MCP 未打进 .app」的旧限制)

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-23 11:17:00 +08:00
fenghpandCursor e9f942e695 feat: 新增 mactfs-mcp 服务(AI 改文件前自动签出/加入)
- mactfs-mcp:通过 SSE 暴露 tfs_checkout / tfs_add,转调本机 Java 后端操作 TFS
- 后端 MacTfsCoreService/MacTfsServer 新增文件状态查询等接口,供 MCP 执行前校验
- Electron 随客户端拉起并回收 MCP 子进程(父死自杀、崩溃自动重拉)
- tfs_checkout 默认行为:新文件自动 add、本地落后自动 get-latest 后再签出
  (可分别用 autoAdd=false / getLatestIfStale=false 关闭;dryRun 无副作用)
- 新增 docs/打包构建与MCP使用指南.md

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-23 10:31:31 +08:00