foxfetch 0.1.3__tar.gz → 0.1.5__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.5
2
2
  Name: foxfetch
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: Fetch pages through a real Firefox engine (ruyijs) for AI agents: pass bot checks, run the page's own JavaScript, then hand the identity to Chromium when a screenshot is needed.
5
5
  Project-URL: Homepage, https://github.com/zhuchongba-01/foxfetch
6
6
  Project-URL: Repository, https://github.com/zhuchongba-01/foxfetch
@@ -67,7 +67,7 @@ it earned to Chromium.
67
67
 
68
68
  ## Install in 30 seconds
69
69
 
70
- **1. Install the service** (once per machine):
70
+ **1. Install the service** (once per machine — **every host needs this, DSH included**):
71
71
 
72
72
  ```bash
73
73
  pip install foxfetch
@@ -79,35 +79,47 @@ pip install foxfetch
79
79
  python -m foxfetch doctor
80
80
  ```
81
81
 
82
- **3. Connect your agent** — this step differs per host, because the hosts live on different
83
- platforms:
82
+ **3. Install for your agent** — there are only two cases:
84
83
 
84
+ ### If you use DeepSeek Harness (DSH)
85
+
86
+ Install command, run in this order:
87
+
88
+ ```powershell
89
+ pip install foxfetch
90
+ cd "$env:USERPROFILE\.dsh\profiles\desktop"
91
+ pnpm add dsh-foxfetch
85
92
  ```
