lightpdf-aipdf-mcp 0.1.53__py3-none-any.whl → 0.1.54__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.
- lightpdf_aipdf_mcp/server.py +4 -4
- {lightpdf_aipdf_mcp-0.1.53.dist-info → lightpdf_aipdf_mcp-0.1.54.dist-info}/METADATA +1 -1
- {lightpdf_aipdf_mcp-0.1.53.dist-info → lightpdf_aipdf_mcp-0.1.54.dist-info}/RECORD +5 -5
- {lightpdf_aipdf_mcp-0.1.53.dist-info → lightpdf_aipdf_mcp-0.1.54.dist-info}/WHEEL +0 -0
- {lightpdf_aipdf_mcp-0.1.53.dist-info → lightpdf_aipdf_mcp-0.1.54.dist-info}/entry_points.txt +0 -0
lightpdf_aipdf_mcp/server.py
CHANGED
@@ -196,7 +196,7 @@ async def process_edit_file(
|
|
196
196
|
)
|
197
197
|
elif edit_type == "rotate":
|
198
198
|
# 从extra_params获取旋转参数列表
|
199
|
-
rotation_arguments = extra_params.get("
|
199
|
+
rotation_arguments = extra_params.get("rotates", [])
|
200
200
|
|
201
201
|
# 验证旋转参数列表
|
202
202
|
if not rotation_arguments:
|
@@ -737,7 +737,7 @@ async def handle_list_tools() -> list[types.Tool]:
|
|
737
737
|
},
|
738
738
|
"description": "需要旋转的PDF文件列表,每个文件包含路径和可选的密码"
|
739
739
|
},
|
740
|
-
"
|
740
|
+
"rotates": {
|
741
741
|
"type": "array",
|
742
742
|
"items": {
|
743
743
|
"type": "object",
|
@@ -759,7 +759,7 @@ async def handle_list_tools() -> list[types.Tool]:
|
|
759
759
|
"description": "参数列表,每个参数包含旋转角度和页面范围"
|
760
760
|
}
|
761
761
|
},
|
762
|
-
"required": ["files", "
|
762
|
+
"required": ["files", "rotates"]
|
763
763
|
}
|
764
764
|
)
|
765
765
|
]
|
@@ -822,7 +822,7 @@ async def handle_call_tool(name: str, arguments: dict | None) -> list[types.Text
|
|
822
822
|
"rotate_pdf": {
|
823
823
|
"edit_type": "rotate", # 编辑类型
|
824
824
|
"is_edit_operation": True, # 标记为编辑操作
|
825
|
-
"param_keys": ["
|
825
|
+
"param_keys": ["rotates"] # 只需要rotates参数,移除对旧格式的支持
|
826
826
|
}
|
827
827
|
}
|
828
828
|
|
@@ -2,8 +2,8 @@ lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6
|
|
2
2
|
lightpdf_aipdf_mcp/common.py,sha256=-7LU6gm-As_F8Ly68ssy15Vc9Zt_eNSnvDLEtVZDwlI,6633
|
3
3
|
lightpdf_aipdf_mcp/converter.py,sha256=QBwKcCg83FrGGDCy3IFyXjldIZg2hzej_zCH8nyOPak,14768
|
4
4
|
lightpdf_aipdf_mcp/editor.py,sha256=RuHxTMlyvUp2keh0Plue2g4vwGe4Vzv5mauJuncyM8o,23551
|
5
|
-
lightpdf_aipdf_mcp/server.py,sha256=
|
6
|
-
lightpdf_aipdf_mcp-0.1.
|
7
|
-
lightpdf_aipdf_mcp-0.1.
|
8
|
-
lightpdf_aipdf_mcp-0.1.
|
9
|
-
lightpdf_aipdf_mcp-0.1.
|
5
|
+
lightpdf_aipdf_mcp/server.py,sha256=mgCXhdPPusssVDQAFyFuSrfHr_PUffztpJSWsg9newY,41455
|
6
|
+
lightpdf_aipdf_mcp-0.1.54.dist-info/METADATA,sha256=082iWOLst2JL_k0HoKrp0PDeIz6IlswN14AZgaxaRuE,7906
|
7
|
+
lightpdf_aipdf_mcp-0.1.54.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
+
lightpdf_aipdf_mcp-0.1.54.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
9
|
+
lightpdf_aipdf_mcp-0.1.54.dist-info/RECORD,,
|
File without changes
|
{lightpdf_aipdf_mcp-0.1.53.dist-info → lightpdf_aipdf_mcp-0.1.54.dist-info}/entry_points.txt
RENAMED
File without changes
|