mcp-scraper 0.4.14 → 0.5.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/dist/bin/api-server.cjs +14 -13
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +2 -2
- package/dist/bin/mcp-scraper-cli.cjs +1 -1
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +1 -1
- 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 +269 -3
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +3 -2
- package/dist/bin/mcp-stdio-server.js.map +1 -1
- package/dist/chunk-3RTPEQJC.js +7 -0
- package/dist/chunk-3RTPEQJC.js.map +1 -0
- package/dist/{chunk-SIPXEFTR.js → chunk-APJO2XV5.js} +6 -6
- package/dist/chunk-APJO2XV5.js.map +1 -0
- package/dist/{chunk-VQV7MB2S.js → chunk-BL7BBSYF.js} +2 -2
- package/dist/{chunk-XZ2GPRCM.js → chunk-J4T5OSCF.js} +7 -4
- package/dist/chunk-J4T5OSCF.js.map +1 -0
- package/dist/{server-TGORO4AJ.js → server-Z4MEISH5.js} +13 -13
- package/dist/server-Z4MEISH5.js.map +1 -0
- package/dist/{site-extract-repository-6X2C7RLF.js → site-extract-repository-U476J44K.js} +3 -3
- package/dist/{worker-WCSKUAOT.js → worker-KJZ3ZN2N.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-OL65BO4S.js +0 -7
- package/dist/chunk-OL65BO4S.js.map +0 -1
- package/dist/chunk-SIPXEFTR.js.map +0 -1
- package/dist/chunk-XZ2GPRCM.js.map +0 -1
- package/dist/server-TGORO4AJ.js.map +0 -1
- /package/dist/{chunk-VQV7MB2S.js.map → chunk-BL7BBSYF.js.map} +0 -0
- /package/dist/{site-extract-repository-6X2C7RLF.js.map → site-extract-repository-U476J44K.js.map} +0 -0
- /package/dist/{worker-WCSKUAOT.js.map → worker-KJZ3ZN2N.js.map} +0 -0
package/dist/bin/api-server.cjs
CHANGED
|
@@ -8013,16 +8013,16 @@ var init_rates = __esm({
|
|
|
8013
8013
|
browser_minute: 12e3,
|
|
8014
8014
|
reddit_thread: 3e3,
|
|
8015
8015
|
reddit_comment: 200,
|
|
8016
|
-
video_analysis:
|
|
8016
|
+
video_analysis: 666700,
|
|
8017
8017
|
trustpilot_reviews: 500,
|
|
8018
8018
|
trustpilot_review: 100,
|
|
8019
8019
|
g2_reviews: 500,
|
|
8020
|
-
g2_review:
|
|
8020
|
+
g2_review: 200,
|
|
8021
8021
|
diff_page: 100
|
|
8022
8022
|
};
|
|
8023
8023
|
MC_PER_BROWSER_MS = MC_COSTS.browser_minute / 6e4;
|
|
8024
8024
|
BROWSER_OPEN_MIN_BALANCE_MC = 1e3;
|
|
8025
|
-
MC_PER_CREDIT =
|
|
8025
|
+
MC_PER_CREDIT = 100;
|
|
8026
8026
|
CREDIT_COST_CATALOG = [
|
|
8027
8027
|
{
|
|
8028
8028
|
key: "serp",
|
|
@@ -8242,8 +8242,8 @@ var init_rates = __esm({
|
|
|
8242
8242
|
CONCURRENCY_PRICE_ID = "price_1Ta1NRS8aAcsk3TGwsRnYbix";
|
|
8243
8243
|
SUBSCRIPTION_TIERS = {
|
|
8244
8244
|
"price_1TmiHRS8aAcsk3TGwmSNfNIa": { tier: "starter", label: "Starter", price_id: "price_1TmiHRS8aAcsk3TGwmSNfNIa", monthly_usd: 12, credits_mc: 8e6, concurrency: 3, intro_coupon: "mcp-starter-1dollar-intro-12" },
|
|
8245
|
-
"
|
|
8246
|
-
"
|
|
8245
|
+
"price_1TrgihS8aAcsk3TG5cglrq4D": { tier: "growth", label: "Growth", price_id: "price_1TrgihS8aAcsk3TG5cglrq4D", monthly_usd: 40, credits_mc: 26666700, concurrency: 10, intro_coupon: null },
|
|
8246
|
+
"price_1TrgihS8aAcsk3TG4HnG4gbY": { tier: "scale", label: "Scale", price_id: "price_1TrgihS8aAcsk3TG4HnG4gbY", monthly_usd: 100, credits_mc: 8e7, concurrency: 20, intro_coupon: null }
|
|
8247
8247
|
};
|
|
8248
8248
|
SUBSCRIPTION_TIER_BY_KEY = Object.fromEntries(
|
|
8249
8249
|
Object.values(SUBSCRIPTION_TIERS).map((t) => [t.tier, t])
|
|
@@ -20519,7 +20519,7 @@ function formatCreditsInfo(raw, input) {
|
|
|
20519
20519
|
return `| ${c.label} | ${c.credits} | ${c.unit}${notes} |`;
|
|
20520
20520
|
}).join("\n");
|
|
20521
20521
|
const ledgerRows = ledger.map((row) => {
|
|
20522
|
-
const credits = row.amount_mc /
|
|
20522
|
+
const credits = row.amount_mc / MC_PER_CREDIT;
|
|
20523
20523
|
return `| ${row.created_at} | ${row.operation} | ${credits} | ${row.description ?? ""} |`;
|
|
20524
20524
|
}).join("\n");
|
|
20525
20525
|
const matchedSection = matched ? `
|
|
@@ -20569,7 +20569,7 @@ ${ledgerRows}` : ""
|
|
|
20569
20569
|
ledger: ledger.map((row) => ({
|
|
20570
20570
|
createdAt: String(row.created_at ?? ""),
|
|
20571
20571
|
operation: String(row.operation ?? ""),
|
|
20572
|
-
credits: row.amount_mc /
|
|
20572
|
+
credits: row.amount_mc / MC_PER_CREDIT,
|
|
20573
20573
|
description: row.description ?? null
|
|
20574
20574
|
})),
|
|
20575
20575
|
concurrency: concurrencyRaw && upgradeRaw ? {
|
|
@@ -21368,6 +21368,7 @@ var init_mcp_response_formatter = __esm({
|
|
|
21368
21368
|
init_seo_issues();
|
|
21369
21369
|
init_image_audit();
|
|
21370
21370
|
init_report_artifact_offload();
|
|
21371
|
+
init_rates();
|
|
21371
21372
|
INLINE_BUDGET_BYTES = Number(process.env.MCP_SCRAPER_INLINE_BUDGET ?? 5e4);
|
|
21372
21373
|
STRUCTURED_ARRAY_CAP = 25;
|
|
21373
21374
|
reportSavingEnabled = true;
|
|
@@ -27202,7 +27203,7 @@ var init_serp_intelligence_routes = __esm({
|
|
|
27202
27203
|
kernelApiKey: browserServiceApiKey(),
|
|
27203
27204
|
kernelProxyId: browserServiceProxyId(),
|
|
27204
27205
|
signal: c.req.raw.signal,
|
|
27205
|
-
billing: { creditsUsed: cost /
|
|
27206
|
+
billing: { creditsUsed: cost / MC_PER_CREDIT }
|
|
27206
27207
|
});
|
|
27207
27208
|
await logRequestEvent({
|
|
27208
27209
|
userId: user.id,
|
|
@@ -27304,7 +27305,7 @@ var PACKAGE_VERSION;
|
|
|
27304
27305
|
var init_version = __esm({
|
|
27305
27306
|
"src/version.ts"() {
|
|
27306
27307
|
"use strict";
|
|
27307
|
-
PACKAGE_VERSION = "0.
|
|
27308
|
+
PACKAGE_VERSION = "0.5.0";
|
|
27308
27309
|
}
|
|
27309
27310
|
});
|
|
27310
27311
|
|
|
@@ -38744,7 +38745,7 @@ var init_server = __esm({
|
|
|
38744
38745
|
api_key: user.key_active ? user.api_key : null,
|
|
38745
38746
|
created_at: user.created_at,
|
|
38746
38747
|
balance_mc: user.balance_mc,
|
|
38747
|
-
balance_credits: user.balance_mc /
|
|
38748
|
+
balance_credits: user.balance_mc / MC_PER_CREDIT,
|
|
38748
38749
|
extra_concurrency_slots: user.extra_concurrency_slots,
|
|
38749
38750
|
concurrency_limit: concurrencyLimitForUser(user),
|
|
38750
38751
|
has_concurrency_sub: !!user.concurrency_stripe_sub_id,
|
|
@@ -39856,7 +39857,7 @@ var init_server = __esm({
|
|
|
39856
39857
|
tier: tier.tier,
|
|
39857
39858
|
label: tier.label,
|
|
39858
39859
|
monthly_usd: tier.monthly_usd,
|
|
39859
|
-
credits_per_month: tier.credits_mc /
|
|
39860
|
+
credits_per_month: tier.credits_mc / MC_PER_CREDIT,
|
|
39860
39861
|
concurrency: tier.concurrency,
|
|
39861
39862
|
intro: tier.intro_coupon ? "$1 first month" : null,
|
|
39862
39863
|
next_step: "Open checkout_url in a browser to complete payment."
|
|
@@ -39886,7 +39887,7 @@ var init_server = __esm({
|
|
|
39886
39887
|
const freeCredits = await getFreeCreditBreakdown(user.id);
|
|
39887
39888
|
return c.json({
|
|
39888
39889
|
balance_mc: balanceMc,
|
|
39889
|
-
balance_credits: balanceMc /
|
|
39890
|
+
balance_credits: balanceMc / MC_PER_CREDIT,
|
|
39890
39891
|
free_credits: freeCredits,
|
|
39891
39892
|
ledger
|
|
39892
39893
|
});
|
|
@@ -39908,7 +39909,7 @@ var init_server = __esm({
|
|
|
39908
39909
|
})) : void 0;
|
|
39909
39910
|
return c.json({
|
|
39910
39911
|
balance_mc: balanceMc,
|
|
39911
|
-
balance_credits: balanceMc /
|
|
39912
|
+
balance_credits: balanceMc / MC_PER_CREDIT,
|
|
39912
39913
|
item: body.item ?? null,
|
|
39913
39914
|
matched_cost: matchedCost ? (({ aliases, ...cost }) => cost)(matchedCost) : null,
|
|
39914
39915
|
costs,
|