lightpdf-aipdf-mcp 0.1.131__py3-none-any.whl → 0.1.133__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -338,7 +338,7 @@ class Converter(BaseApiClient):
338
338
  # 支持直接转PDF的文件后缀
339
339
  direct_pdf_exts = {".docx", ".xlsx", ".pptx", ".jpg", ".jpeg", ".png", ".dwg", ".caj", ".ofd", ".html", ".txt", ".tex"}
340
340
  # 本地.html 或 URL 且后缀不在direct_pdf_exts都走wkhtmltopdf
341
- if ext == ".html" or (self.file_handler.is_url(file_path) and ext not in direct_pdf_exts):
341
+ if ext == ".html" or (file_path and file_path.startswith(("http://", "https://")) and ext not in direct_pdf_exts):
342
342
  api_url = self.api_wkhtmltopdf_url
343
343
 
344
344
  # 检查是否为OSS路径
@@ -1166,13 +1166,13 @@ async def handle_list_tools() -> list[types.Tool]:
1166
1166
  ),
1167
1167
  types.Tool(
1168
1168
  name="create_pdf",
1169
- description="Create a PDF file from LaTeX content. Provide LaTeX source code and get a compiled PDF file as output.",
1169
+ description="Create a PDF file from LaTeX source code string only. File upload is NOT supported. If you want to convert a TEX file to PDF, please use the convert_document tool instead. This tool only accepts pure LaTeX code as input.",
1170
1170
  inputSchema={
1171
1171
  "type": "object",
1172
1172
  "properties": {
1173
1173
  "latex_code": {
1174
1174
  "type": "string",
1175
- "description": "The LaTeX source code to be compiled into a PDF file. Only pure LaTeX code is allowed; other formats are not supported."
1175
+ "description": "The LaTeX source code string to be compiled into a PDF file. Only pure LaTeX code as a string is allowed; file upload, file path, or file content is NOT supported. If you have a TEX file, use the convert_document tool."
1176
1176
  },
1177
1177
  "filename": {
1178
1178
  "type": "string",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lightpdf-aipdf-mcp
3
- Version: 0.1.131
3
+ Version: 0.1.133
4
4
  Summary: MCP Server for LightPDF AI-PDF
5
5
  Author: LightPDF Team
6
6
  License: Proprietary
@@ -1,11 +1,11 @@
1
1
  lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
2
2
  lightpdf_aipdf_mcp/common.py,sha256=PhTf7Zg6mEgn1rTmJDHotXp-4xb2gWFf-Dy_t25qNdY,6660
3
- lightpdf_aipdf_mcp/converter.py,sha256=_tXzNZZEaobPRjxXy3v__qHUzbDHIZRTIanmmpCrQB0,17058
3
+ lightpdf_aipdf_mcp/converter.py,sha256=AOICzxpJnf44DpYMtJiI0rgLC9mqoabf4UHC3uO5bFU,17082
4
4
  lightpdf_aipdf_mcp/create_pdf.py,sha256=oALIhOBo60D3Gu_li7d7FF0COhFfSTM-BJpc63r9iAs,2465
5
5
  lightpdf_aipdf_mcp/editor.py,sha256=cYJ6NlS9q_HJwL-Aw7mVwCT5CECMLWYlmR_ePhw_Ja4,30081
6
- lightpdf_aipdf_mcp/server.py,sha256=rg6u8REp_2Xiy74hK6ZaeGB6JZNfiZQ7MHyrIqhh1co,66370
6
+ lightpdf_aipdf_mcp/server.py,sha256=OKGNYcnUDP_uLRz_is4XhUEXTiCgyj3veIKAxLY6H20,66587
7
7
  lightpdf_aipdf_mcp/translator.py,sha256=NbFDz-mZSD4qCNQVyV0W_0x6xXwbqs_7FiBU13JAxZs,4243
8
- lightpdf_aipdf_mcp-0.1.131.dist-info/METADATA,sha256=9l1stJ1dwbOrFer-goU84UdcBV_Tk8uwxQVns_YwbHo,8120
9
- lightpdf_aipdf_mcp-0.1.131.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- lightpdf_aipdf_mcp-0.1.131.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
11
- lightpdf_aipdf_mcp-0.1.131.dist-info/RECORD,,
8
+ lightpdf_aipdf_mcp-0.1.133.dist-info/METADATA,sha256=ul5xYv2C9n85U4VDJvTrB7iU08vEmHxtYqV2ZqSvK6o,8120
9
+ lightpdf_aipdf_mcp-0.1.133.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
+ lightpdf_aipdf_mcp-0.1.133.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
11
+ lightpdf_aipdf_mcp-0.1.133.dist-info/RECORD,,