
fly233338/dsh-overleaf
70最近提交 2026年8月14日
dsh-overleaf DSH 插件
dsh-overleaf 是一个 DSH 插件,它将 OverleafMCP 作为 npm 依赖安装,并通过 MCP stdio 向 DSH 暴露其工具。模型可以浏览、读取和通过 Git 提交写入 Overleaf 项目中的文件。该插件特别适用于理解整个 LaTeX 项目、自动修复编译错误以及统一文档术语等场景。
如何安装 dsh-overleaf DSH 插件
dsh plugin --profile web add /path/to/dsh-overleaf复制不会执行命令。安装 dsh-overleaf DSH 插件前请核对仓库和版本。
dsh-overleaf DSH 插件数据来源
dsh-overleaf DSH 插件快照日期:2026年8月16日
discovered
dsh-overleaf DSH 插件能做什么
- 浏览和读取多个 Overleaf 项目中的文件
- 检查文档的章节及其内容
- 通过 Git 提交将文件或章节写回 Overleaf
- 使用宿主提供的 DSH MCP 客户端进行交互
dsh-overleaf DSH 插件适合哪些场景
- 理解整个 LaTeX 项目的结构和内容
- 借助模型自动修复 LaTeX 编译错误
- 统一文档中的术语和符号
- 在单个 DSH 会话中编辑多个 Overleaf 项目
dsh-overleaf DSH 插件适合谁
- 使用 Overleaf 并希望获得 AI 辅助编辑的 LaTeX 用户
- 将 DeepSeek Harness 与 Overleaf 项目管理集成的开发者
dsh-overleaf DSH 插件的限制
- 需要 DSH 0.1.0-rc.5 或更新版本以及 Node.js 22.19.0+
- 需要 Overleaf Git 集成令牌,且必须防止泄露到公开仓库
- 不支持编译文档、查看 PDF 或自动化浏览器操作
- 配置文件仅在启动时读取,修改后需重启 DSH
dsh-overleaf DSH 插件的仓库 README 摘录
以下文字摘自 dsh-overleaf DSH 插件的上游仓库 fly233338/dsh-overleaf 的 README,版权归原作者,仅作引用。
Connect multiple Overleaf projects to [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/deepseek-harness) through [OverleafMCP](https://github.com/mjyoo2/overleafmcp). `dsh-overleaf` installs OverleafMCP as an npm dependency, starts it through MCP stdio, and exposes its tools to DSH. The OverleafMCP source is not copied into this project. ## Features Browse and read files from multiple Overleaf projects, inspect document sections and section content, write files or sections back to Overleaf through Git, and use the DSH MCP Client provided by the host. **Based on my experience, it is especially useful in the following scenarios: understanding an entire LaTeX project, automatically fixing LaTeX compilation errors, and unifying terminology and symbols throughout the document.** ## Requirements - DSH `0.1.0-rc.5` or a compatible release. - Node.js `22.19.0` or newer. - An Overleaf Git integration token. ## Install From a DSH source checkout: ``` cd /path/to/deepseek-harness pnpm install pnpm run build pnpm dsh plugin --profile web add /path/to/dsh-overleaf ``` If the DSH CLI is installed and available on `PATH`: ``` dsh plugin --profile web add dsh-overleaf dsh web ```
阅读完整 README仓库许可: MIT
dsh-overleaf DSH 插件常见问题
如何安装 dsh-overleaf?
你可以从 DSH 源码目录安装:进入 `deepseek-harness` 目录,依次执行 `pnpm install`、`pnpm run build`,然后运行 `pnpm dsh plugin --profile web add /path/to/dsh-overleaf`。如果 DSH CLI 已在 PATH 中,直接运行 `dsh plugin --profile web add dsh-overleaf` 即可。npm 包发布后也可通过包名安装。
需要配置什么?
插件首次启动时会在 `index.js` 同级目录下创建 `dsh-overleaf.config.json` 文件。你需要填写 Overleaf Git 集成令牌(`gitToken`)和项目 ID 列表(`projectIds`)。项目 ID 可以从 Overleaf 项目 URL 中获取,Git 令牌在 Overleaf 账户设置 → Git 集成中创建。编辑配置文件后,需要重启 DSH 才能生效。
如何告诉模型处理哪个 Overleaf 项目?
你可以用类似“请在 Overleaf 项目 project-id-a 上工作,并读取它的 main.tex”这样的提示。模型会先调用 `mcp__overleaf__list_projects` 获取可用项目,然后将选中的 ID 作为 `projectName` 传递给后续工具。写入操作需要明确提供 `commitMessage`,并会向 Overleaf 推送一个 Git 提交。
dsh-overleaf 能编译 LaTeX 或查看 PDF 吗?
不能,当前版本不支持编译文档、查看 PDF 或自动化浏览器操作。它只专注于通过 Git 浏览、读取和写入 Overleaf 项目中的文件。如果你提供编译错误输出,模型可以尝试修复,但插件本身不执行编译。
一个插件实例可以使用多个 Overleaf 账户吗?
当前版本对所有项目使用同一个 `gitToken`。如果你需要访问不同 Overleaf 账户下的项目,需要运行多个插件实例或配置多个令牌。项目 ID 必须属于同一个令牌。配置文件目前不支持多个令牌。