lightpdf-aipdf-mcp 0.1.34__py3-none-any.whl → 0.1.36__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.
@@ -2,6 +2,7 @@
2
2
  # 标准库导入
3
3
  import asyncio
4
4
  import os
5
+ import sys
5
6
  from typing import List, Dict, Any, Callable, TypeVar, Optional, Union
6
7
 
7
8
  # 第三方库导入
@@ -870,6 +871,15 @@ async def handle_call_tool(name: str, arguments: dict | None) -> list[types.Text
870
871
  return [types.TextContent(type="text", text=error_msg)]
871
872
 
872
873
  async def main():
874
+ """应用主入口"""
875
+ # 打印版本号
876
+ try:
877
+ import importlib.metadata
878
+ version = importlib.metadata.version("lightpdf-aipdf-mcp")
879
+ print(f"LightPDF AI-PDF MCP Server v{version}", file=sys.stderr)
880
+ except Exception as e:
881
+ print("LightPDF AI-PDF MCP Server (版本信息获取失败)", file=sys.stderr)
882
+
873
883
  import mcp.server.stdio as stdio
874
884
 
875
885
  async with stdio.stdio_server() as (read_stream, write_stream):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lightpdf-aipdf-mcp
3
- Version: 0.1.34
3
+ Version: 0.1.36
4
4
  Summary: MCP Server for LightPDF AI-PDF
5
5
  Author: LightPDF Team
6
6
  License: Proprietary
@@ -2,8 +2,8 @@ lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6
2
2
  lightpdf_aipdf_mcp/common.py,sha256=ZPm_Wzn7GpMLl9xJXOrTgNgd0hqdI931JVKm57WRa14,6433
3
3
  lightpdf_aipdf_mcp/converter.py,sha256=5oTLHxXOiZ9_PDatWiYbgPZ0LFFqE0L4qHvamX3g9lM,11732
4
4
  lightpdf_aipdf_mcp/editor.py,sha256=mbCGXd1Xzu-ibDWJnn11fOP5Xlf1Vqxi0yQ8Vs_yUKg,21787
5
- lightpdf_aipdf_mcp/server.py,sha256=Ho7pSXa1iCD7LuAnC3uNBjYT5iwYSfr18WwmuVSpXSQ,35698
6
- lightpdf_aipdf_mcp-0.1.34.dist-info/METADATA,sha256=agB8nSaNHpVaTZjgMgGYmIa6l1IvfTqQhzAG6mPlWJI,7932
7
- lightpdf_aipdf_mcp-0.1.34.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
- lightpdf_aipdf_mcp-0.1.34.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
9
- lightpdf_aipdf_mcp-0.1.34.dist-info/RECORD,,
5
+ lightpdf_aipdf_mcp/server.py,sha256=wxJne3VnKNoKPCTSE1Y47k3v45b-VlgJPRxoeh5ite0,36060
6
+ lightpdf_aipdf_mcp-0.1.36.dist-info/METADATA,sha256=Lvhg1pA0JeEIgAgrOo8QFVmSezfBuDANeQELURAM6Sw,7932
7
+ lightpdf_aipdf_mcp-0.1.36.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ lightpdf_aipdf_mcp-0.1.36.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
9
+ lightpdf_aipdf_mcp-0.1.36.dist-info/RECORD,,