{"name":"tex402-mcp","version":"1.0.0","description":"Official Model Context Protocol (MCP) stdio server for TeX402 — hardened x402-monetized LaTeX-to-PDF compilation ($0.008 USDC), 150-DPI multimodal PNG previews, and <300ms ChkTeX + draftmode linting ($0.002 USDC) on Base.","homepage":"https://tex.x.gl","documentationUrl":"https://tex.x.gl/llms-full.txt","transport":{"type":"stdio"},"package":{"registry":"npm","name":"tex402-mcp","version":"1.0.0","runtime":"npx","command":"npx","args":["-y","tex402-mcp"]},"environmentVariables":[{"name":"TEX402_BASE_URL","description":"Base URL of the TeX402 x402 v2 API server (defaults to https://tex.x.gl).","required":false,"isSecret":false,"default":"https://tex.x.gl"},{"name":"TEX402_PRIVATE_KEY","description":"0x-prefixed EVM private key funded with USDC on Base Mainnet (eip155:8453) used to sign gasless EIP-3009 x402 payments for tex402_lint ($0.002) and tex402_compile ($0.008). Optional for free tex402_status.","required":false,"isSecret":true}],"x402":{"version":2,"mode":"mainnet","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","assetSymbol":"USDC","payTo":"0x5e18Dfb04F64e1D0d3593178a004A251506c2e16","facilitatorUrl":"https://api.cdp.coinbase.com/platform/v2/x402","wellKnownUrl":"https://tex.x.gl/.well-known/x402"},"tools":[{"name":"tex402_status","description":"Check TeX402 server health, active x402 network/payTo, Docker TeX Live worker pool readiness, and local buyer wallet status (free / $0.00 USDC).","endpoint":"https://tex.x.gl/health","method":"GET","priceUsd":"0.000","inputSchema":{"type":"object","properties":{},"additionalProperties":false}},{"name":"tex402_lint","description":"Run concurrent ChkTeX static linting and single-pass pdflatex/xelatex -draftmode validation in <300ms ($0.002 USDC via x402).","endpoint":"https://tex.x.gl/v1/lint","method":"POST","priceUsd":"0.002","inputSchema":{"type":"object","required":["main_tex"],"additionalProperties":false,"properties":{"main_tex":{"type":"string","description":"Root LaTeX document source code (.tex) to lint and validate."},"files":{"type":"object","description":"Optional map of safe relative paths to UTF-8 strings or base64:... binary payloads.","additionalProperties":{"type":"string"}},"engine":{"type":"string","enum":["pdflatex","xelatex"],"default":"pdflatex","description":"LaTeX engine used for -draftmode validation."}}}},{"name":"tex402_compile","description":"Compile multi-file LaTeX documents to PDF inside a hardened TeX Live container, saving the decoded PDF to disk and optionally returning 150-DPI PNG page previews ($0.008 USDC via x402).","endpoint":"https://tex.x.gl/v1/compile","method":"POST","priceUsd":"0.008","inputSchema":{"type":"object","required":["main_tex"],"additionalProperties":false,"properties":{"main_tex":{"type":"string","description":"Root LaTeX document source code (.tex)."},"output_pdf_path":{"type":"string","description":"Optional local file path where the compiled PDF binary should be saved."},"files":{"type":"object","description":"Optional map of safe relative file paths (e.g. refs.bib, style.sty, images/fig.png) to UTF-8 strings or base64:... payloads.","additionalProperties":{"type":"string"}},"engine":{"type":"string","enum":["pdflatex","xelatex"],"default":"pdflatex","description":"TeX engine used for compilation."},"bibliography":{"type":"boolean","default":false,"description":"Run multi-pass biber/bibtex bibliography compilation when true."},"include_page_previews":{"type":"boolean","default":false,"description":"Attach 150-DPI PNG page previews as multimodal image/png blocks when true."}}}}]}