lightpdf-aipdf-mcp 0.1.71__py3-none-any.whl → 0.1.73__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/common.py +1 -1
- lightpdf_aipdf_mcp/server.py +4 -10
- {lightpdf_aipdf_mcp-0.1.71.dist-info → lightpdf_aipdf_mcp-0.1.73.dist-info}/METADATA +1 -1
- lightpdf_aipdf_mcp-0.1.73.dist-info/RECORD +9 -0
- lightpdf_aipdf_mcp-0.1.71.dist-info/RECORD +0 -9
- {lightpdf_aipdf_mcp-0.1.71.dist-info → lightpdf_aipdf_mcp-0.1.73.dist-info}/WHEEL +0 -0
- {lightpdf_aipdf_mcp-0.1.71.dist-info → lightpdf_aipdf_mcp-0.1.73.dist-info}/entry_points.txt +0 -0
lightpdf_aipdf_mcp/common.py
CHANGED
lightpdf_aipdf_mcp/server.py
CHANGED
@@ -28,14 +28,12 @@ T = TypeVar('T', bound=BaseResult)
|
|
28
28
|
ProcessFunc = Callable[[str], Any]
|
29
29
|
|
30
30
|
def generate_result_report(
|
31
|
-
results: List[BaseResult]
|
32
|
-
operation_name: str
|
31
|
+
results: List[BaseResult]
|
33
32
|
) -> str:
|
34
33
|
"""生成通用结果报告
|
35
34
|
|
36
35
|
Args:
|
37
36
|
results: 结果列表
|
38
|
-
operation_name: 操作名称
|
39
37
|
|
40
38
|
Returns:
|
41
39
|
str: JSON格式的报告文本
|
@@ -46,7 +44,6 @@ def generate_result_report(
|
|
46
44
|
|
47
45
|
# 构建结果JSON对象
|
48
46
|
report_obj = {
|
49
|
-
"operation": operation_name,
|
50
47
|
"total": len(results),
|
51
48
|
"success_count": success_count,
|
52
49
|
"failed_count": failed_count,
|
@@ -308,8 +305,7 @@ async def process_tool_call(
|
|
308
305
|
|
309
306
|
# 生成报告
|
310
307
|
report_msg = generate_result_report(
|
311
|
-
results
|
312
|
-
operation_desc
|
308
|
+
results
|
313
309
|
)
|
314
310
|
else:
|
315
311
|
# 转换操作
|
@@ -342,8 +338,7 @@ async def process_tool_call(
|
|
342
338
|
|
343
339
|
# 生成报告
|
344
340
|
report_msg = generate_result_report(
|
345
|
-
results
|
346
|
-
task_type
|
341
|
+
results
|
347
342
|
)
|
348
343
|
|
349
344
|
# 如果全部失败,记录错误
|
@@ -1037,8 +1032,7 @@ async def handle_call_tool(name: str, arguments: dict | None) -> list[types.Text
|
|
1037
1032
|
|
1038
1033
|
# 构建结果报告
|
1039
1034
|
report_msg = generate_result_report(
|
1040
|
-
[result]
|
1041
|
-
"PDF合并"
|
1035
|
+
[result]
|
1042
1036
|
)
|
1043
1037
|
|
1044
1038
|
# 如果失败,记录错误
|
@@ -0,0 +1,9 @@
|
|
1
|
+
lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
|
2
|
+
lightpdf_aipdf_mcp/common.py,sha256=m_fNxU9NqJOgF3FpTWPpprPkIe60YjnU1tEN6cI660Q,6601
|
3
|
+
lightpdf_aipdf_mcp/converter.py,sha256=CNdR2uUsA79_6Mzk6eHxo_F7Ripl14S8BdsmKJkV-94,14568
|
4
|
+
lightpdf_aipdf_mcp/editor.py,sha256=NEBu6QUcU6xYIa8ZsAoNABEr0ADxFVKWVrHrb28mjxY,26714
|
5
|
+
lightpdf_aipdf_mcp/server.py,sha256=-3FQln4Mqx5sDVOtSq_ptPJvt3OoFapMqSYRyAQwp7s,46909
|
6
|
+
lightpdf_aipdf_mcp-0.1.73.dist-info/METADATA,sha256=U6ytJ1SHlKfauZXYcLlS2lxKH2qh7h6gy1ePvv56A7w,8119
|
7
|
+
lightpdf_aipdf_mcp-0.1.73.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
+
lightpdf_aipdf_mcp-0.1.73.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
9
|
+
lightpdf_aipdf_mcp-0.1.73.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
|
2
|
-
lightpdf_aipdf_mcp/common.py,sha256=K395Nh3cVwuzGalqt_QXmueP__LFF1BPhpb7YyUUV8s,6601
|
3
|
-
lightpdf_aipdf_mcp/converter.py,sha256=CNdR2uUsA79_6Mzk6eHxo_F7Ripl14S8BdsmKJkV-94,14568
|
4
|
-
lightpdf_aipdf_mcp/editor.py,sha256=NEBu6QUcU6xYIa8ZsAoNABEr0ADxFVKWVrHrb28mjxY,26714
|
5
|
-
lightpdf_aipdf_mcp/server.py,sha256=tkJptRcXE5743AYjQoBT80ORxenwrJ0jDIyzXQ65afA,47092
|
6
|
-
lightpdf_aipdf_mcp-0.1.71.dist-info/METADATA,sha256=O3DS4J-aRo1JX587QvPDVinZkyG9KHWkJbR7O2nWTjE,8119
|
7
|
-
lightpdf_aipdf_mcp-0.1.71.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
-
lightpdf_aipdf_mcp-0.1.71.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
9
|
-
lightpdf_aipdf_mcp-0.1.71.dist-info/RECORD,,
|
File without changes
|
{lightpdf_aipdf_mcp-0.1.71.dist-info → lightpdf_aipdf_mcp-0.1.73.dist-info}/entry_points.txt
RENAMED
File without changes
|