mcp-scraper 0.32.3 → 0.33.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 +1 -1
- package/dist/bin/api-server.cjs +13 -15
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +2 -2
- package/dist/bin/mcp-scraper-cli.cjs +5 -5
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +2 -2
- package/dist/bin/mcp-scraper-install.cjs +1 -1
- package/dist/bin/mcp-scraper-install.cjs.map +1 -1
- package/dist/bin/mcp-scraper-install.js +1 -1
- package/dist/bin/mcp-stdio-server.cjs +6 -6
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/bin/paa-harvest.js +1 -1
- package/dist/{chunk-MKZIL4EA.js → chunk-AT2PFWHW.js} +5 -5
- package/dist/chunk-AT2PFWHW.js.map +1 -0
- package/dist/{chunk-AEMABLEL.js → chunk-ERORC7AP.js} +1 -3
- package/dist/chunk-IASKABFL.js +7 -0
- package/dist/chunk-IASKABFL.js.map +1 -0
- package/dist/{chunk-GNRHBIYZ.js → chunk-JURXY3DP.js} +7 -7
- package/dist/chunk-JURXY3DP.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{server-NHLEIKDZ.js → server-RKAKXRAR.js} +9 -12
- package/dist/server-RKAKXRAR.js.map +1 -0
- package/dist/{worker-ZZCZNY3R.js → worker-JU5FX3NE.js} +2 -2
- package/docs/adr/0003-waive-unrecoverable-scheduled-model-cost.md +22 -0
- package/docs/adr/README.md +1 -0
- package/docs/mcp-tool-manifest.generated.json +7 -12
- package/package.json +1 -1
- package/dist/chunk-GNRHBIYZ.js.map +0 -1
- package/dist/chunk-MKZIL4EA.js.map +0 -1
- package/dist/chunk-XF46AB5C.js +0 -7
- package/dist/chunk-XF46AB5C.js.map +0 -1
- package/dist/server-NHLEIKDZ.js.map +0 -1
- /package/dist/{chunk-AEMABLEL.js.map → chunk-ERORC7AP.js.map} +0 -0
- /package/dist/{worker-ZZCZNY3R.js.map → worker-JU5FX3NE.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-SDHPQTFM.js";
|
|
7
7
|
import {
|
|
8
8
|
harvest
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ERORC7AP.js";
|
|
10
10
|
import {
|
|
11
11
|
browserServiceApiKey,
|
|
12
12
|
runWithCostContext
|
|
@@ -139,4 +139,4 @@ export {
|
|
|
139
139
|
startWorker,
|
|
140
140
|
tickOnce
|
|
141
141
|
};
|
|
142
|
-
//# sourceMappingURL=worker-
|
|
142
|
+
//# sourceMappingURL=worker-JU5FX3NE.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ADR-0003: Waive unrecoverable scheduled model cost during repair
|
|
2
|
+
|
|
3
|
+
**Status:** Accepted
|
|
4
|
+
|
|
5
|
+
**Date:** 2026-07-22
|
|
6
|
+
|
|
7
|
+
## Context
|
|
8
|
+
|
|
9
|
+
An agent-mode scheduled run completed provider/model work on 2026-07-14, but OpenRouter did not return a model-cost value. The 75-Credit base charge was already captured. Its settlement remained `cost_pending`, which correctly prevented an unverified model delta from being guessed but also blocked every later scheduled run for the account. The original authorization token and exact vendor cost are not recoverable.
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
|
|
13
|
+
For this historical repair, preserve the captured base charge, waive the unknown model-cost delta, and close the settlement and authorization as settled with an explicit `model_cost_unavailable_waived` audit reason. Do not invent or estimate a vendor cost.
|
|
14
|
+
|
|
15
|
+
Future runs continue to require exact reported OpenRouter cost under the existing billing contract. A new missing-cost occurrence must retain enough durable provider evidence for reconciliation or be explicitly waived by an audited operator repair; it must never be silently estimated.
|
|
16
|
+
|
|
17
|
+
## Consequences
|
|
18
|
+
|
|
19
|
+
- The account is no longer permanently blocked by an unrecoverable historical delta.
|
|
20
|
+
- MCP Scraper absorbs the unknown model expense for this run.
|
|
21
|
+
- The repair remains visible in billing-event metadata and preserves the original base-charge receipt.
|
|
22
|
+
- A productized recovery path is still needed if missing provider cost recurs.
|
package/docs/adr/README.md
CHANGED
|
@@ -10,3 +10,4 @@ Write one when a decision is hard to reverse, surprising, or encodes a constrain
|
|
|
10
10
|
## Index
|
|
11
11
|
- [0001 — In-page API interception for anti-bot scraping (Facebook Ad Library)](./0001-in-page-graphql-interception-for-anti-bot-scraping.md)
|
|
12
12
|
- [0002 — Hybrid Smart RAG retrieval for memory vaults](./0002-hybrid-smart-rag-vault-retrieval.md)
|
|
13
|
+
- [0003 — Waive unrecoverable scheduled model cost during repair](./0003-waive-unrecoverable-scheduled-model-cost.md)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-07-
|
|
2
|
+
"generatedAt": "2026-07-22T17:24:08.984Z",
|
|
3
3
|
"generatedFrom": "dist/bin/mcp-stdio-server.js",
|
|
4
4
|
"serverInfo": {
|
|
5
5
|
"name": "mcp-scraper",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.33.0"
|
|
7
7
|
},
|
|
8
8
|
"counts": {
|
|
9
9
|
"unified_stdio": 166
|
|
@@ -4622,12 +4622,11 @@
|
|
|
4622
4622
|
"proxyMode": {
|
|
4623
4623
|
"type": "string",
|
|
4624
4624
|
"enum": [
|
|
4625
|
-
"location",
|
|
4626
4625
|
"configured",
|
|
4627
4626
|
"none"
|
|
4628
4627
|
],
|
|
4629
4628
|
"default": "none",
|
|
4630
|
-
"description": "Leave unset
|
|
4629
|
+
"description": "Leave unset for clean egress (the default). Country/region localization comes from gl/hl plus the city or region in the query — not from a proxy."
|
|
4631
4630
|
},
|
|
4632
4631
|
"proxyZip": {
|
|
4633
4632
|
"type": "string",
|
|
@@ -6294,12 +6293,11 @@
|
|
|
6294
6293
|
"proxyMode": {
|
|
6295
6294
|
"type": "string",
|
|
6296
6295
|
"enum": [
|
|
6297
|
-
"location",
|
|
6298
6296
|
"configured",
|
|
6299
6297
|
"none"
|
|
6300
6298
|
],
|
|
6301
6299
|
"default": "none",
|
|
6302
|
-
"description": "Proxy behavior per city search. Leave unset for the default route (stealth browser on the managed ISP proxy, retried fresh on a Google block).
|
|
6300
|
+
"description": "Proxy behavior per city search. Leave unset for the default route (stealth browser on the managed ISP proxy, retried fresh on a Google block). Country/region localization comes from the city or region in the query plus gl/hl — not from a proxy."
|
|
6303
6301
|
},
|
|
6304
6302
|
"proxyZip": {
|
|
6305
6303
|
"type": "string",
|
|
@@ -9791,12 +9789,11 @@
|
|
|
9791
9789
|
"proxyMode": {
|
|
9792
9790
|
"type": "string",
|
|
9793
9791
|
"enum": [
|
|
9794
|
-
"location",
|
|
9795
9792
|
"configured",
|
|
9796
9793
|
"none"
|
|
9797
9794
|
],
|
|
9798
9795
|
"default": "none",
|
|
9799
|
-
"description": "Leave unset
|
|
9796
|
+
"description": "Leave unset for clean egress (the default). Country/region localization comes from gl/hl plus the city or region in the query — not from a proxy."
|
|
9800
9797
|
},
|
|
9801
9798
|
"proxyZip": {
|
|
9802
9799
|
"type": "string",
|
|
@@ -12512,12 +12509,11 @@
|
|
|
12512
12509
|
"proxyMode": {
|
|
12513
12510
|
"type": "string",
|
|
12514
12511
|
"enum": [
|
|
12515
|
-
"location",
|
|
12516
12512
|
"configured",
|
|
12517
12513
|
"none"
|
|
12518
12514
|
],
|
|
12519
12515
|
"default": "none",
|
|
12520
|
-
"description": "Leave unset for the default route (stealth browser on the managed ISP proxy, retried on a fresh session when Google blocks).
|
|
12516
|
+
"description": "Leave unset for the default route (stealth browser on the managed ISP proxy, retried on a fresh session when Google blocks). Country/region localization comes from the city or region in the query plus gl/hl — not from a proxy."
|
|
12521
12517
|
},
|
|
12522
12518
|
"proxyZip": {
|
|
12523
12519
|
"type": "string",
|
|
@@ -17479,12 +17475,11 @@
|
|
|
17479
17475
|
"proxyMode": {
|
|
17480
17476
|
"type": "string",
|
|
17481
17477
|
"enum": [
|
|
17482
|
-
"location",
|
|
17483
17478
|
"configured",
|
|
17484
17479
|
"none"
|
|
17485
17480
|
],
|
|
17486
17481
|
"default": "none",
|
|
17487
|
-
"description": "Leave unset
|
|
17482
|
+
"description": "Leave unset for clean egress (the default). Country/region localization comes from gl/hl plus the city or region in the query — not from a proxy."
|
|
17488
17483
|
},
|
|
17489
17484
|
"proxyZip": {
|
|
17490
17485
|
"type": "string",
|