fly233338/dsh-overleaf
Connect Overleaf projects to DeepSeek Harness (DSH) through OverleafMCP and MCP tools.
已收录
7
Docs
Bundle 已验证
预览
功能介绍
通过 OverleafMCP 将多个 Overleaf 项目接入 DSH,支持浏览、分析和通过 Git 写回 LaTeX 文件。
适合
- 希望在 DSH 中浏览和分析多个 Overleaf 项目 LaTeX 源文件的作者。
- 理解完整项目、修复源代码层面的编译错误或统一术语与符号等文档维护工作流。
- 希望写回 Overleaf 文件或章节时生成明确 Git 提交的团队。
不适合
- 缺少兼容 DSH 0.1.0-rc.5 的运行时、Node.js 22.19+ 或 Overleaf Git 集成 Token 的环境。
- 要求插件自身编译 LaTeX、检查渲染后 PDF 或自动操作 Overleaf 浏览器界面的工作流。
- 修改项目配置后无法重启 DSH 的用户;该配置仅在启动时读取。
README
dsh-overleaf
| English | 中文 |
Connect multiple Overleaf projects to DeepSeek Harness (DSH) through 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.5or a compatible release. - Node.js
22.19.0or 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
The npm installation command becomes available after this package is published.
Configure
The plugin uses dsh-overleaf.config.json next to its index.js. If the file is missing, the plugin creates it on startup with this content. Fill in one shared token and one project ID per line:
{
"gitToken": "your-overleaf-git-token",
"projectIds": [
"project-id-a",
"project-id-b"
]
}
Get project IDs from the <id> in the Overleaf project URL. Create the Git token under Overleaf Account Settings → Git Integration.
Restart DSH after editing the file. The plugin reads it once at startup and generates the internal OverleafMCP project configuration. Do not edit the generated .dsh-overleaf.projects.json file.
The plugin does not read .env and does not require Overleaf environment variables.
Use with the model
Tell the model which project to handle:
Please work on Overleaf project project-id-a and read its main.tex.
The model first calls mcp__overleaf__list_projects, then passes the selected ID as projectName to subsequent Overleaf tools. Write operations require an explicit commitMessage and push a Git commit to Overleaf.
Keep the token out of public source repositories and published package contents.
Scope
The current version supports multiple Overleaf projects through one MCP tool group. It does not compile documents, review PDFs, or automate a browser.
Links
- Project repository
- OverleafMCP
- DSH plugin guide
- insert:
- id: dsh-overleaf name: dsh-overleaf
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:fly233338/dsh-overleaf。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。