desearch-mcp-server 0.11.0 → 0.12.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.
@@ -0,0 +1,333 @@
1
+ import { createDesearchApi, withQuery } from "./desearch-api.js";
2
+ import { PEOPLE_API_BASE_URL, arrayOf, compact, objectOf, stringOf } from "./people.js";
3
+ /**
4
+ * Monitors on the Desearch API (`/desearch/monitors/*`, desearch-public-api docs/monitors.md).
5
+ *
6
+ * desearch-js 1.5 has no Monitors methods, so this module calls the routes directly through
7
+ * `desearch-api.ts`, with the same base URL, `Authorization: <key>` header, and
8
+ * `HTTP <status>: <detail>` error text as Company Search (companies.ts).
9
+ *
10
+ * A monitor reruns a search over its `sources` on a schedule (`interval`), or reads the newest
11
+ * posts of up to 10 watched accounts per source (X users, subreddits, YouTube channels, TikTok,
12
+ * Threads, and Instagram users, Facebook pages) and up to 10 watched TikTok and Instagram
13
+ * hashtags, drops everything it has already seen, screens the new items with an AI classifier
14
+ * (relevant, new_info, and one question per criterion; `score` is the lowest, kept at
15
+ * `min_score`), and keeps the ones that pass. Kept items are readable with the items route and
16
+ * are sent to the monitor's signed webhook. `instagram` and `facebook` only read watched accounts
17
+ * or hashtags (the API answers 422 without any); `meta_ads` searches the Meta Ad Library.
18
+ *
19
+ * - Creating, reading, changing, and deleting monitors is free, and so are the run, item, and
20
+ * webhook routes.
21
+ * - Each run is billed when it ends: its searches at their list price, AI screening per item
22
+ * screened (the `/desearch/monitors` price), and the summary's LLM usage plus 50%. Its most
23
+ * (`max_run_cost_usd`) is held on the balance while it runs. `run_now` on create (the API
24
+ * default) and the trigger route each queue a billed run.
25
+ * - `webhook_secret` is returned only by create (with a webhook), by an update that changes the
26
+ * webhook URL, and by rotate-secret.
27
+ */
28
+ /** `sources` (model/monitors.py MonitorSource). */
29
+ export const MONITOR_SOURCES = [
30
+ "web",
31
+ "x",
32
+ "reddit",
33
+ "youtube",
34
+ "threads",
35
+ "tiktok",
36
+ "instagram",
37
+ "facebook",
38
+ "meta_ads",
39
+ ];
40
+ /** `interval` (model/monitors.py MONITOR_INTERVALS). */
41
+ export const MONITOR_INTERVALS = ["1h", "3h", "6h", "12h", "1d", "7d"];
42
+ /** `webhook.events` (model/monitors.py MonitorEvent). */
43
+ export const MONITOR_EVENTS = ["monitor.items.found", "monitor.run.completed", "monitor.run.failed"];
44
+ /** `status` on a monitor, its PATCH body, and the list filter. */
45
+ export const MONITOR_STATUSES = ["active", "paused"];
46
+ /** `options.web.count` (model/monitors.py WebOptions). */
47
+ export const MONITOR_WEB_COUNTS = [10, 15, 20];
48
+ /** `options.tiktok.count` (model/monitors.py TikTokOptions): posts per run, per account and per hashtag with them. */
49
+ export const MONITOR_TIKTOK_COUNTS = [10, 20, 30];
50
+ /** `options.meta_ads.count` (model/monitors.py MetaAdsOptions): Ad Library records per run. */
51
+ export const MONITOR_META_ADS_COUNTS = [10, 20, 30];
52
+ /** Request limits (model/monitors.py). */
53
+ export const MONITOR_QUERY_MIN = 3;
54
+ export const MONITOR_QUERY_MAX = 500;
55
+ export const MONITOR_NAME_MAX = 120;
56
+ export const MONITOR_CRITERIA_MAX = 5;
57
+ export const MONITOR_CRITERION_MAX = 300;
58
+ export const MONITOR_METADATA_MAX_KEYS = 20;
59
+ export const MONITOR_METADATA_KEY_MAX = 64;
60
+ export const MONITOR_METADATA_VALUE_MAX = 500;
61
+ export const MONITOR_X_COUNT_MAX = 100;
62
+ /** Watched accounts per source, and watched hashtags per source (model/monitors.py MAX_ACCOUNTS). */
63
+ export const MONITOR_ACCOUNTS_MAX = 10;
64
+ export function createMonitorClient(apiKey, baseUrl = PEOPLE_API_BASE_URL) {
65
+ return monitorClientFor(createDesearchApi(apiKey, baseUrl));
66
+ }
67
+ /** A Monitors client on an existing API caller, so the server shares one per key. */
68
+ export function monitorClientFor(call) {
69
+ const base = "/desearch/monitors";
70
+ const monitorPath = (monitorId, suffix = "") => `${base}/${encodeURIComponent(monitorId)}${suffix}`;
71
+ const data = async (pending) => (await pending).data;
72
+ return {
73
+ create(body) {
74
+ return data(call("POST", base, { body }));
75
+ },
76
+ estimate(body) {
77
+ return data(call("POST", `${base}/estimate`, { body }));
78
+ },
79
+ list(params) {
80
+ return data(call("GET", withQuery(base, params)));
81
+ },
82
+ get(monitorId) {
83
+ return data(call("GET", monitorPath(monitorId)));
84
+ },
85
+ update(monitorId, body) {
86
+ return data(call("PATCH", monitorPath(monitorId), { body }));
87
+ },
88
+ remove(monitorId) {
89
+ return data(call("DELETE", monitorPath(monitorId)));
90
+ },
91
+ trigger(monitorId) {
92
+ return data(call("POST", monitorPath(monitorId, "/trigger")));
93
+ },
94
+ listRuns(monitorId, params) {
95
+ return data(call("GET", withQuery(monitorPath(monitorId, "/runs"), params)));
96
+ },
97
+ getRun(monitorId, runId) {
98
+ return data(call("GET", monitorPath(monitorId, `/runs/${encodeURIComponent(runId)}`)));
99
+ },
100
+ listItems(monitorId, params) {
101
+ return data(call("GET", withQuery(monitorPath(monitorId, "/items"), params)));
102
+ },
103
+ testWebhook(monitorId) {
104
+ return data(call("POST", monitorPath(monitorId, "/webhook/test")));
105
+ },
106
+ rotateSecret(monitorId) {
107
+ return data(call("POST", monitorPath(monitorId, "/webhook/rotate-secret")));
108
+ },
109
+ };
110
+ }
111
+ /** The fields that are set. Unlike `compact`, an empty list stays: it sends "no accounts". */
112
+ function setFields(fields) {
113
+ const out = {};
114
+ for (const [key, value] of Object.entries(fields)) {
115
+ if (value !== undefined)
116
+ out[key] = value;
117
+ }
118
+ return Object.keys(out).length > 0 ? out : undefined;
119
+ }
120
+ /**
121
+ * `options` from the flat tool arguments: `web.count`; `x.count`, `x.lang`, `x.min_likes`,
122
+ * `x.accounts`; `reddit.subreddits`; `youtube.channels`; `tiktok.count`, `tiktok.accounts`,
123
+ * `tiktok.hashtags`; `threads.accounts`; `instagram.accounts`, `instagram.hashtags`;
124
+ * `facebook.pages`; `meta_ads.count`.
125
+ * Account names and hashtags are sent as given: the API cleans them (`@OpenAI` → `OpenAI`,
126
+ * `r/LocalLLaMA` → `LocalLLaMA`, a Facebook `profile.php?id=…` URL → its ID, `#სილამაზე` → `სილამაზე`,
127
+ * a tag URL → its tag) and answers 422 for a name or hashtag it cannot read, and for `instagram`
128
+ * in `sources` without accounts or hashtags or `facebook` without pages.
129
+ */
130
+ export function monitorOptions(args) {
131
+ return setFields({
132
+ web: setFields({ count: args.web_count }),
133
+ x: setFields({ count: args.x_count, lang: args.x_lang, min_likes: args.x_min_likes, accounts: args.x_accounts }),
134
+ reddit: setFields({ subreddits: args.reddit_subreddits }),
135
+ youtube: setFields({ channels: args.youtube_channels }),
136
+ tiktok: setFields({ count: args.tiktok_count, accounts: args.tiktok_accounts, hashtags: args.tiktok_hashtags }),
137
+ threads: setFields({ accounts: args.threads_accounts }),
138
+ instagram: setFields({ accounts: args.instagram_accounts, hashtags: args.instagram_hashtags }),
139
+ facebook: setFields({ pages: args.facebook_pages }),
140
+ meta_ads: setFields({ count: args.meta_ads_count }),
141
+ });
142
+ }
143
+ /** `webhook` from `webhook_url` and `webhook_events`. The API needs the URL in every webhook object. */
144
+ function webhookField(args) {
145
+ if (args.webhook_url === undefined) {
146
+ if (args.webhook_events !== undefined) {
147
+ throw new Error("webhook_events needs webhook_url: send the webhook's URL with its events.");
148
+ }
149
+ return undefined;
150
+ }
151
+ return compact({ url: args.webhook_url, events: args.webhook_events });
152
+ }
153
+ /** The settings fields create and update share, only when the caller set them. */
154
+ function settingsFields(args, body) {
155
+ if (args.name !== undefined)
156
+ body.name = args.name;
157
+ if (args.criteria !== undefined)
158
+ body.criteria = args.criteria;
159
+ if (args.sources !== undefined)
160
+ body.sources = args.sources;
161
+ if (args.interval !== undefined)
162
+ body.interval = args.interval;
163
+ const options = monitorOptions(args);
164
+ if (options !== undefined)
165
+ body.options = options;
166
+ if (args.min_score !== undefined)
167
+ body.min_score = args.min_score;
168
+ if (args.summary !== undefined)
169
+ body.summary = args.summary;
170
+ const webhook = webhookField(args);
171
+ if (webhook !== undefined)
172
+ body.webhook = webhook;
173
+ if (args.metadata !== undefined)
174
+ body.metadata = args.metadata;
175
+ return body;
176
+ }
177
+ /** Request body for `POST /desearch/monitors` (model/monitors.py MonitorCreateRequest). */
178
+ export function monitorCreateBody(args) {
179
+ const body = settingsFields(args, { query: args.query });
180
+ if (args.run_now !== undefined)
181
+ body.run_now = args.run_now;
182
+ return body;
183
+ }
184
+ /**
185
+ * Request body for `PATCH /desearch/monitors/{monitor_id}` (model/monitors.py
186
+ * MonitorUpdateRequest). `remove_webhook` sends `webhook: null`, which removes the webhook.
187
+ */
188
+ export function monitorUpdateBody(args) {
189
+ if (args.remove_webhook === true && (args.webhook_url !== undefined || args.webhook_events !== undefined)) {
190
+ throw new Error("Send either remove_webhook or webhook_url, not both.");
191
+ }
192
+ const body = {};
193
+ if (args.query !== undefined)
194
+ body.query = args.query;
195
+ settingsFields(args, body);
196
+ if (args.status !== undefined)
197
+ body.status = args.status;
198
+ if (args.remove_webhook === true)
199
+ body.webhook = null;
200
+ if (Object.keys(body).length === 0) {
201
+ throw new Error("Nothing to change: send at least one setting.");
202
+ }
203
+ return body;
204
+ }
205
+ /** Request body for `POST /desearch/monitors/estimate` (model/monitors.py MonitorEstimateRequest). */
206
+ export function monitorEstimateBody(args) {
207
+ const body = {};
208
+ if (args.sources !== undefined)
209
+ body.sources = args.sources;
210
+ const options = monitorOptions(args);
211
+ if (options !== undefined)
212
+ body.options = options;
213
+ if (args.summary !== undefined)
214
+ body.summary = args.summary;
215
+ if (args.interval !== undefined)
216
+ body.interval = args.interval;
217
+ return body;
218
+ }
219
+ const MAX_ITEM_TEXT_CHARS = 1000;
220
+ /**
221
+ * One kept item as an agent needs it: where it came from, what it says (`text` cut to 1000
222
+ * characters), who posted it, how it scored, and the source's own fields (`data`, with
223
+ * `account` when it was read from a watched account and `hashtag` when it was read from a
224
+ * watched hashtag).
225
+ */
226
+ export function compactMonitorItem(item) {
227
+ const i = objectOf(item);
228
+ const text = stringOf(i.text);
229
+ const author = objectOf(i.author);
230
+ return compact({
231
+ item_id: i.item_id,
232
+ run_id: i.run_id,
233
+ source: i.source,
234
+ url: stringOf(i.url),
235
+ title: stringOf(i.title),
236
+ text: text && text.length > MAX_ITEM_TEXT_CHARS ? `${text.slice(0, MAX_ITEM_TEXT_CHARS - 3)}...` : text,
237
+ author: compact({ name: stringOf(author.name), handle: stringOf(author.handle), url: stringOf(author.url) }),
238
+ published_at: i.published_at,
239
+ score: i.score,
240
+ signals: i.signals,
241
+ found_at: i.found_at,
242
+ data: i.data,
243
+ });
244
+ }
245
+ const SECRET_NOTE = "Store webhook_secret now: it is shown only on create, when the webhook URL changes, and by monitor-webhook-rotate-secret. Verify each delivery's Desearch-Signature header (t=<unix>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">) with it.";
246
+ /** What to do next after a create or an update, so an agent does not have to infer it. */
247
+ export function monitorNextStep(monitor, options = {}) {
248
+ const m = objectOf(monitor);
249
+ const notes = [];
250
+ if (options.created) {
251
+ notes.push(options.runNow === false
252
+ ? "Created. No run is queued yet: it first runs at next_run_at, or call monitor-trigger to run it now (billed)."
253
+ : "Created, and its first run is queued (billed when it ends, at most max_run_cost_usd). Call monitor-runs in about a minute to see it, then monitor-items for what it kept.");
254
+ }
255
+ else if (m.status === "paused") {
256
+ notes.push("Paused: no scheduled runs until you set status active with monitor-update (monitor-trigger still runs it once).");
257
+ }
258
+ else {
259
+ notes.push("Updated. The next scheduled run is at next_run_at.");
260
+ }
261
+ if (stringOf(m.webhook_secret)) {
262
+ notes.push(SECRET_NOTE);
263
+ }
264
+ return notes.join(" ");
265
+ }
266
+ /** What to do next with one run, by its status. */
267
+ export function monitorRunNextStep(run) {
268
+ const r = objectOf(run);
269
+ switch (r.status) {
270
+ case "queued":
271
+ case "running":
272
+ return "Still running. Call monitor-run with this run_id again in 30 seconds.";
273
+ case "completed":
274
+ return "Done. Its kept items are on monitor-run (most relevant first) and monitor-items; cost_usd is what it was billed.";
275
+ case "failed":
276
+ return `The run failed (${String(r.fail_reason ?? "unknown")}). It is billed only for what it used.`;
277
+ case "cancelled":
278
+ return "Cancelled. Its hold was released.";
279
+ default:
280
+ return "Call monitor-run again to check for changes.";
281
+ }
282
+ }
283
+ /** `monitor-create`: create a monitor; with run_now (the default) its first billed run is queued. */
284
+ export async function createMonitor(client, args) {
285
+ const monitor = objectOf(await client.create(monitorCreateBody(args)));
286
+ return { ...monitor, next: monitorNextStep(monitor, { created: true, runNow: args.run_now }) };
287
+ }
288
+ /** `monitor-update`: change settings, pause or resume, or remove the webhook. */
289
+ export async function updateMonitor(client, args) {
290
+ const body = monitorUpdateBody(args);
291
+ const monitor = objectOf(await client.update(args.monitor_id, body));
292
+ return { ...monitor, next: monitorNextStep(monitor) };
293
+ }
294
+ /** `monitor-list`: the caller's monitors, newest first. */
295
+ export async function listMonitors(client, args) {
296
+ const page = objectOf(await client.list({
297
+ status: args.status?.length ? args.status.join(",") : undefined,
298
+ limit: args.limit,
299
+ cursor: args.cursor,
300
+ }));
301
+ return { monitors: arrayOf(page.monitors), next_cursor: stringOf(page.next_cursor) ?? null };
302
+ }
303
+ /** `monitor-trigger`: queue one billed run now. */
304
+ export async function triggerMonitor(client, args) {
305
+ const run = objectOf(await client.trigger(args.monitor_id));
306
+ return {
307
+ ...run,
308
+ next: "Run queued; it is billed when it ends (at most the monitor's max_run_cost_usd). Call monitor-run with this run_id in 30 to 60 seconds.",
309
+ };
310
+ }
311
+ /** `monitor-runs`: a monitor's runs, newest first. */
312
+ export async function listMonitorRuns(client, args) {
313
+ const page = objectOf(await client.listRuns(args.monitor_id, { limit: args.limit, cursor: args.cursor }));
314
+ return { runs: arrayOf(page.runs), next_cursor: stringOf(page.next_cursor) ?? null };
315
+ }
316
+ /** `monitor-run`: one run with the items it kept, most relevant first. */
317
+ export async function readMonitorRun(client, args) {
318
+ const run = objectOf(await client.getRun(args.monitor_id, args.run_id));
319
+ return { ...run, items: arrayOf(run.items).map(compactMonitorItem), next: monitorRunNextStep(run) };
320
+ }
321
+ /** `monitor-items`: everything a monitor kept, newest first. */
322
+ export async function listMonitorItems(client, args) {
323
+ const page = objectOf(await client.listItems(args.monitor_id, { source: args.source, limit: args.limit, cursor: args.cursor }));
324
+ return { items: arrayOf(page.items).map(compactMonitorItem), next_cursor: stringOf(page.next_cursor) ?? null };
325
+ }
326
+ /** `monitor-webhook-rotate-secret`: a new signing secret, returned once. */
327
+ export async function rotateMonitorSecret(client, args) {
328
+ const result = objectOf(await client.rotateSecret(args.monitor_id));
329
+ return {
330
+ ...result,
331
+ next: "The old secret no longer signs deliveries. Store webhook_secret now: it is not shown again (rotate again if it is lost).",
332
+ };
333
+ }
package/build/server.d.ts CHANGED
@@ -2,8 +2,9 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
2
  import { type Icon } from "@modelcontextprotocol/sdk/types.js";
