Repository navigation
buffTerm v1.5.2
升级内容
MCP 文件传输
- 新增
upload_file/download_file:外部 AI 可通过 MCP 在本机与授权服务器之间上传、下载文件,复用 SFTP 临时文件 + rename 原子替换,文件字节不进入模型上下文。 - 默认拒绝覆盖:上传、下载均新增
overwrite参数,默认false;目标已存在时直接拒绝,显式传true才替换。审批弹窗显示文件大小与真实覆盖状态。 - 安全边界:只读模式拒绝传输;管控模式每次确认;本地上传路径、下载父目录与远端符号链接都会校验 canonical 真实目标,
.ssh/.aws/.gnupg等敏感位置始终拒绝。 - 完整性与限流:下载校验实际字节数,
flush/sync_all失败不会替换原文件;单文件上限 2 GiB,预检与传输过程双重校验;支持 MCPnotifications/cancelled取消传输并清理半成品。 - MCP 界面:主机选择改为两列布局;接入按钮改为「查看 MCP Server 配置」;工具说明补齐上传、下载能力。
终端
- 底部安全间距:终端底部预留约一行半的空白,窗口缩放后最后一行不再贴底或被遮挡,间距随字号自动调整。
English highlights
- MCP file transfer: new
upload_file/download_filetools run over SFTP with atomic replacement and keep file bytes out of model context. - Overwrite protection: both tools default to
overwrite=false, reject existing targets unless explicitly enabled, and show the real overwrite state plus file size in the approval prompt. - Security and integrity: read-only mode rejects transfers, guarded mode confirms every one, sensitive local/remote paths and symlink targets are rejected, completed downloads are size-checked and fsynced, transfers are capped at 2 GiB, and MCP cancellation cleans up partial files.
- MCP UI: two-column host selection, a clearer "View MCP Server config" action, and the tool hint now lists upload/download.
- Terminal: a bottom safety gap of about 1.5 lines keeps the last row visible after window resizing and scales with the font size.
安装包
请根据操作系统下载对应的 DMG 或 NSIS 安装包。未配置代码签名时,系统可能显示安全提示,放行步骤见 README「首次安装说明」。