lightpdf-aipdf-mcp 0.1.35__tar.gz → 0.1.37__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lightpdf-aipdf-mcp
3
- Version: 0.1.35
3
+ Version: 0.1.37
4
4
  Summary: MCP Server for LightPDF AI-PDF
5
5
  Author: LightPDF Team
6
6
  License: Proprietary
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "lightpdf-aipdf-mcp"
7
- version = "0.1.35"
7
+ version = "0.1.37"
8
8
  description = "MCP Server for LightPDF AI-PDF"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -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
  # 第三方库导入
@@ -875,9 +876,9 @@ async def main():
875
876
  try:
876
877
  import importlib.metadata
877
878
  version = importlib.metadata.version("lightpdf-aipdf-mcp")
878
- print(f"LightPDF AI-PDF MCP Server v{version}")
879
+ print(f"LightPDF AI-PDF MCP Server v{version}", file=sys.stderr)
879
880
  except Exception as e:
880
- print("LightPDF AI-PDF MCP Server (版本信息获取失败)")
881
+ print("LightPDF AI-PDF MCP Server (版本信息获取失败)", file=sys.stderr)
881
882
 
882
883
  import mcp.server.stdio as stdio
883
884