mcp-scraper 0.3.21 → 0.3.22
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 +56 -1
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +1 -1
- package/dist/bin/mcp-scraper-cli.cjs +18 -1
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +18 -1
- package/dist/bin/mcp-scraper-cli.js.map +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 +1 -1
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/chunk-2IXMOXDH.js +7 -0
- package/dist/chunk-2IXMOXDH.js.map +1 -0
- package/dist/{chunk-UO252634.js → chunk-FEUCMGIJ.js} +2 -2
- package/dist/{server-K4UIE2R3.js → server-G7PVVOH3.js} +58 -3
- package/dist/server-G7PVVOH3.js.map +1 -0
- package/docs/mcp-tool-manifest.generated.json +1 -1
- package/package.json +1 -1
- package/dist/chunk-J4PSMJNZ.js +0 -7
- package/dist/chunk-J4PSMJNZ.js.map +0 -1
- package/dist/server-K4UIE2R3.js.map +0 -1
- /package/dist/{chunk-UO252634.js.map → chunk-FEUCMGIJ.js.map} +0 -0
package/dist/bin/api-server.js
CHANGED
|
@@ -17,7 +17,7 @@ loadDotEnv();
|
|
|
17
17
|
async function main() {
|
|
18
18
|
const [{ serve }, { app }, { startWorker }, { migrate }] = await Promise.all([
|
|
19
19
|
import("@hono/node-server"),
|
|
20
|
-
import("../server-
|
|
20
|
+
import("../server-G7PVVOH3.js"),
|
|
21
21
|
import("../worker-AITQTXHM.js"),
|
|
22
22
|
import("../db-EG5ETPTY.js")
|
|
23
23
|
]);
|
|
@@ -8,7 +8,7 @@ var import_promises4 = require("fs/promises");
|
|
|
8
8
|
var import_node_path3 = require("path");
|
|
9
9
|
|
|
10
10
|
// src/version.ts
|
|
11
|
-
var PACKAGE_VERSION = "0.3.
|
|
11
|
+
var PACKAGE_VERSION = "0.3.22";
|
|
12
12
|
|
|
13
13
|
// src/cli/agent-config.ts
|
|
14
14
|
function apiKeyValue(options) {
|
|
@@ -2159,6 +2159,23 @@ function buildHumanCli() {
|
|
|
2159
2159
|
result.next_step ?? "Complete checkout, then retry the MCP request."
|
|
2160
2160
|
].join("\n"), false);
|
|
2161
2161
|
});
|
|
2162
|
+
billing.command("subscribe <tier>").description("Subscribe to a plan (starter | growth | scale) via a hosted Stripe checkout link.").option("--api-key <key>", "MCP Scraper API key").option("--api-url <url>", "MCP Scraper API URL", "https://mcpscraper.dev").option("--json", "Print machine-readable JSON").option("--no-open", "Print the checkout URL without opening a browser").action(async (tier, opts) => {
|
|
2163
|
+
const result = await apiRequest("/billing/subscribe/terminal-checkout", "POST", opts, { tier: String(tier).toLowerCase() });
|
|
2164
|
+
if (opts.json) {
|
|
2165
|
+
writeOutput(result, true);
|
|
2166
|
+
return;
|
|
2167
|
+
}
|
|
2168
|
+
if (result.updated) {
|
|
2169
|
+
writeOutput(result.message ?? `Switched to ${result.tier}.`, false);
|
|
2170
|
+
return;
|
|
2171
|
+
}
|
|
2172
|
+
const opened = opts.open !== false && !!result.checkout_url && openExternalUrl(result.checkout_url);
|
|
2173
|
+
writeOutput([
|
|
2174
|
+
`Plan: ${result.label ?? tier} \u2014 $${result.monthly_usd}/mo \xB7 ${result.credits_per_month?.toLocaleString()} credits/mo \xB7 ${result.concurrency} concurrency${result.intro ? ` \xB7 ${result.intro}` : ""}`,
|
|
2175
|
+
opened ? `Opened checkout: ${result.checkout_url}` : `Checkout URL: ${result.checkout_url}`,
|
|
2176
|
+
result.next_step ?? "Complete payment in the browser."
|
|
2177
|
+
].join("\n"), false);
|
|
2178
|
+
});
|
|
2162
2179
|
const agent = program.command("agent").description("Generate AI-agent install configs and workflow prompts.");
|
|
2163
2180
|
agent.command("install <host>").description("Print or apply install/config instructions for codex, claude/claude-code, or claude-desktop.").option("--api-key <key>", "API key to place in generated config").option("--package <spec>", "npm package spec", "mcp-scraper@latest").option("--browser-profile <name>", "Default saved browser profile for browser_open sessions.").option("--save-browser-profile-changes", "Persist cookies and browser storage back to the named browser profile when sessions close").option("--apply", "Apply the config to this client when supported. For Claude Code, this upserts the user-scope mcp-scraper server.").option("--json", "Print machine-readable JSON").action(async (hostInput, opts) => {
|
|
2164
2181
|
const host = normalizeAgentHost(hostInput);
|