iflow-mcp-pickpppcc-qbittorrent 0.1.0__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.
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/2805_process.log +4 -0
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/PKG-INFO +76 -0
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/README.md +67 -0
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/api.py +640 -0
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/client.py +160 -0
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/language.json +1 -0
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/main.py +229 -0
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/package_name +1 -0
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/push_info.json +5 -0
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/pyproject.toml +17 -0
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/qbittorrent_debug.log +41 -0
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/setup.py +18 -0
- iflow_mcp_pickpppcc_qbittorrent-0.1.0/uv.lock +399 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: iflow-mcp_pickpppcc_qbittorrent
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
|
+
Requires-Dist: httpx>=0.28.1
|
|
7
|
+
Requires-Dist: mcp[cli]>=1.8.1
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# qBittorrent MCP 服务
|
|
11
|
+
|
|
12
|
+
qBittorrent MCP 是一个基于 FastMCP 的服务,提供了与 qBittorrent WebUI API 交互的功能接口。
|
|
13
|
+
|
|
14
|
+
## 功能列表
|
|
15
|
+
|
|
16
|
+
该服务提供了以下功能:
|
|
17
|
+
|
|
18
|
+
### 种子管理
|
|
19
|
+
- `add_torrent`: 添加种子文件到 qBittorrent
|
|
20
|
+
- `delete_torrent`: 删除指定种子(可选同时删除文件)
|
|
21
|
+
- `pause_torrent`: 暂停种子下载
|
|
22
|
+
- `resume_torrent`: 恢复种子下载
|
|
23
|
+
- `get_torrent_list`: 获取所有种子列表
|
|
24
|
+
|
|
25
|
+
### 跟踪器与标签
|
|
26
|
+
- `get_torrent_trackers`: 获取种子的跟踪器列表
|
|
27
|
+
- `add_trackers_to_torrent`: 向种子添加新的跟踪器
|
|
28
|
+
- `add_torrent_tags`: 为种子添加标签
|
|
29
|
+
|
|
30
|
+
### 速度与优先级控制
|
|
31
|
+
- `set_global_download_limit`: 设置全局下载速度限制
|
|
32
|
+
- `set_global_upload_limit`: 设置全局上传速度限制
|
|
33
|
+
- `set_torrent_download_limit`: 设置特定种子的下载速度限制
|
|
34
|
+
- `set_torrent_upload_limit`: 设置特定种子的上传速度限制
|
|
35
|
+
- `set_file_priority`: 设置特定文件的下载优先级
|
|
36
|
+
|
|
37
|
+
### 系统信息
|
|
38
|
+
- `get_application_version`: 获取qBittorrent应用程序版本
|
|
39
|
+
|
|
40
|
+
## 配置
|
|
41
|
+
|
|
42
|
+
服务使用以下配置参数:
|
|
43
|
+
- `DEFAULT_HOST`: qBittorrent WebUI的主机地址
|
|
44
|
+
- `DEFAULT_USERNAME`: qBittorrent WebUI用户名
|
|
45
|
+
- `DEFAULT_PASSWORD`: qBittorrent WebUI密码
|
|
46
|
+
|
|
47
|
+
## 使用方法
|
|
48
|
+
|
|
49
|
+
1. 确保已安装所需依赖:
|
|
50
|
+
```
|
|
51
|
+
pip install httpx mcp
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
2. 运行MCP服务:
|
|
55
|
+
```
|
|
56
|
+
python main.py
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## 开发
|
|
60
|
+
|
|
61
|
+
服务分为两个主要文件:
|
|
62
|
+
- `main.py`: 定义MCP服务接口和配置参数
|
|
63
|
+
- `api.py`: 实现与qBittorrent WebUI的交互逻辑
|
|
64
|
+
```json
|
|
65
|
+
"mcp_servers": [
|
|
66
|
+
{
|
|
67
|
+
"command": "uv",
|
|
68
|
+
"args": [
|
|
69
|
+
"--directory",
|
|
70
|
+
"/workspace/PC-Canary/apps/qBittorrent/qbittorrent_mcp",
|
|
71
|
+
"run",
|
|
72
|
+
"qbittorrent.py"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
```
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# qBittorrent MCP 服务
|
|
2
|
+
|
|
3
|
+
qBittorrent MCP 是一个基于 FastMCP 的服务,提供了与 qBittorrent WebUI API 交互的功能接口。
|
|
4
|
+
|
|
5
|
+
## 功能列表
|
|
6
|
+
|
|
7
|
+
该服务提供了以下功能:
|
|
8
|
+
|
|
9
|
+
### 种子管理
|
|
10
|
+
- `add_torrent`: 添加种子文件到 qBittorrent
|
|
11
|
+
- `delete_torrent`: 删除指定种子(可选同时删除文件)
|
|
12
|
+
- `pause_torrent`: 暂停种子下载
|
|
13
|
+
- `resume_torrent`: 恢复种子下载
|
|
14
|
+
- `get_torrent_list`: 获取所有种子列表
|
|
15
|
+
|
|
16
|
+
### 跟踪器与标签
|
|
17
|
+
- `get_torrent_trackers`: 获取种子的跟踪器列表
|
|
18
|
+
- `add_trackers_to_torrent`: 向种子添加新的跟踪器
|
|
19
|
+
- `add_torrent_tags`: 为种子添加标签
|
|
20
|
+
|
|
21
|
+
### 速度与优先级控制
|
|
22
|
+
- `set_global_download_limit`: 设置全局下载速度限制
|
|
23
|
+
- `set_global_upload_limit`: 设置全局上传速度限制
|
|
24
|
+
- `set_torrent_download_limit`: 设置特定种子的下载速度限制
|
|
25
|
+
- `set_torrent_upload_limit`: 设置特定种子的上传速度限制
|
|
26
|
+
- `set_file_priority`: 设置特定文件的下载优先级
|
|
27
|
+
|
|
28
|
+
### 系统信息
|
|
29
|
+
- `get_application_version`: 获取qBittorrent应用程序版本
|
|
30
|
+
|
|
31
|
+
## 配置
|
|
32
|
+
|
|
33
|
+
服务使用以下配置参数:
|
|
34
|
+
- `DEFAULT_HOST`: qBittorrent WebUI的主机地址
|
|
35
|
+
- `DEFAULT_USERNAME`: qBittorrent WebUI用户名
|
|
36
|
+
- `DEFAULT_PASSWORD`: qBittorrent WebUI密码
|
|
37
|
+
|
|
38
|
+
## 使用方法
|
|
39
|
+
|
|
40
|
+
1. 确保已安装所需依赖:
|
|
41
|
+
```
|
|
42
|
+
pip install httpx mcp
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
2. 运行MCP服务:
|
|
46
|
+
```
|
|
47
|
+
python main.py
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## 开发
|
|
51
|
+
|
|
52
|
+
服务分为两个主要文件:
|
|
53
|
+
- `main.py`: 定义MCP服务接口和配置参数
|
|
54
|
+
- `api.py`: 实现与qBittorrent WebUI的交互逻辑
|
|
55
|
+
```json
|
|
56
|
+
"mcp_servers": [
|
|
57
|
+
{
|
|
58
|
+
"command": "uv",
|
|
59
|
+
"args": [
|
|
60
|
+
"--directory",
|
|
61
|
+
"/workspace/PC-Canary/apps/qBittorrent/qbittorrent_mcp",
|
|
62
|
+
"run",
|
|
63
|
+
"qbittorrent.py"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
```
|