@curio-data/dsh-intelli-search 0.25.0 → 0.25.1
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.
- package/README.md +239 -31
- package/cordis.patch.yml +1 -1
- package/package.json +1 -1
- package/skills/intelli-search/SKILL.md +36 -10
package/README.md
CHANGED
|
@@ -1,75 +1,283 @@
|
|
|
1
|
+
<!-- Generated from the repository README.md by scripts/generate-package-readmes.mjs. Edit the root README.md, then run npm run generate:readmes and npm run generate:plugins. -->
|
|
2
|
+
|
|
1
3
|
# Intelli Search for DeepSeek Harness
|
|
2
4
|
|
|
3
|
-
[_DeepSeek Harness_](https://github.com/deepseek-ai/deepseek-harness) (`dsh`)
|
|
5
|
+
`@curio-data/dsh-intelli-search` adds cited web search and multi-page research to a [_DeepSeek Harness_](https://github.com/deepseek-ai/deepseek-harness) (`dsh`) profile. It is a configuration bundle, not an extension. One bridge row starts the standalone Model Context Protocol (MCP) server [`@curio-data/mcp-intelli-search`](https://www.npmjs.com/package/@curio-data/mcp-intelli-search), version `0.25.1`, through `npx` with `--host dsh`; one registrar registers the `intelli-search` skill with the harness. Search, page fetching, extraction and collation run in that server, which saves each research report with its sources in the project's `.search/` directory. Inference uses an [_OpenRouter_](https://openrouter.ai) account; [_Node.js_](https://nodejs.org/) runs the server.
|
|
6
|
+
|
|
7
|
+
The harness names the server `intelli`, so the four tools appear as:
|
|
8
|
+
|
|
9
|
+
| Tool | Use |
|
|
10
|
+
|---|---|
|
|
11
|
+
| `mcp__intelli__intelli_search` | Quick search: one concise answer with numbered sources, for facts, current versions and release dates. No page fetching or extraction |
|
|
12
|
+
| `mcp__intelli__intelli_research` | Research: search, fetch up to `maxUrls` pages, extract each page, collate a cited report and cache it. Accepts a batch of questions known at launch, with `batchMode: "independent"` for a separate answer per question or `"expansion"` for one merged report |
|
|
13
|
+
| `mcp__intelli__intelli_extract` | Extract query-relevant content from one page |
|
|
14
|
+
| `mcp__intelli__intelli_collate` | Deduplicate and synthesise extractions into a cached report |
|
|
15
|
+
|
|
16
|
+
Start with a quick search; use research for comparisons, detailed analysis or a gap a search answer leaves. Each research call costs more and takes longer than a search.
|
|
4
17
|
|
|
5
|
-
|
|
18
|
+
## Contents
|
|
6
19
|
|
|
7
|
-
|
|
20
|
+
<!-- TOC:START -->
|
|
8
21
|
|
|
9
|
-
-
|
|
10
|
-
- [
|
|
11
|
-
-
|
|
12
|
-
-
|
|
22
|
+
- [Prerequisites](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#prerequisites)
|
|
23
|
+
- [Installation](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#installation)
|
|
24
|
+
- [Upgrade, Restart and Removal](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#upgrade-restart-and-removal)
|
|
25
|
+
- [Credentials](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#credentials)
|
|
26
|
+
- [Workspace](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#workspace)
|
|
27
|
+
- [Configuration](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#configuration)
|
|
28
|
+
- [Verification](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#verification)
|
|
29
|
+
- [Timeouts](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#timeouts)
|
|
30
|
+
- [Troubleshooting](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#troubleshooting)
|
|
31
|
+
- [Charges, Cache and Privacy](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#charges-cache-and-privacy)
|
|
32
|
+
- [Evidence and Limits](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#evidence-and-limits)
|
|
33
|
+
- [Further Documentation](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#further-documentation)
|
|
34
|
+
- [Licence](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/README.md#licence)
|
|
35
|
+
|
|
36
|
+
<!-- TOC:END -->
|
|
37
|
+
|
|
38
|
+
<a id="requirements"></a>
|
|
39
|
+
## Prerequisites
|
|
40
|
+
|
|
41
|
+
- `dsh` within the bundle's declared range, `>=0.2.2-rc.1 <0.3.0`. The range is a compatibility declaration; Evidence and Limits names the versions tested.
|
|
42
|
+
- Node.js 24.9 or later, the harness's own floor, with `node` and `npx` on `PATH`. The bridge row starts the server through `npx`.
|
|
43
|
+
- For the `dsh plugin` commands below, put `pnpm` on `PATH` unless the launcher supplies its own package manager. The `pnpmCommand` setting configures the in-harness plugin manager, not these commands.
|
|
44
|
+
- Network access on the first start, when `npx` downloads the MCP server package. Later starts reuse the `npx` cache.
|
|
45
|
+
- An OpenRouter API key on an account with credit. Every search and research call bills that account, separately from any harness subscription.
|
|
46
|
+
- Linux for verified operation. The server's native fetch assets are verified on Linux x86-64 only, and every recorded check of this bundle ran on Linux; _macOS_ and _Windows_ are not verified.
|
|
13
47
|
|
|
14
48
|
## Installation
|
|
15
49
|
|
|
16
|
-
|
|
50
|
+
The bundle installs into one harness profile, and only that profile loads it. Install it into the profile the harness is started with, the name given to `--profile`. The examples set `profile=web`, one of the profiles the harness ships; change that value to the profile in use. A misspelt profile name leaves the tools absent from the profile in use.
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
profile=web
|
|
54
|
+
dsh plugin --profile "$profile" add @curio-data/dsh-intelli-search
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
In the Web interface, the harness documents an equivalent route: open **Plugins**, select **Add plugin** and enter `@curio-data/dsh-intelli-search`, the text that follows `add` in the command. This project's checks use the command line only.
|
|
58
|
+
|
|
59
|
+
After installation, start the profile from the project directory, or restart it if it is running:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
profile=web
|
|
63
|
+
dsh --profile "$profile"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
<a id="removal"></a>
|
|
67
|
+
## Upgrade, Restart and Removal
|
|
68
|
+
|
|
69
|
+
Each bundle version launches one exact MCP server version, so the server changes only when the bundle is updated. For a bundle installed by name, the Web **Plugins** page documents **Versions** and **Update** controls; restart the profile after updating. That route follows the harness's documentation and has not been exercised in this project's checks. From the command line, remove the bundle and add it again, then restart the profile:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
profile=web
|
|
73
|
+
dsh plugin --profile "$profile" remove @curio-data/dsh-intelli-search
|
|
74
|
+
dsh plugin --profile "$profile" add @curio-data/dsh-intelli-search
|
|
75
|
+
dsh --profile "$profile"
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Removal and reinstallation are verified; an update between two published versions by either route is not. A row override that sets `cwd` (see Workspace) keeps launching the server version written in it until the override is edited.
|
|
79
|
+
|
|
80
|
+
Restart the profile from the project directory after installing, updating or removing the bundle, after changing a key in an environment layer and after editing a configuration file the server has already loaded. The harness composes bundle rows and reads environment files at launch, and the server keeps a loaded configuration for its lifetime.
|
|
81
|
+
|
|
82
|
+
To remove the bundle and confirm that both of its rows are gone from the composed profile:
|
|
17
83
|
|
|
18
84
|
```bash
|
|
19
|
-
|
|
85
|
+
profile=web
|
|
86
|
+
dsh plugin --profile "$profile" remove @curio-data/dsh-intelli-search
|
|
87
|
+
dsh --profile "$profile" --dump-config
|
|
20
88
|
```
|
|
21
89
|
|
|
22
|
-
|
|
90
|
+
The dump no longer lists the rows `mcp-intelli-search` and `intelli-search-skill`. Restart the profile to stop a server that is still running. Removal deletes no data: the per-user configuration and stored key under `${XDG_CONFIG_HOME:-$HOME/.config}/mcp-intelli-search/`, any `OPENROUTER_API_KEY` line in a `.env` file, each project's `.search/` cache and the `npx` cache remain until deleted separately. The per-user directory is shared with the Codex launcher. Delete any `mcp-intelli-search` override from the profile's `cordis.patch.yml` as well.
|
|
23
91
|
|
|
24
92
|
## Credentials
|
|
25
93
|
|
|
26
|
-
The server
|
|
94
|
+
The server reads its OpenRouter key from the `OPENROUTER_API_KEY` environment variable or from a credential file. A nonempty environment value takes precedence over the file. Without either, the four tools still start and each call returns an actionable `CONFIGURATION` error. A key saved on the harness model-settings page does not reach this server: the harness resolves that credential through a service a child process cannot read.
|
|
95
|
+
|
|
96
|
+
**Environment Route.** The bridge row forwards `OPENROUTER_API_KEY` from the harness environment layer, which takes the first value it finds in the environment that launches the harness, then a `.env` file in the launch directory, then `$DSH_HOME/.env`. The harness reads these once at launch, so restart the profile after changing a key. The server treats an empty value as absent, so the row loads before a key is supplied. To keep the key in the harness-home file, create the file with user-only permissions before entering the key:
|
|
27
97
|
|
|
28
98
|
```bash
|
|
29
99
|
(umask 077; touch "${DSH_HOME:-$HOME/.dsh}/.env") && chmod 600 "${DSH_HOME:-$HOME/.dsh}/.env"
|
|
30
100
|
```
|
|
31
101
|
|
|
32
|
-
After the command succeeds, open the file in an editor so the key stays out of shell history
|
|
102
|
+
After the command succeeds, open the file in an editor, so the key stays out of shell history, and put `OPENROUTER_API_KEY=` followed by the key on its own line, replacing any earlier definition.
|
|
103
|
+
|
|
104
|
+
**Credential-File Route.** The server's `setup` command reads the key from standard input and stores it in a user-only file. It refuses a terminal as its input. Run the following block in _Bash_; if the current shell is not Bash, start `bash` first:
|
|
33
105
|
|
|
34
|
-
|
|
106
|
+
```bash
|
|
107
|
+
(
|
|
108
|
+
set +x
|
|
109
|
+
set +a
|
|
110
|
+
unset key || exit 1
|
|
111
|
+
IFS= read -r -s -p 'OpenRouter API key: ' key || exit 1
|
|
112
|
+
printf '\n'
|
|
113
|
+
printf '%s\n' "$key" | \
|
|
114
|
+
npx -y --package @curio-data/mcp-intelli-search@0.25.1 \
|
|
115
|
+
mcp-intelli-search setup
|
|
116
|
+
)
|
|
117
|
+
```
|
|
35
118
|
|
|
36
|
-
|
|
119
|
+
Paste and run the whole block. Wait for the `OpenRouter API key:` prompt before entering the key; input is hidden. The parentheses run the commands in a subshell with tracing and automatic export turned off. Setup receives the key on standard input, and the calling shell's variables remain unchanged. Confirm that setup prints `Setup complete.` followed by the configuration and credential paths. If that shell exports a nonempty `OPENROUTER_API_KEY`, setup also warns that the environment value takes precedence over the stored key.
|
|
37
120
|
|
|
38
|
-
|
|
121
|
+
Setup creates `${XDG_CONFIG_HOME:-$HOME/.config}/mcp-intelli-search/config.json` with the default models when it is absent, adds a missing `apiKeyFile` selection to an existing file and keeps existing model and tuning selections. It writes the key to `openrouter.key` beside that file. When the file already names a custom `apiKeyFile`, setup writes the key to that path and leaves the configuration file unchanged. Only an absolute `XDG_CONFIG_HOME` is honoured; an unset or relative value means `$HOME/.config`. Run setup with the same `XDG_CONFIG_HOME` as the harness, so both use one directory.
|
|
39
122
|
|
|
40
|
-
The server
|
|
123
|
+
The server rereads the credential file on every call, so a new or replaced key takes effect on the next call without a restart. The file must be a regular file, owned by the current user, with no group or other access; setup creates it that way. To use the file while a key is also set in an environment layer, remove `OPENROUTER_API_KEY` from all three layers and restart the profile.
|
|
41
124
|
|
|
42
|
-
|
|
125
|
+
<a id="workspace-and-cache"></a>
|
|
126
|
+
## Workspace
|
|
43
127
|
|
|
44
|
-
The harness
|
|
128
|
+
The server uses the harness working directory as its workspace and writes the research cache, `.search/` by default, below it. Start the harness from the project directory: changing directory later in the session does not move the cache. A home or filesystem-root working directory is rejected, by each tool call with an actionable `WORKSPACE` error and by the configuration check, instead of creating one cache shared across projects. The four tools still appear.
|
|
45
129
|
|
|
46
|
-
- `
|
|
47
|
-
- `mcp__intelli__intelli_extract`
|
|
48
|
-
- `mcp__intelli__intelli_collate`
|
|
49
|
-
- `mcp__intelli__intelli_research`
|
|
130
|
+
For a fixed project root, override the row with id `mcp-intelli-search` in the profile's `cordis.patch.yml` under `$DSH_HOME/profiles/`, and set `cwd` to the absolute project path. Every session of that profile then caches in that directory, wherever the harness starts. The override replaces the row's entire `config`: copy its other `config` fields from the `--dump-config` output, keep the `OPENROUTER_API_KEY` expression exactly as shown there, and update the pinned server version after each bundle update. The home and filesystem-root rejection still applies to the `cwd` value.
|
|
50
131
|
|
|
51
|
-
|
|
132
|
+
## Configuration
|
|
52
133
|
|
|
53
|
-
|
|
134
|
+
With no per-user configuration file, the server uses built-in defaults: OpenRouter for every role, `perplexity/sonar` for search, `minimax/minimax-m3` for extraction and collation, and the shared tuning defaults, including a default budget of ten search-result pages per query (`defaultUrls`) and a cap of 20 per query (`maxUrls`). The defaults need no file.
|
|
54
135
|
|
|
55
|
-
|
|
136
|
+
The per-user file is `${XDG_CONFIG_HOME:-$HOME/.config}/mcp-intelli-search/config.json`, shared with the Codex launcher. It is strict: only `providers`, `models` and an optional `tuning` object are accepted, all three model roles are required, and unknown keys, wrong types and out-of-range values are rejected rather than ignored. `defaultUrls` must not exceed `maxUrls`, and search needs a Sonar model unless the `searchWebSearch` tool is enabled. A file without `apiKeyFile` still uses the default credential path, which the launcher supplies. Custom models must appear in OpenRouter's catalogue with the capabilities their role needs, and be available to the account.
|
|
137
|
+
|
|
138
|
+
This file keeps the default models. Each research query selects up to five search-result pages unless the request sets `maxUrls`, and never more than eight. The cap applies to each query separately: a two-query batch can select up to 16 pages in total. A quick search lists up to five sources, plus any further source the answer cites by number. [Configuration](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#configuration) and [Tuning](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#tuning) in the standalone server guide list every key and its accepted values.
|
|
139
|
+
|
|
140
|
+
```json
|
|
141
|
+
{
|
|
142
|
+
"providers": {
|
|
143
|
+
"openrouter": {
|
|
144
|
+
"apiKeyEnv": "OPENROUTER_API_KEY"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"models": {
|
|
148
|
+
"search": {
|
|
149
|
+
"provider": "openrouter",
|
|
150
|
+
"model": "perplexity/sonar"
|
|
151
|
+
},
|
|
152
|
+
"extract": {
|
|
153
|
+
"provider": "openrouter",
|
|
154
|
+
"model": "minimax/minimax-m3"
|
|
155
|
+
},
|
|
156
|
+
"collate": {
|
|
157
|
+
"provider": "openrouter",
|
|
158
|
+
"model": "minimax/minimax-m3"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"tuning": {
|
|
162
|
+
"defaultUrls": 5,
|
|
163
|
+
"maxUrls": 8
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Validate the file with the configuration check before restarting. The server reads the file when it starts:
|
|
169
|
+
|
|
170
|
+
- With no file at start-up, the built-in defaults stay in force until the profile restarts. Restart after creating the file.
|
|
171
|
+
- A file that exists but fails validation does not stop the server. Each tool call returns a `CONFIGURATION` error naming the file and reads it again, until a call finds it valid. A file selected with `--config` in a row override behaves the same way while it is missing.
|
|
172
|
+
- Once a file loads, its selections stay fixed until the profile restarts. Restart after every later edit.
|
|
56
173
|
|
|
57
174
|
## Verification
|
|
58
175
|
|
|
59
|
-
|
|
176
|
+
**Configuration Check.** From the project directory, run the server's configuration check. It reads the per-user file, or the built-in defaults when there is none, and applies the server's home and filesystem-root rejection. It needs no key and makes no model call. Its first run also downloads the server into the `npx` cache.
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
npx -y --package @curio-data/mcp-intelli-search@0.25.1 \
|
|
180
|
+
mcp-intelli-search --host dsh --check-config
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
A valid configuration prints one of two lines and exits with status `0`:
|
|
184
|
+
|
|
185
|
+
- `Configuration is valid.` when the per-user file loads.
|
|
186
|
+
- `Configuration is valid (built-in DeepSeek Harness defaults; no per-user file found).` when there is no per-user file.
|
|
187
|
+
|
|
188
|
+
An invalid server configuration produces a diagnostic and exit status `1`. If `npx` fails to start the server, the check has not run. The check does not test the key, account credit or model access.
|
|
60
189
|
|
|
61
|
-
|
|
190
|
+
**Bundle Rows.** The composed profile must list both bundle rows, `mcp-intelli-search` and `intelli-search-skill`:
|
|
62
191
|
|
|
63
192
|
```bash
|
|
64
|
-
|
|
193
|
+
profile=web
|
|
194
|
+
dsh --profile "$profile" --dump-config
|
|
65
195
|
```
|
|
66
196
|
|
|
67
|
-
|
|
197
|
+
**Inference Check (Billed).** Start the profile from the project directory with a key in place and ask: “Use mcp__intelli__intelli_search to find the current TypeScript release and cite the official source.” A completed tool call and an answer with sources show that the key, the search model and the bridge work. A tool list alone does not show provider access, and a quick search does not exercise page fetching, extraction or collation. To check the full pipeline, request research with a small page budget, for example: “Use mcp__intelli__intelli_research with maxUrls 3 to compare the two most recent Node.js long-term support releases.” A completed call returns a report and writes it under `.search/`; it costs more than a search.
|
|
198
|
+
|
|
199
|
+
<a id="tools-and-timeouts"></a>
|
|
200
|
+
## Timeouts
|
|
201
|
+
|
|
202
|
+
Two clocks limit a research call. The bundle raises the bridge's limit for one tool call to ten minutes (`toolCallTimeoutMs: 600000`); when it expires, the call fails in the harness. Inside the server, each model call has its own timeout, `llmTimeoutMs` (120 seconds by default). `llmRetryAttempts` (three attempts by default) repeats a timed-out or transient failure, and `outputBudgetRetries` (two by default) repeats an empty output-capped extraction, or any output-capped synthesis, at a doubled cap, with a timeout that grows with the cap up to four times `llmTimeoutMs`. With the defaults, one page's budget attempts alone can take up to 14 minutes, so a research call can outlast the bridge limit. Raising `llmTimeoutMs` lengthens calls; it never extends the bridge limit.
|
|
203
|
+
|
|
204
|
+
Server startup and tool discovery use a separate bridge request timeout, 60 seconds on `0.2.2-rc.1`. A slow first `npx` download can exceed it and leave the profile without the four tools on its first start.
|
|
205
|
+
|
|
206
|
+
To keep a call within ten minutes:
|
|
207
|
+
|
|
208
|
+
- Ask for fewer pages, for example `maxUrls` 3 in the request, or set lower `defaultUrls` and `maxUrls` in the per-user configuration.
|
|
209
|
+
- Put fewer questions in one batch, or fewer pages in each entry: a batch is one tool call, so all its entries share the limit.
|
|
210
|
+
- Set `outputBudgetRetries` to `0`, and lower `llmRetryAttempts`, when the limit is reached repeatedly.
|
|
211
|
+
- Use a quick search when a cited answer is enough.
|
|
212
|
+
|
|
213
|
+
A longer bridge limit needs a row override setting `toolCallTimeoutMs`, with the same version upkeep as a `cwd` override.
|
|
214
|
+
|
|
215
|
+
## Troubleshooting
|
|
216
|
+
|
|
217
|
+
| Symptom | Cause | Remedy |
|
|
218
|
+
|---|---|---|
|
|
219
|
+
| The four `mcp__intelli__*` tools are absent | The bridge row did not start. The bundle sets `failOnStartupError: false`, so the harness logs the failure and keeps running. Common causes: the bundle is in another profile; `node` or `npx` is missing or older than the floor; no network on the first start; or the first download outlasted the 60-second discovery timeout | Confirm both bundle rows with `--dump-config` for the profile in use. Run the configuration check from the project directory, which also fills the `npx` cache, then restart the profile. If the tools are still absent, read the harness log for the `mcp-intelli-search` row |
|
|
220
|
+
| `WORKSPACE` error naming the home or filesystem root | The harness started in the home directory or `/` | Restart the profile from the project directory, or set `cwd` in a row override |
|
|
221
|
+
| `CONFIGURATION` error naming `config.json` | The per-user file is invalid JSON or fails validation | Run the configuration check, correct the file and call again; the server reads it again on each call until it loads |
|
|
222
|
+
| Edits to `config.json` have no effect | The file had already loaded, or it was created after the profile started | Restart the profile |
|
|
223
|
+
| `CONFIGURATION` error for a missing key | No nonempty `OPENROUTER_API_KEY` reached the server and no credential file exists | Supply the key through either route; restart after an environment change |
|
|
224
|
+
| `CONFIGURATION` error about the credential file | The file is linked, owned by another user, or readable by group or others | Run setup again, or restrict the file to its owner with `chmod 600` |
|
|
225
|
+
| Setup stops with `Setup requires the key on standard input` | Setup was run with the terminal as input | Use the setup pipeline |
|
|
226
|
+
| A stored key is not used | A nonempty environment key takes precedence, or setup and the harness used different `XDG_CONFIG_HOME` values | Remove `OPENROUTER_API_KEY` from all three environment layers and restart, or run setup again with the harness's `XDG_CONFIG_HOME` |
|
|
227
|
+
| A research call fails after ten minutes | The bridge limit expired | Reduce the work as described under timeouts |
|
|
228
|
+
| `PROVIDER` error | Authentication, model access, account credit or connectivity failed; the category alone does not identify a rejected key | Check the account and its model access. Replace a stored key with setup, which applies on the next call, or an environment key, which needs a restart |
|
|
229
|
+
| Preflight names a model role or capability | A configured model is not in OpenRouter's catalogue or lacks a capability its role needs | Correct the model in `config.json` and restart |
|
|
230
|
+
| Repeated `429` retries | Provider rate limits | Set `minRequestIntervalMs` to `3000` and `extractionConcurrency` to `2` in `tuning`, then restart |
|
|
231
|
+
| The `intelli-search` skill differs in one project | On `0.2.2-rc.1`, a project skill with the same name outranks the bundle's registration; a user-level skill does not | Rename or remove the project skill |
|
|
232
|
+
|
|
233
|
+
The [standalone server's troubleshooting reference](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#timeouts-and-troubleshooting) gives the full list of diagnostics.
|
|
234
|
+
|
|
235
|
+
## Charges, Cache and Privacy
|
|
236
|
+
|
|
237
|
+
**Charges.** Every search and research call bills the configured OpenRouter account. The planning estimate for one ten-page research run with the default models is ≈$0.09, at the recorded September 2026 prices; it is not a live tariff. Fewer pages cost less. Each batch entry is a separate run, and retries add calls. See [Cost](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#cost).
|
|
238
|
+
|
|
239
|
+
**Cache.** Each research query writes one folder in the project's cache, named by the Coordinated Universal Time (UTC) date, a stem of the query and a short hash:
|
|
240
|
+
|
|
241
|
+
```text
|
|
242
|
+
.search/
|
|
243
|
+
├── 2026-11-23-node-lts-releases-3f7a2c/
|
|
244
|
+
│ ├── report.md # Synthesis and source inventory
|
|
245
|
+
│ ├── query.txt # The query as sent
|
|
246
|
+
│ ├── meta.json # Local telemetry sidecar
|
|
247
|
+
│ ├── extractions/ # One extraction per page
|
|
248
|
+
│ └── sources/ # Full fetched page content
|
|
249
|
+
├── 2026-11-23-batch-node-lts-releases-9c1e04/
|
|
250
|
+
│ ├── manifest.json # Batch queries, outcomes and member folders
|
|
251
|
+
│ └── batch-meta.json # Local batch telemetry, when enabled
|
|
252
|
+
└── .index.json # Index of cached reports
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
On a successful repeat of the same query on the same UTC date, the server tries to move the earlier run's files to a numbered sibling, `.1` then `.2`. Supplementary documentation downloads stay in the live folder. If the move fails, the new run can overwrite the earlier files; copy a run elsewhere before repeating it if it must be kept. See [Cache Structure](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#cache-structure).
|
|
256
|
+
|
|
257
|
+
**Privacy.** The cache keeps full copies of fetched pages, the query and each report in the project directory, readable by anything that can read the project; exclude `.search/` from version control when its content must not be shared. Queries and page content go to OpenRouter and the selected model providers. The server fetches pages from the machine it runs on, and fetched addresses are not restricted to public ones. See [Filesystem and Privacy Boundaries](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#filesystem-and-privacy-boundaries).
|
|
258
|
+
|
|
259
|
+
**Telemetry.** `meta.json` is local telemetry, which the server never transmits: it records the query, per-stage outcomes and timings and, for batch entries, the fetched URLs. Setting `"disableTelemetry": true` in `tuning` stops `meta.json` and `batch-meta.json`; reports, extractions, sources, batch manifests and the index are still written, because they are the cache itself.
|
|
68
260
|
|
|
69
261
|
## Evidence and Limits
|
|
70
262
|
|
|
71
|
-
|
|
263
|
+
Every check below ran on Linux in an isolated profile created from the harness's headless template. Each is a separate class of evidence; none stands in for another.
|
|
264
|
+
|
|
265
|
+
- **Local bundle, credential-free:** a locally generated bundle installed, composed both rows, registered the four tools and the skill, rejected home and filesystem-root workspaces, delivered a dummy key, and was removed and reinstalled on `dsh` `0.2.2-rc.1` and `0.2.2-rc.5`, without a provider call.
|
|
266
|
+
- **Pre-bootstrap launcher:** before the bundle was public, the packed 0.25.0 bundle started the public 0.25.0 MCP server on `0.2.2-rc.1`, discovered the four tools, loaded the skill and passed the configuration check.
|
|
267
|
+
- **Public installation by name:** the public 0.25.0 bundle installed by name on `0.2.2-rc.1`, with four tools, the skill, the configuration check, removal and reinstallation, and no model call.
|
|
268
|
+
- **Credentialed research:** with a local bundle on `0.2.2-rc.1` only, a quick search, a three-page research call and the credential-file route completed through real OpenRouter calls.
|
|
269
|
+
|
|
270
|
+
Other versions in the declared range `>=0.2.2-rc.1 <0.3.0`, the shipped `web` profile, the Web **Add plugin**, **Versions** and **Update** routes, and macOS and Windows hosts are untested. The [compatibility record](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/COMPATIBILITY.md#deepseek-harness-evidence-and-limits) gives dates and details, including [public installation by name](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/COMPATIBILITY.md#public-dsh-profile-installation-2026-11-22).
|
|
271
|
+
|
|
272
|
+
## Further Documentation
|
|
273
|
+
|
|
274
|
+
- [Usage examples](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#usage-examples), including planned batch research, and the [tool reference](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#tools).
|
|
275
|
+
- [Configuration](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#configuration) and [Tuning](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#tuning) for every key, model constraint and accepted range.
|
|
276
|
+
- [Timeouts and Troubleshooting](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#timeouts-and-troubleshooting) for every diagnostic.
|
|
277
|
+
- [Cost](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#cost), [Cache Structure](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#cache-structure) and [Filesystem and Privacy Boundaries](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#filesystem-and-privacy-boundaries).
|
|
278
|
+
- [Compatibility record](https://github.com/Curio-Data/pi-intelli-search/blob/main/docs/COMPATIBILITY.md#deepseek-harness-evidence-and-limits) and [Changelog](https://github.com/Curio-Data/pi-intelli-search/blob/main/CHANGELOG.md).
|
|
279
|
+
- [Installed skill](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/plugins/dsh/skills/intelli-search/SKILL.md), the agent-facing guidance this bundle registers.
|
|
72
280
|
|
|
73
281
|
## Licence
|
|
74
282
|
|
|
75
|
-
Apache-2.0. Copyright 2026 Ashraf Miah, Curio Data Pro Ltd. See
|
|
283
|
+
Apache-2.0. Copyright 2026 Ashraf Miah, Curio Data Pro Ltd. See the bundle's [LICENSE](https://github.com/Curio-Data/pi-intelli-search/blob/main/plugins/dsh/LICENSE). The bundle contains no third-party code, so it carries no `NOTICE`. The MCP server it launches through `npx`, `@curio-data/mcp-intelli-search`, is a separate package with its own [LICENSE](https://github.com/Curio-Data/pi-intelli-search/blob/main/LICENSE) and a [NOTICE](https://github.com/Curio-Data/pi-intelli-search/blob/main/NOTICE) for the third-party software it includes or uses.
|
package/cordis.patch.yml
CHANGED
package/package.json
CHANGED
|
@@ -235,41 +235,67 @@ This is also why `focusPrompt` matters. It tells the extraction model what to ke
|
|
|
235
235
|
|
|
236
236
|
## Setup (One Time)
|
|
237
237
|
|
|
238
|
-
The plugin is a generated configuration bundle for _DeepSeek Harness_ (`dsh`), not an extension: one inserted bridge row starts the pinned `@curio-data/mcp-intelli-search` package through `npx` with `--host dsh`, and one registrar registers this skill. The first start needs network access to download the package
|
|
238
|
+
The plugin is a generated configuration bundle for _DeepSeek Harness_ (`dsh`), not an extension: one inserted bridge row starts the pinned `@curio-data/mcp-intelli-search@0.25.1` package through `npx` with `--host dsh`, and one registrar registers this skill. The bundle installs into one harness profile, the name given to `--profile`, and only that profile loads it. The first start needs network access to download the package; later starts reuse the `npx` cache. [_Node.js_](https://nodejs.org/) 24.9 or later must be on `PATH` with `node` and `npx`, the harness's own floor. For the `dsh plugin` commands, put `pnpm` on `PATH` unless the launcher supplies its own package manager. The `pnpmCommand` setting applies only to the in-harness plugin manager.
|
|
239
239
|
|
|
240
|
-
No path or credential exports are required. The server uses the harness working directory as its workspace and writes research cache below it. Start the harness from the project directory: a directory change later in the session does not move the cache. For a fixed project root, override the row with id `mcp-intelli-search` in
|
|
240
|
+
No path or credential exports are required. The server uses the harness working directory as its workspace and writes research cache below it. Start the harness from the project directory: a directory change later in the session does not move the cache. For a fixed project root, override the row with id `mcp-intelli-search` in the profile's `cordis.patch.yml` under `$DSH_HOME/profiles/` and set `cwd`. The override replaces that row's entire `config`. Copy its other `config` fields from the profile's `--dump-config` output, for example `dsh --profile web --dump-config` with the profile in use substituted for `web`, and update the pinned package version after each bundle update. A home or filesystem-root working directory produces an actionable `WORKSPACE` tool error instead of an accidental shared cache. Without a per-user configuration file, DeepSeek Harness mode selects `perplexity/sonar` for search and `minimax/minimax-m3` for extraction and collation; the four tools start even when credentials are absent.
|
|
241
241
|
|
|
242
|
-
Credentials reach the server through the harness environment layer.
|
|
242
|
+
Credentials reach the server through the harness environment layer or a credential file. Environment precedence: an `OPENROUTER_API_KEY` exported in the launching environment, then a `.env` file in the launch directory, then `$DSH_HOME/.env`. The harness reads these once at launch, so a changed key requires one restart of the profile. To use the key across launching shells, prepare the harness-home file before entering the key:
|
|
243
243
|
|
|
244
244
|
```bash
|
|
245
245
|
(umask 077; touch "${DSH_HOME:-$HOME/.dsh}/.env") && chmod 600 "${DSH_HOME:-$HOME/.dsh}/.env"
|
|
246
246
|
```
|
|
247
247
|
|
|
248
|
-
After the command succeeds,
|
|
248
|
+
After the command succeeds, the user opens the file in an editor so the key stays out of shell history, and puts `OPENROUTER_API_KEY=` followed by the key on its own line, replacing any previous definition. From the project directory, restart the same profile.
|
|
249
249
|
|
|
250
|
-
The bridge row forwards `process.env.OPENROUTER_API_KEY` to the server; the server treats an empty value as absent and starts without a key. A key stored through the harness model-settings page does not provision this server: that credential is resolved through a service a child process cannot read
|
|
250
|
+
The bridge row forwards `process.env.OPENROUTER_API_KEY` to the server; the server treats an empty value as absent and starts without a key. A key stored through the harness model-settings page does not provision this server: that credential is resolved through a service a child process cannot read. As the alternative, the server's `setup` command reads a key from standard input, never from a terminal, and stores it in a user-only credential file beside the per-user configuration at `${XDG_CONFIG_HOME:-$HOME/.config}/mcp-intelli-search`, shared with the Codex host mode. Ask the user to run this pipeline in their own _Bash_ shell; never ask for the key in the conversation or place it in arguments, files or logs:
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
(
|
|
254
|
+
set +x
|
|
255
|
+
set +a
|
|
256
|
+
unset key || exit 1
|
|
257
|
+
IFS= read -r -s -p 'OpenRouter API key: ' key || exit 1
|
|
258
|
+
printf '\n'
|
|
259
|
+
printf '%s\n' "$key" | \
|
|
260
|
+
npx -y --package @curio-data/mcp-intelli-search@0.25.1 \
|
|
261
|
+
mcp-intelli-search setup
|
|
262
|
+
)
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
The subshell passes the key to setup on standard input, not in the environment, and leaves the calling shell's variables unchanged. Setup must print `Setup complete.`; otherwise setup is incomplete. It honours an existing custom `apiKeyFile` path and leaves that configuration unchanged. Only an absolute `XDG_CONFIG_HOME` is honoured, and setup must run with the same value as the harness. A stored file is reread on each call, but a nonempty environment key takes precedence: remove `OPENROUTER_API_KEY` from all three environment layers and restart to use the file. Edit that `config.json` to override models or tuning; custom models must pass catalogue validation for the required roles and be accessible to the configured account. A per-user file created after the harness started, or edited after it loaded, takes effect only after a restart; an invalid file is reread on each call until it loads. See [Configuration](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#configuration) and [Tuning](https://github.com/Curio-Data/pi-intelli-search/blob/mcp-v0.25.1/packages/mcp/README.md#tuning) in the standalone guide.
|
|
266
|
+
|
|
267
|
+
To validate the configuration without a key or a model call, run from the project directory:
|
|
268
|
+
|
|
269
|
+
```bash
|
|
270
|
+
npx -y --package @curio-data/mcp-intelli-search@0.25.1 \
|
|
271
|
+
mcp-intelli-search --host dsh --check-config
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
It prints `Configuration is valid.` for a loaded per-user file, or `Configuration is valid (built-in DeepSeek Harness defaults; no per-user file found).` when none exists. It rejects a home or filesystem-root directory like the server does.
|
|
251
275
|
|
|
252
276
|
This host names the MCP server `intelli`, so the four tools appear as `mcp__intelli__intelli_search`, `mcp__intelli__intelli_extract`, `mcp__intelli__intelli_collate` and `mcp__intelli__intelli_research`. A missing tool set means the bridge row did not start: the bundle sets `failOnStartupError: false`, so the harness keeps running and logs the failure rather than surfacing it. Report the missing tools and the startup log; do not substitute the harness's own web search and claim this server was used.
|
|
253
277
|
|
|
254
|
-
Research calls can take minutes. A slow call is not a hang: the bundle raises the bridge call limit to ten minutes (`toolCallTimeoutMs: 600000`). Server startup and tool discovery use a separate request timeout (60 seconds on `0.2.2-rc.1`), so a slow first `npx` download can still lose the tools on the first start.
|
|
278
|
+
Research calls can take minutes. A slow call is not a hang: the bundle raises the bridge call limit to ten minutes (`toolCallTimeoutMs: 600000`), and the server applies its own model-call timeouts and retries during the call. With the defaults, they can outlast the bridge limit, so keep `maxUrls` small (3 for targeted research) and batches short. Server startup and tool discovery use a separate request timeout (60 seconds on `0.2.2-rc.1`), so a slow first `npx` download can still lose the tools on the first start.
|
|
255
279
|
|
|
256
280
|
On `0.2.2-rc.1`, a project skill with the same name outranks this registration; a user-level skill does not. Local overrides therefore work at the project level only.
|
|
257
281
|
|
|
258
282
|
### Verify Inference
|
|
259
283
|
|
|
260
|
-
Request a quick search with `mcp__intelli__intelli_search` and confirm an actual tool call and an answer with sources. A running harness and a registered tool list do not prove provider access. If the tools are absent, report that setup is incomplete; do not claim this server was used while answering through the harness's own search.
|
|
284
|
+
Request a quick search with `mcp__intelli__intelli_search` and confirm an actual tool call and an answer with sources. A running harness and a registered tool list do not prove provider access, and a quick search does not prove the research pipeline. If the tools are absent, report that setup is incomplete; do not claim this server was used while answering through the harness's own search.
|
|
261
285
|
|
|
262
286
|
### Removal
|
|
263
287
|
|
|
264
288
|
```bash
|
|
265
|
-
|
|
289
|
+
profile=web
|
|
290
|
+
dsh plugin --profile "$profile" remove @curio-data/dsh-intelli-search
|
|
291
|
+
dsh --profile "$profile" --dump-config
|
|
266
292
|
```
|
|
267
293
|
|
|
268
|
-
|
|
294
|
+
Set `profile` to the profile in use. Restart that profile after removal; the dump must no longer list the two bundle rows. Removal leaves the per-user configuration, stored key, `.env` entries and each project's `.search/` cache in place.
|
|
269
295
|
|
|
270
296
|
### Evidence Limits
|
|
271
297
|
|
|
272
|
-
Installation, exact tool registration, skill loading, workspace guards, credential-free startup and dummy credential delivery are verified against `dsh` `0.2.2-rc.1` and `0.2.2-rc.5` on Linux with the local bundle and no provider calls. The bundle declares `engines.dsh: >=0.2.2-rc.1 <0.3.0`; the whole range has not been tested. A separate credentialed local-bundle run verified search, research and credential-file fallback on `0.2.2-rc.1` only.
|
|
298
|
+
Installation, exact tool registration, skill loading, workspace guards, credential-free startup and dummy credential delivery are verified against `dsh` `0.2.2-rc.1` and `0.2.2-rc.5` on Linux with the local bundle and no provider calls. Installation by name of the public 0.25.0 packages, with removal and reinstallation, passed separately on `0.2.2-rc.1` without a model call. The bundle declares `engines.dsh: >=0.2.2-rc.1 <0.3.0`; the whole range has not been tested. A separate credentialed local-bundle run verified search, research and credential-file fallback on `0.2.2-rc.1` only.
|
|
273
299
|
|
|
274
300
|
|
|
275
301
|
## Failure Modes
|