From 6d4ee5ccd5529d6d2764da73e73fac57d7bfb216 Mon Sep 17 00:00:00 2001 From: haoyuren <13851610112@163.com> Date: Sun, 15 Mar 2026 19:43:02 -0500 Subject: Add read_compiled_pdf and search_citation MCP tools - read_compiled_pdf: returns PDF path for Claude Code to visually inspect compiled output - search_citation: search Semantic Scholar for papers, returns ready-to-use BibTeX entries - Updated CLAUDE.md template with new tool docs, workflows, and permissions Co-Authored-By: Claude Opus 4.6 --- src/main/index.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/main/index.ts') diff --git a/src/main/index.ts b/src/main/index.ts index e83c67b..4239be5 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -864,6 +864,12 @@ You have MCP tools to interact with Overleaf. Use them proactively. - **get_compile_warnings**: Get parsed warnings from last compile. - **get_compile_log**: Get full raw log. Pass \`tail: N\` for last N lines only. +### PDF +- **read_compiled_pdf**: Get the path to the compiled PDF. After calling this, use your **Read** tool on the returned path to visually inspect the PDF. Use the \`pages\` parameter (e.g. \`"1-3"\`) to read specific pages. This lets you verify formatting, figures, tables, and layout. + +### Bibliography +- **search_citation**: Search academic papers by title, topic, or author. Returns matching papers with ready-to-use BibTeX entries that can be pasted directly into a \`.bib\` file. + ### Workflows #### Comment Workflow @@ -878,6 +884,13 @@ You have MCP tools to interact with Overleaf. Use them proactively. 2. Use \`compile_latex\` to compile 3. If errors: use \`get_compile_errors\` for details, fix them, recompile 4. If warnings: use \`get_compile_warnings\` to review +5. To check visual output: use \`read_compiled_pdf\`, then Read the returned path with \`pages: "1-3"\` + +#### Bibliography Workflow +1. Use \`search_citation\` with a topic or paper title to find references +2. Copy the BibTeX entry into the \`.bib\` file +3. Use \`\\cite{key}\` in the \`.tex\` file +4. Compile to verify the citation renders correctly ## Workspace @@ -903,7 +916,9 @@ The \`claude-workspace/\` directory is your private scratch space. It is **not s 'mcp__lattex__compile_latex', 'mcp__lattex__get_compile_errors', 'mcp__lattex__get_compile_warnings', - 'mcp__lattex__get_compile_log' + 'mcp__lattex__get_compile_log', + 'mcp__lattex__read_compiled_pdf', + 'mcp__lattex__search_citation' ] } }, null, 2)) -- cgit v1.2.3