lightpdf-aipdf-mcp 0.1.123__py3-none-any.whl → 0.1.125__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.
@@ -360,7 +360,6 @@ async def process_tool_call(
360
360
  elif format == "pdf":
361
361
  # 只调用一次process_batch_files,在lambda里分流
362
362
  async def pdf_convert_dispatcher(file_path, password, original_name):
363
- extra_params = operation_config.get("extra_params")
364
363
  ext = file_handler.get_file_extension(file_path)
365
364
  if ext in [".txt", ".tex"]:
366
365
  if ext == ".txt":
@@ -375,6 +374,7 @@ async def process_tool_call(
375
374
  original_name=original_name
376
375
  )
377
376
  else:
377
+ extra_params = operation_config.get("extra_params")
378
378
  return await process_conversion_file(
379
379
  file_path, format, converter, extra_params, password, original_name
380
380
  )
@@ -428,7 +428,7 @@ async def handle_list_tools() -> list[types.Tool]:
428
428
  return [
429
429
  types.Tool(
430
430
  name="convert_document",
431
- description="Document format conversion tool.\n\nPDF can be converted to: DOCX/XLSX/PPTX/Images (including long images)/HTML/TXT (for text extraction)/CSV;\nOther formats can be converted to PDF: DOCX/XLSX/PPTX/Images/CAD/CAJ/OFD/HTML/TEX (LaTeX).\nOnly whole-file conversion is supported. Does not support creating files from content.",
431
+ description="Document format conversion tool.\n\nPDF can be converted to: DOCX, XLSX, PPTX, images (including long images), HTML, TXT (text extraction), CSV, or Markdown (md). Other formats (DOCX, XLSX, PPTX, images, CAD, CAJ, OFD, HTML, TEX (LaTeX), TXT) can be converted to PDF.\n\nPDF to PDF conversion is not supported.\nOnly entire files can be converted.\nContent-based file creation is not supported.",
432
432
  inputSchema={
433
433
  "type": "object",
434
434
  "properties": {
@@ -456,7 +456,7 @@ async def handle_list_tools() -> list[types.Tool]:
456
456
  },
457
457
  "format": {
458
458
  "type": "string",
459
- "description": "Target format. PDF can be converted to DOCX, XLSX, PPTX, images (including long images), HTML, TXT (text extraction), CSV, or Markdown (md). Other formats (DOCX, XLSX, PPTX, images, TXT) can be converted to PDF.",
459
+ "description": "PDF can be converted to: DOCX, XLSX, PPTX, images (including long images), HTML, TXT (text extraction), CSV, or Markdown (md). Other formats (DOCX, XLSX, PPTX, images, CAD, CAJ, OFD, HTML, TEX (LaTeX), TXT) can be converted to PDF. PDF to PDF conversion is not supported.",
460
460
  "enum": ["pdf", "docx", "xlsx", "pptx", "jpg", "jpeg", "png", "html", "txt", "csv", "md"]
461
461
  },
462
462
  "merge_all": {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lightpdf-aipdf-mcp
3
- Version: 0.1.123
3
+ Version: 0.1.125
4
4
  Summary: MCP Server for LightPDF AI-PDF
5
5
  Author: LightPDF Team
6
6
  License: Proprietary
@@ -3,9 +3,9 @@ lightpdf_aipdf_mcp/common.py,sha256=PhTf7Zg6mEgn1rTmJDHotXp-4xb2gWFf-Dy_t25qNdY,
3
3
  lightpdf_aipdf_mcp/converter.py,sha256=vAFB6XtDFt9NPS9yygKBuL4t43nZU--RqqKPC06Mvkg,16761
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=88Bj0N5G6O2QVErAChp4Dqkxm2gDjp-06DjISFA2u0Y,66050
6
+ lightpdf_aipdf_mcp/server.py,sha256=xPi0OXjwiPuTznMO2n9Qo5Uftvru2j-pej8bFNLkzps,66186
7
7
  lightpdf_aipdf_mcp/translator.py,sha256=NbFDz-mZSD4qCNQVyV0W_0x6xXwbqs_7FiBU13JAxZs,4243
8
- lightpdf_aipdf_mcp-0.1.123.dist-info/METADATA,sha256=Ag7iaAIyhL9-GVPH_VyoeK1-xKEMP5g1DxqVRCJ3R68,8120
9
- lightpdf_aipdf_mcp-0.1.123.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- lightpdf_aipdf_mcp-0.1.123.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
11
- lightpdf_aipdf_mcp-0.1.123.dist-info/RECORD,,
8
+ lightpdf_aipdf_mcp-0.1.125.dist-info/METADATA,sha256=MK0PJFCP-vneMewKOs1u1cPY6yCj4L71cjHOg5ViZHo,8120
9
+ lightpdf_aipdf_mcp-0.1.125.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
+ lightpdf_aipdf_mcp-0.1.125.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
11
+ lightpdf_aipdf_mcp-0.1.125.dist-info/RECORD,,