tex-mcp-web
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Before editing the paper, call guide() and read every file in its read list in full. Work from read_comments(new=True), which returns what the reviewer has written since you last called it, each thread with the rev that a write passes back. read_comments(ids=[...]) returns whole threads, for when you no longer remember a conversation. Read source with your own file tools. Within the user's editing scope, fix what a thread reports, call compile() once after the batch, verify, and reply with edits naming the ranges you changed. When the reviewer should decide the wording, put a suggestion on their thread instead of opening another comment. Respect read-only or discussion-only requests. Answer a question or a request to explain with a reply in its thread, with or without an edit, including on a thread from Overleaf. Each entry in a thread is private or public. A private entry stays on the review page for the reviewer and you: your replies, your suggestions and what the reviewer writes on the page. A public entry is on Overleaf, for everyone in the project. You never send anything public: write_comments with action="overleaf" drafts what should be public, and only the reviewer sends it. After replying, write in chat only what no thread carries, such as a failed tool or a choice left to the user, and do not repeat the replies or the edits they report. When the user asks you to listen, call listen() and follow its how. Do not poll or duplicate it. Unacknowledged presses stay queued. The config is in the startup directory, and its dir can point to the paper's folder anywhere. To set up review or translation, read /app/tex_mcp_web/agent/init.md.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| guideB | Paths of the files to read in full before editing the paper: the paper's guideline and the guidelines it extends, base first, when guideline is set, and the terms its reference papers use, when references is set. |
| read_commentsA | Read review threads: what is new, selected threads in full, or a listing. |
| overleafA | Compare this folder with its Overleaf project. state reads Overleaf again and reports only what differs: get (Overleaf's edits not here), send (edits here not on Overleaf), choose (files waiting for the reviewer to choose), and, in a git clone, the commits behind and ahead. suggested lists the edits made on Overleaf with track changes on, which wait for the reviewer to accept or reject them on the page; Overleaf's text contains the words of a suggested insertion but not those of a suggested deletion. get brings Overleaf's edits into this folder (git pull in a git clone, Get otherwise); it changes only files here, and a conflict changes nothing. push sends a git clone's commits (git push). Without git, only the reviewer sends edits, from the page. |
| compileA | Compile the paper. Returns whether it succeeded, which pages changed, where the log is, and, when it failed, where each error is. Call once after a batch of source edits. |
| write_commentsA | Write to a comment thread. What you write is private, on the review page for the reviewer and you. overleaf drafts what becomes public, on Overleaf for everyone in the project, once the reviewer sends it. add: text and anchor, plus changes, quoted as for suggest, when the reviewer has asked for proposals left as comments; the new thread then carries that proposal. reply: id and text, or a saved draft on its own. suggest: id, text, changes, rev. Each change's old is quoted from the file the comment is on and must occur there exactly once, as an editing tool expects; never give a line or a column. It replaces the thread's single current proposal and adds text as a reply, so the conversation stays complete. It is refused on a thread the reviewer has not written in: propose on their thread instead of opening your own beside it. withdraw: id, text, rev. overleaf: id, text, rev, and edits naming the source ranges the reply describes, by their current lines; later edits move these ranges as they move a comment, so the draft does not need rewriting when lines shift. On a thread that came from Overleaf (on_overleaf), it drafts the public reply that the reviewer may send there. A thread has one draft, which this replaces, and only the reviewer sends it. A first message the reviewer wrote themselves (overleaf_draft_by: reviewer) is not replaced: your text is added to the thread as your private reply suggesting the wording. The reviewer is asked first when a file that contains those ranges differs between here and Overleaf. Since the draft is public once sent, word it for the people on Overleaf, and answer what the reviewer asks you in the thread with reply, which is private. With anchor (a source_range) instead of id and rev, overleaf drafts a new public thread for Overleaf on those lines, with text as its first message. The result is a thread that has the draft and is not on Overleaf. Call overleaf with its id and rev to redraft it. Only the reviewer sends it, and only once the current text of those ranges is on Overleaf. The reviewer may discuss the draft with you in the thread before sending it, and those entries are private. A thread the reviewer started for Overleaf (new_thread) is waiting for its first message there. What they wrote in it is private and meant for you, and overleaf with id and rev drafts the message they asked for, keeping the meaning of their words and using the register they asked for. edit: id, entry, text, rev; rewrites an entry you wrote. delete: id; refused once the reviewer has written in the thread. rev is the thread's token from read_comments; if the thread has changed since, the write is refused. edits names the source ranges a reply changed. A field the action does not take is refused. The reviewer resolves threads, not you. Returns id, status and rev. |
| imageA | Render one PDF target as PNG. Choose exactly one of page (with optional bbox), source="file.tex:lstart-lend", or comment. Margin expands an exact bbox only while rendering. A multi-page source range renders the page with the most SyncTeX matches. |
| listenA | Return a command and client-specific instructions for listening for Call agent presses. Run the returned command as its how field describes; how is written for the connected client. Stop it when the review is finished or the user asks. |
| setup_infoA | Report setup paths, the existing binding with the paper's folder it serves, the guidelines to choose from, the path of the tex-mcp-web command, whether translation is set up and with which models, and whether the reviewer's Overleaf cookie is saved, without connecting or changing files. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Most tools have clearly distinct roles: compile, image, listen, overleaf, read_comments and write_comments target different actions, and the read/write comment pair is a standard, unambiguous split. The only mild overlap is setup_info versus guide, since both surface paths and configuration (setup_info even mentions 'guidelines to choose from' while guide returns guideline paths), which could briefly confuse an agent about where to look first.
Names are all snake_case and readable, but conventions are mixed: bare verbs (compile, listen), bare nouns (guide, image, overleaf), a noun phrase (setup_info) and verb_noun pairs (read_comments, write_comments). The pattern is inferable from descriptions but there is no predictable scheme an agent can rely on.
Eight tools is well within the sweet spot and each one earns its place: setup, compilation, guidelines, rendering, event listening, Overleaf sync, and the comment read/write pair. Nothing feels padded or thin for a LaTeX review workflow.
The surface covers the core lifecycle: discover setup, read guidelines, compile and inspect errors, render pages, sync with Overleaf, and read/write review threads including proposals and drafts. Minor gaps exist, such as no exposed translation operation despite setup_info reporting translation models, and no dedicated search over the compiled PDF beyond rendering an image, but agents can work around both.