
Overleaf for AI agents (olmcp)
io.github.nipdep由 GitHub 账号 nipdep 发布v1.0.0-alpha.3更新于 Nov 7, 2026
Overleaf for AI agents: review comments, tracked-change edits, new files and PDFs; no Git needed
概览
本地连接器,让 AI 助手读取 Overleaf 审阅评论、以修订形式提出编辑、在讨论串中回复并创建文本文件。
- 可以做什么
- 读取 Overleaf 项目中的评论、讨论串、选中文本和文本文件
- 在 review 模式下提出修订式编辑,评论带 #direct 时直接应用普通编辑
- 在评论讨论串中回复,并按需修改自己待处理的建议
- 创建新的文本文件和缺失的文件夹,并在 Overleaf 上编译项目、把 PDF 保存到本地
- 用 #no-agent 和 #agent 标签跳过或聚焦特定讨论串
- 适用场景
- 适合在 Overleaf 中审阅 LaTeX 论文或报告时使用:希望助手把边注评论变成可审阅的修订,而无需克隆项目或使用 Git。也适合反复“提意见—改一版”的流程,由你保留接受或拒绝每次编辑的审阅权。
- 运行要求
- 需要 Node.js 20 或更高版本、Overleaf 账号,以及支持 MCP 的助手(如 Claude Code 或 Codex);从 GitHub 安装时可能还需要 git。安装 npm 包 olmcp,并通过 olmcp auth 用 overleaf_session2 cookie 登录,或设置 OVERLEAF_SESSION。仅自建 Overleaf 时才需设置 OVERLEAF_BASE_URL。仅限桌面端。
安装
在 SourceWeft 中
- 打开 控制台中的 Overleaf for AI agents (olmcp),将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Agent–Overleaf Connector (olmcp)
olmcp lets an AI agent respond to review comments in an Overleaf project.
You comment in Overleaf. The agent reads the comment and the selected text, proposes an edit as an Overleaf tracked change, and replies in the same thread. You remain the reviewer: you accept or reject the edit and close the thread.
olmcp has no hosted backend: the connector runs on your computer and uses your Overleaf session. Your chosen AI client may still send MCP results to its model provider under that client's own privacy terms.
The workflow
By default, an edit is a proposal, not a silent replacement. Overleaf shows the original text as a tracked deletion and the proposed text as a tracked insertion.
Project status:
1.0.0-alpha.3. The core review flow has been used on real Overleaf projects; newer features such as pending-suggestion revision and file creation still need real-service testing. Start with a disposable project.
What the MCP can and cannot do
The tool surface enforces these limits. However, an agent with unrestricted shell access could read the stored session cookie and contact Overleaf outside the MCP. See Security and trust.
Quick start
You need Node.js 20 or newer, an Overleaf account, and an MCP-capable agent such as Claude Code or Codex. You do not need Python, TeX, or Overleaf's paid Git integration. The current GitHub-based installation may also need the git command; normal use does not.
1. Install olmcp
2. Sign in to Overleaf
Copy the overleaf_session2 cookie from your browser's developer tools, then run:
Treat this cookie like a password. Never paste it into an agent chat, issue, or commit. The setup guide shows where to find it and what to do when it expires.
3. Register the MCP server
Choose your agent, then restart it:
Windows PowerShell commands and other MCP clients are covered in Connect an AI agent.
4. Give the agent your project URL
No project folder or clone is required. After connecting the MCP, paste the Overleaf project URL into the request:
Address the comments in https://www.overleaf.com/project/<project-id>.
If you prefer not to paste the URL each time, you can save the project ID in a working folder with olmcp init. See Choosing a project.
5. Address a comment
In Overleaf, select a sentence and comment “make this clearer.” Then tell your agent:
Address the comments in https://www.overleaf.com/project/<project-id>.
Back in Overleaf, review the tracked edit. Accept or reject it, reply with another request, or resolve the thread yourself.
Everyday controls
Read Using olmcp for examples, modes, tags, file creation, and the complete MCP tool list.
Important safety details
- Tracked changes are attributed to your Overleaf account because the connector uses your session.
- A newly created file cannot be a tracked change. It appears immediately; the connector never overwrites or deletes files.
#directchanges are immediate. Use Overleaf History if you need to undo one.- The interface is unofficial and may break when Overleaf changes it.
- The session cookie usually expires after a few days. Run
olmcp authagain whenolmcp doctorreports an expired session.
Documentation
- Start here: documentation map
- Install and set up
- Use comments, proposals, tags, and files
- Connect and constrain an AI agent
- Run the alpha test checklist
- Check verified behavior and current limits
- Understand the technical design
- Contribute
Release changes are in the changelog. The retired Python workflow—Git sync, source markers, redline.tex, and GitHub Actions—remains on the python-legacy branch.
License and credit
Apache 2.0. See LICENSE. The Overleaf protocol handling follows the approach used by olcli by Alexander Loth (MIT); see THIRD_PARTY_NOTICES.md.
来源:README.md,提交 0a07e78
工具
0版本历史
1- v1.0.0-alpha.3最新Nov 7, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分