3
3
  import { type PeopleClient } from "./people.js";
4
4
  import { type CompanyClient } from "./companies.js";
5
+ import { type MonitorClient } from "./monitors.js";
5
6
  export declare const SERVER_NAME = "Desearch";
6
- export declare const SERVER_VERSION = "0.11.0";
7
+ export declare const SERVER_VERSION = "0.12.0";
7
8
  export declare const SERVER_TITLE = "Desearch";
8
9
  export declare const SERVER_WEBSITE_URL = "https://www.desearch.ai";
9
10
  export declare const MCP_PUBLIC_BASE_URL: string;
@@ -103,13 +104,14 @@ export declare function presentSearchBody(value: unknown): unknown;
103
104
  * One MCP server bound to a single Desearch API key.
104
105
  * Stdio uses the process env key. Remote HTTP builds a new server per request
105
106
  * so each caller spends their own key.
106
- * `client`, `peopleClient`, and `companyClient` are test seams. Production callers omit
107
- * them and the server builds a desearch-js client, a People Search client (people.ts), and
108
- * a Company Search client (companies.ts) from `apiKey`.
109
- * The routes desearch-js 1.5 does not cover (People Search, Company Search, TikTok,
107
+ * `client`, `peopleClient`, `companyClient`, and `monitorClient` are test seams. Production
108
+ * callers omit them and the server builds a desearch-js client, a People Search client
109
+ * (people.ts), a Company Search client (companies.ts), and a Monitors client (monitors.ts)
110
+ * from `apiKey`.
111
+ * The routes desearch-js 1.5 does not cover (People Search, Company Search, Monitors, TikTok,
110
112
  * Facebook, Instagram, YouTube, Reddit, Threads, `POST /search`) share one direct API caller (desearch-api.ts)
111
113
  * for that key.
112
114
  */
113
- export declare function createDesearchMcpServer(apiKey: string, client?: DesearchClient, peopleClient?: PeopleClient, companyClient?: CompanyClient): McpServer;
115
+ export declare function createDesearchMcpServer(apiKey: string, client?: DesearchClient, peopleClient?: PeopleClient, companyClient?: CompanyClient, monitorClient?: MonitorClient): McpServer;
114
116
  export {};
115
117
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAKH,KAAK,IAAI,EAEZ,MAAM,oCAAoC,CAAC;AAK5C,OAAO,EAqBH,KAAK,YAAY,EACpB,MAAM,aAAa,CAAC;AACrB,OAAO,EAeH,KAAK,aAAa,EACrB,MAAM,gBAAgB,CAAC;AAIxB,eAAO,MAAM,WAAW,aAAa,CAAC;AACtC,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,YAAY,aAAa,CAAC;AACvC,eAAO,MAAM,kBAAkB,4BAA4B,CAAC;AAG5D,eAAO,MAAM,mBAAmB,QAA6F,CAAC;AAE9H,eAAO,MAAM,YAAY,EAAE,IAAI,EAG9B,CAAC;AAEF,UAAU,cAAc;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO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