86
- the service (one, shared)
87
- python -m foxfetch serve ← pip install foxfetch
88
- ▲
89
- ┌───────────────┴────────────────┐
90
- │ │
91
- MCP clients (Pi, Claude Code, DeepSeek Harness
92
- Codex, anything else) (native plugin API)
93
- → a config entry pointing → an npm plugin that forwards
94
- at the command above to the command above
95
- │ │
96
- Pi: pi mcp add foxfetch cd ~/.dsh/profiles/desktop
97
- -- python -m foxfetch pnpm add dsh-foxfetch
98
- serve (+ add to dsh.profile.bundles)
93
+
94
+ Then add `"dsh-foxfetch"` to `dsh.profile.bundles` in that `package.json` and restart DSH.
95
+ Full steps with the exact file content: [DSH](#deepseek-harness).
96
+
97
+ ### If you use anything else (Pi, Claude Code, Codex, other MCP clients)
98
+
99
+ Install command — the service only, there is nothing to add per client:
100
+
101
+ ```bash
102
+ pip install foxfetch
99
103
  ```
100
104
 
101
- | Your agent | Platform | What you install for it |
105
+ Then point that client at it:
106
+
107
+ | Client | What to do |
108
+ |---|---|
109
+ | **Pi** | `pi mcp add foxfetch -- python -m foxfetch serve` |
110
+ | **Claude Code** | `claude mcp add foxfetch -- python -m foxfetch serve` |
111
+ | **Codex** | add the `[mcp_servers.foxfetch]` table to `~/.codex/config.toml` → [steps](#codex) |
112
+ | **Any other MCP client** | `command: python`, `args: ["-m", "foxfetch", "serve"]` |
113
+
114
+ ### Why the two differ
115
+
116
+ | | DSH | Everything else |
102
117
  |---|---|---|
103
- | **Pi** | MCP | `pi mcp add foxfetch -- python -m foxfetch serve` |
104
- | **Claude Code** | MCP | `claude mcp add foxfetch -- python -m foxfetch serve` |
105
- | **Codex** | MCP | a `[mcp_servers.foxfetch]` table in `~/.codex/config.toml` → [steps](#codex) |
106
- | **DeepSeek Harness** | **npm plugin** | `pnpm add dsh-foxfetch` in the profile → [steps](#deepseek-harness) |
107
- | **Other MCP client** | MCP | `command: python`, `args: ["-m", "foxfetch", "serve"]` |
118
+ | Mechanism | native plugin, loaded by DSH | MCP config entry, read by the client |
119
+ | Package to install | `pip` **and** npm | `pip` only |
120
+ | Without it | plugin fails: `cannot start the Python service` | client sees no tools |
108
121
 
109
- Only DSH needs the npm package. Every MCP client talks to the Python service directly, so
110
- `pip install foxfetch` is the **only** install they need.
122
+ The Python service is the same one in both cases — `pip install foxfetch` is never optional.
111
123
 
112
124
  **4. Prove it works** — ask your agent:
113
125
 
@@ -198,8 +210,12 @@ args = ["-m", "foxfetch", "serve"]
198
210
  DSH has a native plugin API, so it gets a real plugin instead of an MCP entry. The plugin holds
199
211
  no logic — it starts the same Python service and reshapes results for the DSH UI.
200
212
 
213
+ > **DSH needs two installs, not one:** the service (`pip`, step 1) **and** the plugin (npm).
214
+ > The plugin is only a forwarder; without the service it fails immediately with
215
+ > `cannot start the Python service`.
216
+
201
217
  ```powershell
202
- # 1. service (same as everyone else)
218
+ # 1. service (same as everyone else — do not skip this)
203
219
  pip install foxfetch
204
220
 
205
221
  # 2. plugin, into the DSH profile
@@ -18,7 +18,7 @@ it earned to Chromium.
18
18
 
19
19
  ## Install in 30 seconds
20
20
 
21
- **1. Install the service** (once per machine):
21
+ **1. Install the service** (once per machine — **every host needs this, DSH included**):
22
22
 
23
23
  ```bash
24
24
  pip install foxfetch
@@ -30,35 +30,47 @@ pip install foxfetch
30
30
  python -m foxfetch doctor
31
31
  ```
32
32
 
33
- **3. Connect your agent** — this step differs per host, because the hosts live on different
34
- platforms:
33
+ **3. Install for your agent** — there are only two cases:
35
34
 
35
+ ### If you use DeepSeek Harness (DSH)
36
+
37
+ Install command, run in this order:
38
+
39
+ ```powershell
40
+ pip install foxfetch
41
+ cd "$env:USERPROFILE\.dsh\profiles\desktop"
42
+ pnpm add dsh-foxfetch
36
43
  ```
37
- the service (one, shared)
38
- python -m foxfetch serve ← pip install foxfetch
39
- ▲
40
- ┌───────────────┴────────────────┐
41
- │ │
42
- MCP clients (Pi, Claude Code, DeepSeek Harness
43
- Codex, anything else) (native plugin API)
44
- → a config entry pointing → an npm plugin that forwards
45
- at the command above to the command above
46
- │ │
47
- Pi: pi mcp add foxfetch cd ~/.dsh/profiles/desktop
48
- -- python -m foxfetch pnpm add dsh-foxfetch
49
- serve (+ add to dsh.profile.bundles)
44
+
45
+ Then add `"dsh-foxfetch"` to `dsh.profile.bundles` in that `package.json` and restart DSH.
46
+ Full steps with the exact file content: [DSH](#deepseek-harness).
47
+
48
+ ### If you use anything else (Pi, Claude Code, Codex, other MCP clients)
49
+
50
+ Install command — the service only, there is nothing to add per client:
51
+
52
+ ```bash
53
+ pip install foxfetch
50
54
  ```
51
55
 
52
- | Your agent | Platform | What you install for it |
56
+ Then point that client at it:
57
+
58
+ | Client | What to do |
59
+ |---|---|
60
+ | **Pi** | `pi mcp add foxfetch -- python -m foxfetch serve` |
61
+ | **Claude Code** | `claude mcp add foxfetch -- python -m foxfetch serve` |
62
+ | **Codex** | add the `[mcp_servers.foxfetch]` table to `~/.codex/config.toml` → [steps](#codex) |
63
+ | **Any other MCP client** | `command: python`, `args: ["-m", "foxfetch", "serve"]` |
64
+
65
+ ### Why the two differ
66
+
67
+ | | DSH | Everything else |
53
68
  |---|---|---|
54
- | **Pi** | MCP | `pi mcp add foxfetch -- python -m foxfetch serve` |
55
- | **Claude Code** | MCP | `claude mcp add foxfetch -- python -m foxfetch serve` |
56
- | **Codex** | MCP | a `[mcp_servers.foxfetch]` table in `~/.codex/config.toml` → [steps](#codex) |
57
- | **DeepSeek Harness** | **npm plugin** | `pnpm add dsh-foxfetch` in the profile → [steps](#deepseek-harness) |
58
- | **Other MCP client** | MCP | `command: python`, `args: ["-m", "foxfetch", "serve"]` |
69
+ | Mechanism | native plugin, loaded by DSH | MCP config entry, read by the client |
70
+ | Package to install | `pip` **and** npm | `pip` only |
71
+ | Without it | plugin fails: `cannot start the Python service` | client sees no tools |
59
72
 
60
- Only DSH needs the npm package. Every MCP client talks to the Python service directly, so
61
- `pip install foxfetch` is the **only** install they need.
73
+ The Python service is the same one in both cases — `pip install foxfetch` is never optional.
62
74
 
63
75
  **4. Prove it works** — ask your agent:
64
76
 
@@ -149,8 +161,12 @@ args = ["-m", "foxfetch", "serve"]
149
161
  DSH has a native plugin API, so it gets a real plugin instead of an MCP entry. The plugin holds
150
162
  no logic — it starts the same Python service and reshapes results for the DSH UI.
151
163
 
164
+ > **DSH needs two installs, not one:** the service (`pip`, step 1) **and** the plugin (npm).
165
+ > The plugin is only a forwarder; without the service it fails immediately with
166
+ > `cannot start the Python service`.
167
+
152
168
  ```powershell
153
- # 1. service (same as everyone else)
169
+ # 1. service (same as everyone else — do not skip this)
154
170
  pip install foxfetch
155
171
 
156
172
  # 2. plugin, into the DSH profile
@@ -17,7 +17,7 @@
17
17
 
18
18
  ## 30 秒装好
19
19
 
20
- **第 1 步:装服务**(每台机器装一次)
20
+ **第 1 步:装服务**(每台机器装一次 —— **所有宿主都要,DSH 也不例外**)
21
21
 
22
22
  ```bash
23
23
  pip install foxfetch
@@ -29,33 +29,47 @@ pip install foxfetch
29
29
  python -m foxfetch doctor
30
30
  ```
31
31
 
32
- **第 3 步:接你的 agent** —— 这一步**各家不一样**,因为它们不在同一个平台上:
32
+ **第 3 步:按你的软件装** —— 只有两种情况:
33
33
 
34
+ ### 用 DeepSeek Harness(DSH,全称 DeepSeek Harness)的
35
+
36
+ 安装指令,按顺序执行:
37
+
38
+ ```powershell
39
+ pip install foxfetch
40
+ cd "$env:USERPROFILE\.dsh\profiles\desktop"
41
+ pnpm add dsh-foxfetch
34
42
  ```
35
- 服务(只有一份,大家共用)
36
- python -m foxfetch serve ← pip install foxfetch
37
- ▲
38
- ┌───────────────┴────────────────┐
39
- │ │
40
- MCP 客户端(Pi、Claude Code、 DeepSeek Harness
41
- Codex、其它) (有原生插件机制)
42
- → 写一段配置指向上面那条命令 → 装一个 npm 插件,插件再转发给上面
43
- │ │
44
- Pi: pi mcp add foxfetch cd ~/.dsh/profiles/desktop
45
- -- python -m foxfetch pnpm add dsh-foxfetch
46
- serve (再登记到 dsh.profile.bundles)
43
+
44
+ 然后把 `"dsh-foxfetch"` 加进那个 `package.json` 里的 `dsh.profile.bundles`,重启 DSH。
45
+ 带完整文件内容的步骤:[DSH 详细安装](#deepseek-harness)。
46
+
47
+ ### 用其它软件的(Pi、Claude Code、Codex、其它 MCP 客户端)
48
+
49
+ 安装指令 —— **只装服务,客户端那边不用装任何包**:
50
+
51
+ ```bash
52
+ pip install foxfetch
47
53
  ```
48
54
 
49
- | 你的 agent | 平台 | 你要给它装什么 |
55
+ 然后让那个客户端指向它:
56
+
57
+ | 软件 | 要做什么 |
58
+ |---|---|
59
+ | **Pi** | `pi mcp add foxfetch -- python -m foxfetch serve` |
60
+ | **Claude Code** | `claude mcp add foxfetch -- python -m foxfetch serve` |
61
+ | **Codex** | 在 `~/.codex/config.toml` 加 `[mcp_servers.foxfetch]` 表 → [步骤](#codex) |
62
+ | **其它 MCP 客户端** | `command: python`,`args: ["-m", "foxfetch", "serve"]` |
63
+
64
+ ### 为什么两边不一样
65
+
66
+ | | DSH | 其它软件 |
50
67
  |---|---|---|
51
- | **Pi** | MCP | `pi mcp add foxfetch -- python -m foxfetch serve` |
52
- | **Claude Code** | MCP | `claude mcp add foxfetch -- python -m foxfetch serve` |
53
- | **Codex** | MCP | 在 `~/.codex/config.toml` 加一个 `[mcp_servers.foxfetch]` 表 → [步骤](#codex) |
54
- | **DeepSeek Harness** | **npm 插件** | 在 profile 里 `pnpm add dsh-foxfetch` → [步骤](#deepseek-harness) |
55
- | **其它 MCP 客户端** | MCP | `command: python`,`args: ["-m", "foxfetch", "serve"]` |
68
+ | 靠什么加载 | 原生插件,DSH 自己加载 | MCP 配置,客户端自己读 |
69
+ | 要装什么包 | `pip` **和** npm | **只要** `pip` |
70
+ | 少装的后果 | 插件报 `cannot start the Python service` | 客户端看不到任何工具 |
56
71
 
57
- **只有 DSH 需要那个 npm 包。** 其它 MCP 客户端都是直接跟 Python 服务说话,所以
58
- `pip install foxfetch` 是它们**唯一**需要装的。
72
+ 两种情况的 **Python 服务是同一个** —— `pip install foxfetch` 永远不能省。
59
73
 
60
74
  **第 4 步:验证真的通了** —— 让你的 agent 调用
61
75
 
@@ -150,8 +164,11 @@ args = ["-m", "foxfetch", "serve"]
150
164
  DSH 有原生插件机制,所以给它装插件而不是 MCP 条目。插件里**没有任何逻辑** —— 它启动同一个
151
165
  Python 服务,只负责把结果整理成 DSH 的卡片样式。
152
166
 
167
+ > **DSH 要装两样,不是一样**:服务(`pip`,第 1 步)**加上**插件(npm)。
168
+ > 插件只是转发壳,没有服务会立刻报 `cannot start the Python service`。
169
+
153
170
  ```powershell
154
- # 1. 服务(和别的宿主一样)
171
+ # 1. 服务(和别的宿主一样 —— 这步不能跳)
155
172
  pip install foxfetch
156
173
 
157
174
  # 2. 插件,装进 DSH 的 profile
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "foxfetch"
7
- version = "0.1.3"
7
+ version = "0.1.5"
8
8
  description = "Fetch pages through a real Firefox engine (ruyijs) for AI agents: pass bot checks, run the page's own JavaScript, then hand the identity to Chromium when a screenshot is needed."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,5 +1,5 @@
1
1
  """foxfetch: read pages through a real Firefox engine when plain HTTP is not enough."""
2
2
 
3
- __version__ = "0.1.3"
3
+ __version__ = "0.1.5"
4
4
 
5
5
  __all__ = ["__version__"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes