foxfetch 0.1.2__tar.gz → 0.1.4__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.2
3
+ Version: 0.1.4
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,15 +79,49 @@ pip install foxfetch
79
79
  python -m foxfetch doctor
80
80
  ```
81
81
 
82
- **3. Connect your agent** — pick one line, copy it:
82
+ **3. Connect your agent** — this step differs per host, because the hosts live on different
83
+ platforms:
83
84
 
84
- | Your agent | Run this |
85
- |---|---|
86
- | **Pi** | `pi mcp add foxfetch -- python -m foxfetch serve` |
87
- | **Claude Code** | `claude mcp add foxfetch -- python -m foxfetch serve` |
88
- | **Codex** | see [`[mcp_servers.foxfetch]` below](#codex) |
89
- | **DeepSeek Harness** | see [DSH below](#deepseek-harness) |
90
- | **Other MCP client** | `command: python`, `args: ["-m", "foxfetch", "serve"]` |
85
+ ```
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)
99
+ ```
100
+
101
+ | Your agent | Platform | What you install for it |
102
+ |---|---|---|
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** | **two things**: the service from step 1 **plus** `pnpm add dsh-foxfetch` → [steps](#deepseek-harness) |
107
+ | **Other MCP client** | MCP | `command: python`, `args: ["-m", "foxfetch", "serve"]` |
108
+
109
+ Read the table as: *step 1 is always required, step 3 adds whatever that host needs on top.*
110
+
111
+ - DSH: **two** installs — `pip install foxfetch` (the service) **and** `pnpm add dsh-foxfetch`
112
+ (the plugin). The plugin cannot work without the service; it fails with
113
+ `cannot start the Python service` if you skip step 1.
114
+ - Everyone else: **one** install — `pip install foxfetch`. Their "install" is just a config
115
+ entry pointing at `python -m foxfetch serve`, no package to add.
116
+
117
+ **DSH only — the two commands together, in order:**
118
+
119
+ ```powershell
120
+ pip install foxfetch # 1. the service
121
+ cd "$env:USERPROFILE\.dsh\profiles\desktop"
122
+ pnpm add dsh-foxfetch # 2. the plugin
123
+ # then add "dsh-foxfetch" to dsh.profile.bundles and restart DSH ([details](#deepseek-harness))
124
+ ```
91
125
 
92
126
  **4. Prove it works** — ask your agent:
93
127
 
@@ -107,6 +141,12 @@ agent is not talking to the engine — nothing else will work until you fix it.
107
141
 
108
142
  ### Requirements
109
143
 
144
+ There are two platforms involved, and it matters:
145
+
146
+ - **the service** — one Python package, `pip install foxfetch`, shared by every host.
147
+ - **the host entry** — a different mechanism per host: an MCP config entry for Pi / Claude
148
+ Code / Codex, an npm plugin for DSH.
149
+
110
150
  - **Python 3.10+** — that is all. Chromium is optional (screenshots only).
111
151
  - The `ruyijs` engine (44 MB wheel) comes in automatically as a dependency.
112
152
 
@@ -172,8 +212,12 @@ args = ["-m", "foxfetch", "serve"]
172
212
  DSH has a native plugin API, so it gets a real plugin instead of an MCP entry. The plugin holds
173
213
  no logic — it starts the same Python service and reshapes results for the DSH UI.
174
214
 
215
+ > **DSH needs two installs, not one:** the service (`pip`, step 1) **and** the plugin (npm).
216
+ > The plugin is only a forwarder; without the service it fails immediately with
217
+ > `cannot start the Python service`.
218
+
175
219
  ```powershell
176
- # 1. service (same as everyone else)
220
+ # 1. service (same as everyone else — do not skip this)
177
221
  pip install foxfetch
178
222
 
179
223
  # 2. plugin, into the DSH profile