scrapeloop-mcp 0.11.1 → 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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/index.js +3 -1
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "scrapeloop-mcp",
3
- "version": "0.11.1",
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;
@@ -2952,7 +2954,7 @@ async function serve() {
2952
2954
  }
2953
2955
 
2954
2956
  const server = new Server(
2955
- { name: 'scrapeloop-mcp', version: '0.11.1' },
2957
+ { name: 'scrapeloop-mcp', version: PACKAGE_VERSION },
2956
2958
  { capabilities: { tools: {} } }
2957
2959
  );
2958
2960