@curio-data/mcp-intelli-search 0.23.0 → 0.25.0
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 +135 -24
- package/dist/{chunk-B5ZMILMB.js → chunk-67MPZQF2.js} +1170 -132
- package/dist/{chunk-NMHVOCTZ.js → chunk-GNQNWFYE.js} +13 -3
- package/dist/cli.js +21 -16
- package/dist/runtime.js +2 -2
- package/dist/server.js +4 -4
- package/package.json +1 -1
|
@@ -31,7 +31,10 @@ var TUNING_RANGES = {
|
|
|
31
31
|
retryBaseDelayMs: [0, 12e4],
|
|
32
32
|
retryMaxDelayMs: [0, 12e4],
|
|
33
33
|
searchRetryAttempts: [1, 10],
|
|
34
|
-
minRequestIntervalMs: [0, 12e4]
|
|
34
|
+
minRequestIntervalMs: [0, 12e4],
|
|
35
|
+
maxBatchEntries: [2, 100],
|
|
36
|
+
batchConcurrency: [1, 32],
|
|
37
|
+
batchExtractionConcurrency: [1, 32]
|
|
35
38
|
};
|
|
36
39
|
function tuningDefaults() {
|
|
37
40
|
return {
|
|
@@ -93,6 +96,13 @@ function tuningDefaults() {
|
|
|
93
96
|
retryMaxDelayMs: 2e4,
|
|
94
97
|
searchRetryAttempts: 2,
|
|
95
98
|
minRequestIntervalMs: 0,
|
|
99
|
+
// Batch research starting values, set by the owner on 2026-11-17 to be
|
|
100
|
+
// revised from the branch's traced runs (docs/proposals/BATCH-RESEARCH.md
|
|
101
|
+
// § Starting Values): twice the largest observed batch, the existing
|
|
102
|
+
// per-run concurrency, and twice the per-run extraction pool.
|
|
103
|
+
maxBatchEntries: 10,
|
|
104
|
+
batchConcurrency: 4,
|
|
105
|
+
batchExtractionConcurrency: 8,
|
|
96
106
|
httpProxy: void 0
|
|
97
107
|
};
|
|
98
108
|
}
|
|
@@ -416,7 +426,7 @@ function defaultDocument(credential) {
|
|
|
416
426
|
}
|
|
417
427
|
};
|
|
418
428
|
}
|
|
419
|
-
function
|
|
429
|
+
function defaultHostConfig(_host, workspace, paths) {
|
|
420
430
|
return parseConfig(defaultDocument(paths.credential), workspace);
|
|
421
431
|
}
|
|
422
432
|
function credentialText(source) {
|
|
@@ -537,7 +547,7 @@ export {
|
|
|
537
547
|
loadConfig,
|
|
538
548
|
StandaloneError,
|
|
539
549
|
hostPaths,
|
|
540
|
-
|
|
550
|
+
defaultHostConfig,
|
|
541
551
|
resolveCredential,
|
|
542
552
|
setupHost
|
|
543
553
|
};
|
package/dist/cli.js
CHANGED
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
} from "./chunk-ZTHYRKI2.js";
|
|
5
5
|
import {
|
|
6
6
|
ConfigurationError,
|
|
7
|
-
|
|
7
|
+
defaultHostConfig,
|
|
8
8
|
hostPaths,
|
|
9
9
|
identity,
|
|
10
10
|
loadConfig,
|
|
11
11
|
resolveWorkspace,
|
|
12
12
|
setupHost
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GNQNWFYE.js";
|
|
14
14
|
|
|
15
15
|
// packages/mcp/src/cli.ts
|
|
16
16
|
import { parseArgs } from "node:util";
|
|
@@ -31,16 +31,17 @@ function cliOptions(argv, env = process.env) {
|
|
|
31
31
|
"check-config": { type: "boolean" }
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
if (values.host !== void 0 && values.host !== "codex")
|
|
34
|
+
if (values.host !== void 0 && values.host !== "codex" && values.host !== "dsh")
|
|
35
35
|
throw new Error("Unsupported host");
|
|
36
36
|
if (positionals.length > 1 || positionals.length === 1 && positionals[0] !== "setup")
|
|
37
37
|
throw new Error("Unsupported command");
|
|
38
38
|
const setup = positionals[0] === "setup";
|
|
39
|
+
const host = values.host === "codex" || values.host === "dsh";
|
|
39
40
|
return {
|
|
40
41
|
...values,
|
|
41
42
|
setup,
|
|
42
|
-
config: values.config ?? (setup ||
|
|
43
|
-
workspace: values.workspace ?? (setup ||
|
|
43
|
+
config: values.config ?? (setup || host ? void 0 : env.INTELLI_SEARCH_CONFIG),
|
|
44
|
+
workspace: values.workspace ?? (setup || host ? void 0 : env.INTELLI_SEARCH_WORKSPACE)
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
async function credentialInput() {
|
|
@@ -70,13 +71,15 @@ async function main() {
|
|
|
70
71
|
process.stdout.write(
|
|
71
72
|
`Usage: mcp-intelli-search setup
|
|
72
73
|
mcp-intelli-search --host codex [--config FILE] [--workspace ABSOLUTE_DIRECTORY]
|
|
74
|
+
mcp-intelli-search --host dsh [--config FILE] [--workspace ABSOLUTE_DIRECTORY]
|
|
73
75
|
mcp-intelli-search --config FILE --workspace ABSOLUTE_DIRECTORY
|
|
74
76
|
|
|
75
77
|
Commands:
|
|
76
78
|
setup Store an OpenRouter key read from standard input and create or connect per-user configuration; accepts no path selections
|
|
77
79
|
|
|
78
80
|
Options:
|
|
79
|
-
--host codex
|
|
81
|
+
--host codex Use the Codex working root and per-user defaults
|
|
82
|
+
--host dsh Use the DeepSeek Harness working directory and per-user defaults
|
|
80
83
|
--config FILE Explicit generic configuration (or INTELLI_SEARCH_CONFIG)
|
|
81
84
|
--workspace DIR Existing absolute generic workspace (or INTELLI_SEARCH_WORKSPACE)
|
|
82
85
|
--check-config Validate configuration without inference or serving
|
|
@@ -84,7 +87,7 @@ Options:
|
|
|
84
87
|
--version Show package version
|
|
85
88
|
|
|
86
89
|
Generic MCP serving requires explicit configuration and workspace paths.
|
|
87
|
-
Codex
|
|
90
|
+
Codex and DeepSeek Harness modes supply both from their launchers and work without path exports.
|
|
88
91
|
Standard output carries protocol messages only while serving.
|
|
89
92
|
`
|
|
90
93
|
);
|
|
@@ -116,36 +119,38 @@ Restart after changing loaded configuration.
|
|
|
116
119
|
);
|
|
117
120
|
return;
|
|
118
121
|
}
|
|
119
|
-
const
|
|
122
|
+
const host = args.host === "codex" || args.host === "dsh" ? args.host : void 0;
|
|
123
|
+
const paths = host ? hostPaths() : void 0;
|
|
120
124
|
const file = args.config ?? paths?.config;
|
|
121
|
-
const workspace = args.workspace ?? (
|
|
125
|
+
const workspace = args.workspace ?? (host ? process.cwd() : void 0);
|
|
122
126
|
if (!file || !workspace)
|
|
123
127
|
throw new Error(
|
|
124
128
|
"Explicit --config and --workspace are required (or their INTELLI_SEARCH_* environment equivalents)"
|
|
125
129
|
);
|
|
126
130
|
const canonicalWorkspace = await resolveWorkspace(workspace);
|
|
127
131
|
let workspaceDefect;
|
|
128
|
-
if (
|
|
132
|
+
if (host && !args.workspace) {
|
|
129
133
|
const home = await realpath(homedir()).catch(() => homedir());
|
|
130
134
|
if (canonicalWorkspace === parsePath(canonicalWorkspace).root || canonicalWorkspace === home)
|
|
131
|
-
workspaceDefect = "Codex working root must be a project directory, not the home or filesystem root; restart Codex from the project or with --cd <project>";
|
|
135
|
+
workspaceDefect = host === "codex" ? "Codex working root must be a project directory, not the home or filesystem root; restart Codex from the project or with --cd <project>" : "DeepSeek Harness working directory must be a project directory, not the home or filesystem root; start the harness from the project or set cwd on the bridge row";
|
|
132
136
|
}
|
|
133
137
|
if (args["check-config"]) {
|
|
134
138
|
if (workspaceDefect) throw new Error(workspaceDefect);
|
|
135
139
|
let builtInDefaults = false;
|
|
136
|
-
if (paths && !args.config) {
|
|
140
|
+
if (host && paths && !args.config) {
|
|
137
141
|
try {
|
|
138
142
|
await loadConfig(file, workspace);
|
|
139
143
|
} catch (error) {
|
|
140
144
|
if (!(error instanceof ConfigurationError) || error.reason !== "missing") throw error;
|
|
141
|
-
await
|
|
145
|
+
await defaultHostConfig(host, workspace, paths);
|
|
142
146
|
builtInDefaults = true;
|
|
143
147
|
}
|
|
144
148
|
} else {
|
|
145
149
|
await loadConfig(file, workspace);
|
|
146
150
|
}
|
|
147
151
|
process.stdout.write(
|
|
148
|
-
builtInDefaults ?
|
|
152
|
+
builtInDefaults ? `Configuration is valid (built-in ${host === "codex" ? "Codex" : "DeepSeek Harness"} defaults; no per-user file found).
|
|
153
|
+
` : "Configuration is valid.\n"
|
|
149
154
|
);
|
|
150
155
|
return;
|
|
151
156
|
}
|
|
@@ -162,8 +167,8 @@ Restart after changing loaded configuration.
|
|
|
162
167
|
config = await loadSelected();
|
|
163
168
|
} catch (error) {
|
|
164
169
|
if (!(error instanceof ConfigurationError)) throw error;
|
|
165
|
-
if (paths && !args.config && error.reason === "missing") {
|
|
166
|
-
config = await
|
|
170
|
+
if (host && paths && !args.config && error.reason === "missing") {
|
|
171
|
+
config = await defaultHostConfig(host, workspace, paths);
|
|
167
172
|
} else {
|
|
168
173
|
process.stderr.write(
|
|
169
174
|
`[mcp-intelli-search] ${error.message}. Serving anyway: each tool call reports this and rereads the file until it loads
|
package/dist/runtime.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRuntime
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-67MPZQF2.js";
|
|
4
4
|
import {
|
|
5
5
|
ConfigurationError,
|
|
6
6
|
StandaloneError,
|
|
7
7
|
identity,
|
|
8
8
|
loadConfig,
|
|
9
9
|
parseConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GNQNWFYE.js";
|
|
11
11
|
export {
|
|
12
12
|
ConfigurationError,
|
|
13
13
|
StandaloneError,
|
package/dist/server.js
CHANGED
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
extractSchema,
|
|
8
8
|
researchSchema,
|
|
9
9
|
searchSchema
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-67MPZQF2.js";
|
|
11
11
|
import {
|
|
12
12
|
ConfigurationError,
|
|
13
13
|
StandaloneError,
|
|
14
14
|
identity
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GNQNWFYE.js";
|
|
16
16
|
|
|
17
17
|
// packages/mcp/src/server.ts
|
|
18
18
|
import { McpServer, fromJsonSchema } from "@modelcontextprotocol/server";
|
|
@@ -92,7 +92,7 @@ var OperationQueue = class {
|
|
|
92
92
|
|
|
93
93
|
// packages/mcp/src/server.ts
|
|
94
94
|
var skillGuidance = "Before the first intelli-search call in a session, load the intelli-search skill if available (plugins expose it as intelli-search:intelli-search). If the host has no such skill, use the tool descriptions without blocking.";
|
|
95
|
-
var serverInstructions = "Use intelli-search for current web information. " + skillGuidance + " Start with intelli_search for factual questions, latest versions, release dates and brief lookups. It returns an answer with sources without the multi-page fetch, extraction and collation pipeline. If a search answer looks stale or its sources disagree on the current version, try one narrower intelli_search targeting official sources before escalating. Use intelli_research for comparisons, detailed analysis or when a search answer leaves a specific evidence gap requiring multiple pages. Do not expand a simple lookup into unrequested research. For research, supply a focusPrompt and set maxUrls to the smallest useful breadth (3 for targeted research). Use the returned summary; read cache files only when it is insufficient.";
|
|
95
|
+
var serverInstructions = "Use intelli-search for current web information. " + skillGuidance + " Start with intelli_search for factual questions, latest versions, release dates and brief lookups. It returns an answer with sources without the multi-page fetch, extraction and collation pipeline. If a search answer looks stale or its sources disagree on the current version, try one narrower intelli_search targeting official sources before escalating. Use intelli_research for comparisons, detailed analysis or when a search answer leaves a specific evidence gap requiring multiple pages. Do not expand a simple lookup into unrequested research. For research, supply a focusPrompt and set maxUrls to the smallest useful breadth (3 for targeted research). Use one query if it covers the task. Batch distinct questions known at launch: expansion for one report, independent for separate answers. Use the returned summary; read cache files only when it is insufficient.";
|
|
96
96
|
var toolDefinitions = [
|
|
97
97
|
{
|
|
98
98
|
name: "intelli_search",
|
|
@@ -134,7 +134,7 @@ var toolDefinitions = [
|
|
|
134
134
|
{
|
|
135
135
|
name: "intelli_research",
|
|
136
136
|
title: "Intelli Research",
|
|
137
|
-
description: "Use for multi-page comparisons, detailed analysis or a specific evidence gap left by intelli_search. For a quick fact, latest model or package version, or release date, call intelli_search first, not this tool. Do not expand a simple lookup into unrequested research. This longer-running pipeline searches, fetches pages, extracts each page and collates the results; it can take minutes and incurs more provider calls than intelli_search. " + skillGuidance + " Writes results to the workspace cache; use the returned summary directly and read cached pages only when it is insufficient. Use maxUrls to control breadth: 3 for targeted, 10 (default) for broad, 16 for exhaustive. Always provide focusPrompt to guide extraction. All operations call external services and incur provider charges. Repeating a query on the same UTC date attempts to archive its cached report, extractions and numbered sources to the lowest free numbered sibling folder (.1, then .2 and so on); archiving is best-effort and a failure lets the completed run replace files in place, so copy a report elsewhere if it must be retained. A degraded repeat preserves
|
|
137
|
+
description: "Use for multi-page comparisons, detailed analysis or a specific evidence gap left by intelli_search. For a quick fact, latest model or package version, or release date, call intelli_search first, not this tool. Do not expand a simple lookup into unrequested research. This longer-running pipeline searches, fetches pages, extracts each page and collates the results; it can take minutes and incurs more provider calls than intelli_search. " + skillGuidance + " Submit planned queries together with batchMode 'expansion' for one merged report or 'independent' for separate answers. Ask a follow-up separately when it depends on a finding. Writes results to the workspace cache; use the returned summary directly and read cached pages only when it is insufficient. Use maxUrls to control breadth: 3 for targeted, 10 (default) for broad, 16 for exhaustive. Always provide focusPrompt to guide extraction. All operations call external services and incur provider charges. Repeating a query on the same UTC date attempts to archive its cached report, extractions and numbered sources to the lowest free numbered sibling folder (.1, then .2 and so on); archiving is best-effort and a failure lets the completed run replace files in place, so copy a report elsewhere if it must be retained. A degraded repeat of a query, alone or in a batch, preserves that query's earlier successful report; a repeated batch archives its earlier batch folder even when the new merge fails.",
|
|
138
138
|
schema: researchSchema,
|
|
139
139
|
annotations: {
|
|
140
140
|
title: "Intelli Research",
|
package/package.json
CHANGED