scrapeloop-mcp 0.11.0 → 0.11.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/package.json +2 -2
- package/src/index.js +4 -2
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scrapeloop-mcp",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.2",
|
|
4
4
|
"description": "Scrapeloop MCP server - set up and run Scrapeloop end-to-end (integrations, scraping, lead database, verification, cleaners, enrichment, strategies, Instantly campaigns) from any MCP client (Claude Desktop, Cursor, ChatGPT, …).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "node --check src/index.js && node test/mcp_table_tools.mjs && node test/mcp_playbook_plans.mjs && node test/mcp_community_intent.mjs && node test/mcp_api_key_preflight.mjs && node test/mutation_retry_contract.mjs && node test/release_readiness.mjs",
|
|
7
|
+
"test": "node --check src/index.js && node test/mcp_table_tools.mjs && node test/mcp_playbook_plans.mjs && node test/mcp_community_intent.mjs && node test/mcp_api_key_preflight.mjs && node test/mutation_retry_contract.mjs && node test/release_readiness.mjs && node test/mcp_server_version.mjs",
|
|
8
8
|
"release:preflight": "node scripts/release-preflight.mjs",
|
|
9
9
|
"release:verify": "node scripts/release-installed-verify.mjs"
|
|
10
10
|
},
|
package/src/index.js
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
18
18
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
19
19
|
import { randomUUID } from 'node:crypto';
|
|
20
|
+
import { readFileSync } from 'node:fs';
|
|
20
21
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
21
22
|
import {
|
|
22
23
|
CallToolRequestSchema,
|
|
@@ -24,6 +25,7 @@ import {
|
|
|
24
25
|
} from '@modelcontextprotocol/sdk/types.js';
|
|
25
26
|
import { MUTATION_POLICIES, RETRY_CONTRACT_COPY } from './mutation-policies.js';
|
|
26
27
|
|
|
28
|
+
const PACKAGE_VERSION = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version;
|
|
27
29
|
const API_KEY = process.env.SCRAPELOOP_API_KEY;
|
|
28
30
|
const BASE = (process.env.SCRAPELOOP_API_URL || 'https://api.scrapeloop.com').replace(/\/$/, '');
|
|
29
31
|
const TIMEOUT_MS = Number(process.env.SCRAPELOOP_TIMEOUT_MS) || 30000;
|
|
@@ -574,7 +576,7 @@ const TOOLS = {
|
|
|
574
576
|
run: () => api('GET', '/jobs'),
|
|
575
577
|
},
|
|
576
578
|
get_job: {
|
|
577
|
-
def: { description: 'Get one job with its execution steps (poll this for scrape progress). A scrape job carries `delivery`: how many rows were found, kept, new, already yours, and added to its Table, why rows were left out, and whether adding them to the Table worked.', inputSchema: obj({ job_id: S }, ['job_id']) },
|
|
579
|
+
def: { description: 'Get one job with its execution steps (poll this for scrape progress). A scrape job carries `delivery`: how many rows were found, kept, new, already yours, and added to its Table, why rows were left out, and whether adding them to the Table worked. New native Maps receipts also include search_coverage: complete, partial, or missing proof. Job completion alone never proves a whole place was covered.', inputSchema: obj({ job_id: S }, ['job_id']) },
|
|
578
580
|
run: (a) => api('GET', `/jobs/${enc(a.job_id)}`),
|
|
579
581
|
},
|
|
580
582
|
cancel_job: {
|
|
@@ -2952,7 +2954,7 @@ async function serve() {
|
|
|
2952
2954
|
}
|
|
2953
2955
|
|
|
2954
2956
|
const server = new Server(
|
|
2955
|
-
{ name: 'scrapeloop-mcp', version:
|
|
2957
|
+
{ name: 'scrapeloop-mcp', version: PACKAGE_VERSION },
|
|
2956
2958
|
{ capabilities: { tools: {} } }
|
|
2957
2959
|
);
|
|
2958
2960
|
|