@blen/uspto-mcp-server 0.0.0-stage → 0.1.2
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/CHANGELOG.md +61 -0
- package/LICENSE +202 -0
- package/NOTICE +55 -0
- package/README.md +229 -2
- package/SECURITY.md +142 -0
- package/dist/accounts/app.d.ts +18 -0
- package/dist/accounts/app.d.ts.map +1 -0
- package/dist/accounts/app.js +407 -0
- package/dist/accounts/app.js.map +1 -0
- package/dist/accounts/config.d.ts +21 -0
- package/dist/accounts/config.d.ts.map +1 -0
- package/dist/accounts/config.js +55 -0
- package/dist/accounts/config.js.map +1 -0
- package/dist/accounts/crypto.d.ts +18 -0
- package/dist/accounts/crypto.d.ts.map +1 -0
- package/dist/accounts/crypto.js +43 -0
- package/dist/accounts/crypto.js.map +1 -0
- package/dist/accounts/keyGates.d.ts +19 -0
- package/dist/accounts/keyGates.d.ts.map +1 -0
- package/dist/accounts/keyGates.js +47 -0
- package/dist/accounts/keyGates.js.map +1 -0
- package/dist/accounts/paths.d.ts +10 -0
- package/dist/accounts/paths.d.ts.map +1 -0
- package/dist/accounts/paths.js +10 -0
- package/dist/accounts/paths.js.map +1 -0
- package/dist/accounts/portal.d.ts +7 -0
- package/dist/accounts/portal.d.ts.map +1 -0
- package/dist/accounts/portal.js +225 -0
- package/dist/accounts/portal.js.map +1 -0
- package/dist/accounts/provider.d.ts +2610 -0
- package/dist/accounts/provider.d.ts.map +1 -0
- package/dist/accounts/provider.js +108 -0
- package/dist/accounts/provider.js.map +1 -0
- package/dist/accounts/runtime.d.ts +26 -0
- package/dist/accounts/runtime.d.ts.map +1 -0
- package/dist/accounts/runtime.js +168 -0
- package/dist/accounts/runtime.js.map +1 -0
- package/dist/accounts/store.d.ts +30 -0
- package/dist/accounts/store.d.ts.map +1 -0
- package/dist/accounts/store.js +155 -0
- package/dist/accounts/store.js.map +1 -0
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +195 -0
- package/dist/bin.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/sandbox/deno.d.ts +35 -0
- package/dist/sandbox/deno.d.ts.map +1 -0
- package/dist/sandbox/deno.js +373 -0
- package/dist/sandbox/deno.js.map +1 -0
- package/dist/sandbox/index.d.ts +28 -0
- package/dist/sandbox/index.d.ts.map +1 -0
- package/dist/sandbox/index.js +55 -0
- package/dist/sandbox/index.js.map +1 -0
- package/dist/sandbox/isolate.d.ts +17 -0
- package/dist/sandbox/isolate.d.ts.map +1 -0
- package/dist/sandbox/isolate.js +195 -0
- package/dist/sandbox/isolate.js.map +1 -0
- package/dist/sandbox/limits.d.ts +60 -0
- package/dist/sandbox/limits.d.ts.map +1 -0
- package/dist/sandbox/limits.js +86 -0
- package/dist/sandbox/limits.js.map +1 -0
- package/dist/sandbox/policy.d.ts +7 -0
- package/dist/sandbox/policy.d.ts.map +1 -0
- package/dist/sandbox/policy.js +87 -0
- package/dist/sandbox/policy.js.map +1 -0
- package/dist/sandbox/types.d.ts +57 -0
- package/dist/sandbox/types.d.ts.map +1 -0
- package/dist/sandbox/types.js +6 -0
- package/dist/sandbox/types.js.map +1 -0
- package/dist/sdk/bindings.d.ts +13 -0
- package/dist/sdk/bindings.d.ts.map +1 -0
- package/dist/sdk/bindings.js +22 -0
- package/dist/sdk/bindings.js.map +1 -0
- package/dist/sdk/odp-client.d.ts +167 -0
- package/dist/sdk/odp-client.d.ts.map +1 -0
- package/dist/sdk/odp-client.js +253 -0
- package/dist/sdk/odp-client.js.map +1 -0
- package/dist/sdk/runtime.d.ts +21 -0
- package/dist/sdk/runtime.d.ts.map +1 -0
- package/dist/sdk/runtime.js +32 -0
- package/dist/sdk/runtime.js.map +1 -0
- package/dist/sdk/sources/corpus-loader.d.ts +8 -0
- package/dist/sdk/sources/corpus-loader.d.ts.map +1 -0
- package/dist/sdk/sources/corpus-loader.js +17 -0
- package/dist/sdk/sources/corpus-loader.js.map +1 -0
- package/dist/sdk/sources/index.d.ts +8 -0
- package/dist/sdk/sources/index.d.ts.map +1 -0
- package/dist/sdk/sources/index.js +25 -0
- package/dist/sdk/sources/index.js.map +1 -0
- package/dist/sdk/sources/odp.d.ts +5 -0
- package/dist/sdk/sources/odp.d.ts.map +1 -0
- package/dist/sdk/sources/odp.js +78 -0
- package/dist/sdk/sources/odp.js.map +1 -0
- package/dist/sdk/sources/source.d.ts +44 -0
- package/dist/sdk/sources/source.d.ts.map +1 -0
- package/dist/sdk/sources/source.js +3 -0
- package/dist/sdk/sources/source.js.map +1 -0
- package/dist/sdk/sources/tsdr.d.ts +5 -0
- package/dist/sdk/sources/tsdr.d.ts.map +1 -0
- package/dist/sdk/sources/tsdr.js +38 -0
- package/dist/sdk/sources/tsdr.js.map +1 -0
- package/dist/sdk/tsdr-client.d.ts +24 -0
- package/dist/sdk/tsdr-client.d.ts.map +1 -0
- package/dist/sdk/tsdr-client.js +65 -0
- package/dist/sdk/tsdr-client.js.map +1 -0
- package/dist/search/bm25.d.ts +25 -0
- package/dist/search/bm25.d.ts.map +1 -0
- package/dist/search/bm25.js +67 -0
- package/dist/search/bm25.js.map +1 -0
- package/dist/search/corpus.d.ts +24 -0
- package/dist/search/corpus.d.ts.map +1 -0
- package/dist/search/corpus.js +23 -0
- package/dist/search/corpus.js.map +1 -0
- package/dist/server/authz.d.ts +40 -0
- package/dist/server/authz.d.ts.map +1 -0
- package/dist/server/authz.js +70 -0
- package/dist/server/authz.js.map +1 -0
- package/dist/server/http.d.ts +44 -0
- package/dist/server/http.d.ts.map +1 -0
- package/dist/server/http.js +199 -0
- package/dist/server/http.js.map +1 -0
- package/dist/server/ipRateLimiter.d.ts +22 -0
- package/dist/server/ipRateLimiter.d.ts.map +1 -0
- package/dist/server/ipRateLimiter.js +58 -0
- package/dist/server/ipRateLimiter.js.map +1 -0
- package/dist/server/mcpServer.d.ts +22 -0
- package/dist/server/mcpServer.d.ts.map +1 -0
- package/dist/server/mcpServer.js +90 -0
- package/dist/server/mcpServer.js.map +1 -0
- package/dist/server/stdio.d.ts +3 -0
- package/dist/server/stdio.d.ts.map +1 -0
- package/dist/server/stdio.js +16 -0
- package/dist/server/stdio.js.map +1 -0
- package/dist/server/toolCatalog.d.ts +162 -0
- package/dist/server/toolCatalog.d.ts.map +1 -0
- package/dist/server/toolCatalog.js +83 -0
- package/dist/server/toolCatalog.js.map +1 -0
- package/dist/server/wellKnown.d.ts +16 -0
- package/dist/server/wellKnown.d.ts.map +1 -0
- package/dist/server/wellKnown.js +17 -0
- package/dist/server/wellKnown.js.map +1 -0
- package/dist/server/zodToJsonSchema.d.ts +8 -0
- package/dist/server/zodToJsonSchema.d.ts.map +1 -0
- package/dist/server/zodToJsonSchema.js +14 -0
- package/dist/server/zodToJsonSchema.js.map +1 -0
- package/dist/supervisor/index.d.ts +54 -0
- package/dist/supervisor/index.d.ts.map +1 -0
- package/dist/supervisor/index.js +62 -0
- package/dist/supervisor/index.js.map +1 -0
- package/dist/tools/describeSchema.d.ts +23 -0
- package/dist/tools/describeSchema.d.ts.map +1 -0
- package/dist/tools/describeSchema.js +14 -0
- package/dist/tools/describeSchema.js.map +1 -0
- package/dist/tools/execute.d.ts +36 -0
- package/dist/tools/execute.d.ts.map +1 -0
- package/dist/tools/execute.js +70 -0
- package/dist/tools/execute.js.map +1 -0
- package/dist/tools/searchApi.d.ts +21 -0
- package/dist/tools/searchApi.d.ts.map +1 -0
- package/dist/tools/searchApi.js +14 -0
- package/dist/tools/searchApi.js.map +1 -0
- package/dist/util/executionContext.d.ts +6 -0
- package/dist/util/executionContext.d.ts.map +1 -0
- package/dist/util/executionContext.js +26 -0
- package/dist/util/executionContext.js.map +1 -0
- package/dist/util/executionLimiter.d.ts +19 -0
- package/dist/util/executionLimiter.d.ts.map +1 -0
- package/dist/util/executionLimiter.js +41 -0
- package/dist/util/executionLimiter.js.map +1 -0
- package/dist/util/httpClient.d.ts +116 -0
- package/dist/util/httpClient.d.ts.map +1 -0
- package/dist/util/httpClient.js +434 -0
- package/dist/util/httpClient.js.map +1 -0
- package/dist/util/logger.d.ts +7 -0
- package/dist/util/logger.d.ts.map +1 -0
- package/dist/util/logger.js +25 -0
- package/dist/util/logger.js.map +1 -0
- package/dist/util/quotas.d.ts +13 -0
- package/dist/util/quotas.d.ts.map +1 -0
- package/dist/util/quotas.js +29 -0
- package/dist/util/quotas.js.map +1 -0
- package/dist/util/tokenBucket.d.ts +11 -0
- package/dist/util/tokenBucket.d.ts.map +1 -0
- package/dist/util/tokenBucket.js +30 -0
- package/dist/util/tokenBucket.js.map +1 -0
- package/dist/util/upstreamGate.d.ts +36 -0
- package/dist/util/upstreamGate.d.ts.map +1 -0
- package/dist/util/upstreamGate.js +112 -0
- package/dist/util/upstreamGate.js.map +1 -0
- package/dist/web/THIRD_PARTY_NOTICES.txt +1940 -0
- package/dist/web/assets/blen-logo-BKJFojyj.png +0 -0
- package/dist/web/assets/index-Dbbu8lq3.js +317 -0
- package/dist/web/assets/index-DkKvyv-b.css +2 -0
- package/dist/web/index.html +14 -0
- package/package.json +127 -4
- package/schema/odp.json +743 -0
- package/schema/tsdr.json +129 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared admission control for one upstream API: at most `concurrency` requests in flight,
|
|
3
|
+
* started no faster than `ratePerSec` (bursting to `burst`). Every user's calls leave from
|
|
4
|
+
* the same server IP, so this is the server's whole footprint on that API. Callers wait
|
|
5
|
+
* for a slot instead of failing, but never longer than `maxWaitMs`; a 429 pauses new
|
|
6
|
+
* starts so concurrent callers back off together.
|
|
7
|
+
*/
|
|
8
|
+
export declare class UpstreamGate {
|
|
9
|
+
private readonly opts;
|
|
10
|
+
private active;
|
|
11
|
+
private tokens;
|
|
12
|
+
private updatedAt;
|
|
13
|
+
private pausedUntil;
|
|
14
|
+
private readonly queue;
|
|
15
|
+
private wake?;
|
|
16
|
+
constructor(opts: {
|
|
17
|
+
concurrency: number;
|
|
18
|
+
ratePerSec: number;
|
|
19
|
+
burst: number;
|
|
20
|
+
maxWaitMs: number;
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* Resolves with a release function once the request may start. Rejects with AbortError if
|
|
24
|
+
* `signal` aborts while queued, and immediately if the gate is paused for longer than maxWaitMs
|
|
25
|
+
* (an upstream told us not to call before then; queueing would only delay the failure).
|
|
26
|
+
*/
|
|
27
|
+
acquire(signal?: AbortSignal): Promise<() => void>;
|
|
28
|
+
/** No request in flight or queued, and not paused: safe to forget this gate. */
|
|
29
|
+
idle(): boolean;
|
|
30
|
+
/** Milliseconds until the gate admits requests again after a pause (0 if not paused). */
|
|
31
|
+
pausedForMs(): number;
|
|
32
|
+
/** Stop starting requests for `ms` (an upstream 429 asked us to slow down). */
|
|
33
|
+
pause(ms: number): void;
|
|
34
|
+
private drain;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=upstreamGate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upstreamGate.d.ts","sourceRoot":"","sources":["../../src/util/upstreamGate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,qBAAa,YAAY;IASrB,OAAO,CAAC,QAAQ,CAAC,IAAI;IARvB,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAc;IAC/B,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8G;IACpI,OAAO,CAAC,IAAI,CAAC,CAAiB;IAE9B,YACmB,IAAI,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,EAGrG;IAED;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,IAAI,CAAC,CAgCjD;IAED,gFAAgF;IAChF,IAAI,IAAI,OAAO,CAEd;IAED,yFAAyF;IACzF,WAAW,IAAI,MAAM,CAEpB;IAED,+EAA+E;IAC/E,KAAK,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAOtB;IAED,OAAO,CAAC,KAAK;CAiCd"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared admission control for one upstream API: at most `concurrency` requests in flight,
|
|
3
|
+
* started no faster than `ratePerSec` (bursting to `burst`). Every user's calls leave from
|
|
4
|
+
* the same server IP, so this is the server's whole footprint on that API. Callers wait
|
|
5
|
+
* for a slot instead of failing, but never longer than `maxWaitMs`; a 429 pauses new
|
|
6
|
+
* starts so concurrent callers back off together.
|
|
7
|
+
*/
|
|
8
|
+
export class UpstreamGate {
|
|
9
|
+
opts;
|
|
10
|
+
active = 0;
|
|
11
|
+
tokens;
|
|
12
|
+
updatedAt = Date.now();
|
|
13
|
+
pausedUntil = 0;
|
|
14
|
+
queue = [];
|
|
15
|
+
wake;
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
this.opts = opts;
|
|
18
|
+
this.tokens = opts.burst;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Resolves with a release function once the request may start. Rejects with AbortError if
|
|
22
|
+
* `signal` aborts while queued, and immediately if the gate is paused for longer than maxWaitMs
|
|
23
|
+
* (an upstream told us not to call before then; queueing would only delay the failure).
|
|
24
|
+
*/
|
|
25
|
+
acquire(signal) {
|
|
26
|
+
return new Promise((resolve, reject) => {
|
|
27
|
+
if (signal?.aborted)
|
|
28
|
+
return reject(Object.assign(new Error('aborted while waiting for an upstream slot'), { name: 'AbortError' }));
|
|
29
|
+
const pausedFor = this.pausedUntil - Date.now();
|
|
30
|
+
if (pausedFor > this.opts.maxWaitMs) {
|
|
31
|
+
return reject(Object.assign(new Error(`upstream asked us to wait ${Math.ceil(pausedFor / 1000)}s`), { name: 'Paused', retryAfterMs: pausedFor }));
|
|
32
|
+
}
|
|
33
|
+
const waiter = {
|
|
34
|
+
resolve: (release) => { signal?.removeEventListener('abort', onAbort); resolve(release); },
|
|
35
|
+
reject,
|
|
36
|
+
timer: setTimeout(() => {
|
|
37
|
+
remove();
|
|
38
|
+
reject(new Error(`waited ${this.opts.maxWaitMs}ms for an upstream slot`));
|
|
39
|
+
}, this.opts.maxWaitMs),
|
|
40
|
+
};
|
|
41
|
+
const remove = () => {
|
|
42
|
+
const i = this.queue.indexOf(waiter);
|
|
43
|
+
if (i >= 0)
|
|
44
|
+
this.queue.splice(i, 1);
|
|
45
|
+
signal?.removeEventListener('abort', onAbort);
|
|
46
|
+
// The wake timer exists only for waiters; with none left it must not keep the process alive.
|
|
47
|
+
if (!this.queue.length && this.wake) {
|
|
48
|
+
clearTimeout(this.wake);
|
|
49
|
+
this.wake = undefined;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
const onAbort = () => {
|
|
53
|
+
clearTimeout(waiter.timer);
|
|
54
|
+
remove();
|
|
55
|
+
reject(Object.assign(new Error('aborted while waiting for an upstream slot'), { name: 'AbortError' }));
|
|
56
|
+
};
|
|
57
|
+
signal?.addEventListener('abort', onAbort, { once: true });
|
|
58
|
+
waiter.timer.unref?.();
|
|
59
|
+
this.queue.push(waiter);
|
|
60
|
+
this.drain();
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/** No request in flight or queued, and not paused: safe to forget this gate. */
|
|
64
|
+
idle() {
|
|
65
|
+
return this.active === 0 && this.queue.length === 0 && this.pausedUntil <= Date.now();
|
|
66
|
+
}
|
|
67
|
+
/** Milliseconds until the gate admits requests again after a pause (0 if not paused). */
|
|
68
|
+
pausedForMs() {
|
|
69
|
+
return Math.max(0, this.pausedUntil - Date.now());
|
|
70
|
+
}
|
|
71
|
+
/** Stop starting requests for `ms` (an upstream 429 asked us to slow down). */
|
|
72
|
+
pause(ms) {
|
|
73
|
+
this.pausedUntil = Math.max(this.pausedUntil, Date.now() + ms);
|
|
74
|
+
// Resume at the steady rate: no burst accrues while paused, so the pause does not
|
|
75
|
+
// end with `concurrency` requests hitting the API that just throttled us.
|
|
76
|
+
this.tokens = Math.min(this.tokens, 1);
|
|
77
|
+
this.updatedAt = Math.max(this.updatedAt, this.pausedUntil);
|
|
78
|
+
this.drain();
|
|
79
|
+
}
|
|
80
|
+
drain() {
|
|
81
|
+
while (this.queue.length && this.active < this.opts.concurrency) {
|
|
82
|
+
const now = Date.now();
|
|
83
|
+
// updatedAt sits in the future during a pause; accrue nothing until it passes.
|
|
84
|
+
if (now > this.updatedAt) {
|
|
85
|
+
this.tokens = Math.min(this.opts.burst, this.tokens + ((now - this.updatedAt) / 1000) * this.opts.ratePerSec);
|
|
86
|
+
this.updatedAt = now;
|
|
87
|
+
}
|
|
88
|
+
const waitMs = Math.max(this.pausedUntil - now, this.tokens >= 1 ? 0 : ((1 - this.tokens) / this.opts.ratePerSec) * 1000);
|
|
89
|
+
if (waitMs > 0) {
|
|
90
|
+
if (!this.wake) {
|
|
91
|
+
// Not unref'd: a caller is waiting on this timer, so the process must stay alive for it
|
|
92
|
+
// (a script or MCPB host with nothing else pending would otherwise exit mid-request).
|
|
93
|
+
this.wake = setTimeout(() => { this.wake = undefined; this.drain(); }, Math.ceil(waitMs));
|
|
94
|
+
}
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
this.tokens -= 1;
|
|
98
|
+
this.active++;
|
|
99
|
+
const waiter = this.queue.shift();
|
|
100
|
+
clearTimeout(waiter.timer);
|
|
101
|
+
let released = false;
|
|
102
|
+
waiter.resolve(() => {
|
|
103
|
+
if (released)
|
|
104
|
+
return;
|
|
105
|
+
released = true;
|
|
106
|
+
this.active--;
|
|
107
|
+
this.drain();
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
//# sourceMappingURL=upstreamGate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"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