fangcloud-mcp 0.1.6__py3-none-any.whl → 0.1.7__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.
@@ -64,7 +64,7 @@ async def get_folder_info(folder_id: str) -> Dict[str, Any]:
64
64
  Get folder information
65
65
 
66
66
  Args:
67
- folder_id: Folder ID
67
+ folder_id: Folder ID (value 0 represents the root directory ID of personal space)
68
68
 
69
69
  Returns:
70
70
  Folder information (JSON format) or error message
@@ -92,7 +92,7 @@ async def create_folder(name: str, parent_id: str,
92
92
 
93
93
  Args:
94
94
  name: Folder name (1-222 characters, cannot contain / ? : * " > <)
95
- parent_id: Parent folder ID
95
+ parent_id: Parent folder ID (value 0 represents the root directory ID of personal space)
96
96
  target_space_type: Space type - "department" or "personal" (optional, effective when parent_id is 0)
97
97
  target_space_id: Space ID (required when target_space_type is "department")
98
98
 
@@ -138,7 +138,7 @@ async def upload_file(parent_folder_id: str, local_file_path: str) -> Dict[str,
138
138
  Upload file to FangCloud
139
139
 
140
140
  Args:
141
- parent_folder_id: Target folder ID in FangCloud
141
+ parent_folder_id: Target folder ID in FangCloud (value 0 represents the root directory ID of personal space)
142
142
  local_file_path: Local file path to upload
143
143
 
144
144
  Returns:
@@ -151,15 +151,15 @@ async def upload_file(parent_folder_id: str, local_file_path: str) -> Dict[str,
151
151
  return {"status": "error", "message": "local_file_path is required"}
152
152
 
153
153
  try:
154
- # 获取文件名
154
+ # Get file name
155
155
  file_name = os.path.basename(local_file_path)
156
156
 
157
- # 获取上传URL
157
+ # Get upload URL
158
158
  upload_url = await api.get_file_upload_url(parent_folder_id, file_name)
159
159
  if not upload_url:
160
160
  return {"status": "error", "message": f"Failed to get upload URL for {file_name}"}
161
161
 
162
- # 上传文件
162
+ # Upload file
163
163
  result = await api.upload_file(upload_url, local_file_path)
164
164
 
165
165
  if result:
@@ -262,7 +262,7 @@ async def list_folder_contents(folder_id: str, page_id: Optional[int] = 0,
262
262
  List folder contents (files and subfolders)
263
263
 
264
264
  Args:
265
- folder_id: Folder ID
265
+ folder_id: Folder ID (value 0 represents the root directory ID of personal space)
266
266
  page_id: Page number (optional, default 0)
267
267
  page_capacity: Page capacity (optional, default 20)
268
268
  type_filter: Filter by type - "file", "folder", or "all" (optional, default "all")
@@ -1,7 +1,8 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: fangcloud-mcp
3
- Version: 0.1.6
3
+ Version: 0.1.7
4
4
  Summary: FangCloud MCP 是一个 Model Context Protocol (MCP) 服务器实现,提供与 FangCloud 云存储服务的集成
5
+ License-File: LICENSE
5
6
  Requires-Python: >=3.12
6
7
  Requires-Dist: aiohttp>=3.8.6
7
8
  Requires-Dist: mcp[cli]>=1.7.1
@@ -0,0 +1,8 @@
1
+ fangcloud_mcp/__init__.py,sha256=sNSVoR1IBLBiMvnIY9KQZlURRfheArJL6U8YNJ51h0k,229
2
+ fangcloud_mcp/fangcloud.py,sha256=M-xxEKuoM9agMLp81YG4q2nP0ZlYiSh4og7tIEJyTPU,14901
3
+ fangcloud_mcp/fangcloud_api.py,sha256=QQWB8neT-XKfc854yhhZ9WihyN-aI5D_MbV_RRjf-VM,26579
4
+ fangcloud_mcp-0.1.7.dist-info/METADATA,sha256=UugMfb3agFcOt29P5ACYC0sSEpiv1gT6FSCQY6db36g,4722
5
+ fangcloud_mcp-0.1.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
6
+ fangcloud_mcp-0.1.7.dist-info/entry_points.txt,sha256=Rx2NYFMpIfV0Yc81Bpn_N-INU1LOxo59neT1Cicltwk,53
7
+ fangcloud_mcp-0.1.7.dist-info/licenses/LICENSE,sha256=PLXgT5nqTcwqGoalBG1tGoXtGUHFunt4gK0M-GxPl6o,1097
8
+ fangcloud_mcp-0.1.7.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatch 0.22.0
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,8 +0,0 @@
1
- fangcloud_mcp/__init__.py,sha256=sNSVoR1IBLBiMvnIY9KQZlURRfheArJL6U8YNJ51h0k,229
2
- fangcloud_mcp/fangcloud.py,sha256=g5Q6por1kA5_KmYINmtusEEQhyWuGEBtHJRGpSD5Mb4,14661
3
- fangcloud_mcp/fangcloud_api.py,sha256=QQWB8neT-XKfc854yhhZ9WihyN-aI5D_MbV_RRjf-VM,26579
4
- fangcloud_mcp-0.1.6.dist-info/METADATA,sha256=jamRK7uSuy2iedJtDUtX60BiaSeoFcwe-u50Fy2ZfCQ,4700
5
- fangcloud_mcp-0.1.6.dist-info/WHEEL,sha256=sb4ZHsmozXdkdXRvpMHZmhxsxQvL8DERDUEGA9tAfc8,83
6
- fangcloud_mcp-0.1.6.dist-info/entry_points.txt,sha256=Rx2NYFMpIfV0Yc81Bpn_N-INU1LOxo59neT1Cicltwk,53
7
- fangcloud_mcp-0.1.6.dist-info/license_files/LICENSE,sha256=PLXgT5nqTcwqGoalBG1tGoXtGUHFunt4gK0M-GxPl6o,1097
8
- fangcloud_mcp-0.1.6.dist-info/RECORD,,