Skip to content

Scopes, Tools & Resources

Every JointTex MCP connection carries an explicit list of scopes and (for project-level scopes) an explicit list of authorized projects. Always start with read-only scopes and expand access later via Edit access in Account settings.

Write scopes automatically bring their matching read dependency (compile:run also brings files:read because compile logs and Typst introspection can expose project contents).

Scope Auto-includes Purpose
projects:read — List projects, inspect project context, search and read public templates.
projects:create projects:read Create blank/template projects and request whole-ZIP import links.
projects:organize projects:read, collections:read File selected projects into personal collections.
projects:archive projects:read Archive or unarchive projects in your personal archive.
projects:trash projects:read Move owned projects to the recycle bin or restore them (affects all collaborators).
collections:read — List your personal collection tree (account-level).
collections:write collections:read Create, update, or delete collections (account-level; deleting a collection keeps its projects).
members:invite projects:read Invite collaborators by email to projects you own.
files:read — List, search, read files, read PDFs/images/draw.io diagrams, list sandbox fonts, download file/PDF/ZIP links, read history and project checks.
files:write files:read Create, edit, upload, copy, move, delete files (as tracked changes), restore revisions, and update compile settings.
review:decide files:read Accept or reject pending tracked changes.
compile:run files:read Run synchronous or background compiles, read compile logs, run typst_query/typst_eval, and export to Word, Markdown, HTML, or arXiv packages.
comments:read — Read review comment threads on a project.
comments:write comments:read Start anchored comment threads, reply, resolve/reopen, and delete threads started by this connection.
templates:publish projects:read Publish an owned, compilable project to the public Template Gallery.
account:read — Inspect account setup status (plan, connected services, token counts — never secrets).
notes:read — List, search, and read private Personal Notes (account-level).
notes:write notes:read Create, edit, move, and delete Personal Notes directly (account-level, outside tracked review).
memory:read — Read account-wide Agent memories.
memory:write memory:read Save, update, and delete account-wide Agent memories.
references:read — Search personal reference library, connected Zotero library, online bib_lookup, and (with files:read) project .bib files.

Call get_capabilities on any live connection for the exact catalog revision and tool schemas. Key families include:

  • Discovery & Projects: get_capabilities, list_projects, get_project_context, create_project, invite_member, search_templates, get_template, publish_template, read_account_setup, search_help, read_help.
  • Organization: list_collections, create_collection, update_collection, delete_collection, get_project_collections, add_projects_to_collection, remove_projects_from_collection, move_projects_to_collection, set_project_collections, archive_project, unarchive_project, trash_project, restore_project.
  • Reading & Navigation: list_files, read_file, grep, read_project_index, run_project_checks, word_count, read_image, read_drawio, list_fonts, list_versions, diff_version.
  • Editing (Tracked Changes): write_file (uses expected_version), write_files (atomic multi-file batch), edit_file (anchored by old_string), multi_edit (atomic multi-edit in one file), create_file, upload_file, copy_path, move_path, rename_file, delete_path, restore_file, read_changes, accept_changes, reject_changes.
  • Compilation, SyncTeX & Typst: compile (synchronous), start_compile / get_compile_job / cancel_compile_job (long-running background compiles with request_id), read_compile_log, update_compile_settings, read_pdf (supports pages: "1-8", include_image: true, contact_sheet: true), search_pdf, source_to_pdf, pdf_to_source, typst_query, typst_eval, export_project.
  • Large Transfers: get_project_import_link, get_upload_link, get_upload_links, get_project_archive_link, get_file_link, get_pdf_link.
  • Comments, Notes, Memory & References: read_comments, add_comment, reply_comment, resolve_comment, delete_comment; list_notes, search_notes, read_note, write_note, edit_note; list_memories, save_memory, update_memory, delete_memory; search_references, search_zotero, bib_lookup.
  • Resources:
    • jointtex://projects — list accessible projects as a static MCP resource.
    • jointtex://projects/{project_id}/files/{+path} — read a project file (including nested paths) as an MCP resource.
    • jointtex://projects/{project_id}/compile-log — read the latest compile log.
  • Prompts: fix_compile_errors, review_changes, proofread_file.

Every failed tool call responds with isError: true and a machine-readable structuredContent.error:

{
"error": {
"code": "stale_version",
"message": "File changed since expected_version",
"retry_after_ms": 2000
}
}

Always branch on error.code rather than matching human-readable messages. Key recovery patterns:

  • stale_version / anchor_not_found: Re-read the affected line window (check changed_lines or closest details) and recompute the edit.
  • project_not_authorized / insufficient_scope: Direct the user to settings_url to update connection grants.
  • Idempotency (request_id): Mutation tools that accept request_id (such as start_compile) cache receipts under that UUID so retrying after a dropped HTTP response recovers the original outcome instead of duplicating work.