TeX402 Fast LaTeX Linter ($0.002 USDC)
tex402_lintValidate LaTeX (.tex) syntax and ChkTeX rules in <300ms via POST /v1/lint ($0.002 USDC via x402) without rendering a PDF. Attach x402 payment via _meta['x402/payment'] or Payment-Signature header, or run npx -y tex402-mcp locally.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"main_tex": "<main_tex>"
},
"name": "tex402_lint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional map of safe relative project paths (e.g. 'refs.bib', 'macros.sty') to UTF-8 strings or 'base64:...' binary payloads | |
| engine | No | TeX engine for draft validation ('pdflatex' or 'xelatex') | pdflatex |
| main_tex | Yes | Root LaTeX document source code (.tex) to lint and validate |