alterlab-mcp-server 1.11.0 → 1.11.1
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/client.js +1 -1
- package/dist/index.js +1 -1
- package/dist/shared/tool-definitions.json +4 -4
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/client.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AlterLabClient = void 0;
|
|
4
4
|
// Read version from package.json at build time is complex with ESM,
|
|
5
5
|
// so we hardcode it and keep in sync with package.json.
|
|
6
|
-
const VERSION = "1.11.
|
|
6
|
+
const VERSION = "1.11.1";
|
|
7
7
|
const MAX_RETRIES = 2;
|
|
8
8
|
class AlterLabClient {
|
|
9
9
|
apiKey;
|
package/dist/index.js
CHANGED
|
@@ -60,7 +60,7 @@ function createServer(config) {
|
|
|
60
60
|
const client = new client_js_1.AlterLabClient(config);
|
|
61
61
|
const server = new mcp_js_1.McpServer({
|
|
62
62
|
name: "alterlab",
|
|
63
|
-
version: "1.11.
|
|
63
|
+
version: "1.11.1",
|
|
64
64
|
});
|
|
65
65
|
// Register tools
|
|
66
66
|
server.tool("alterlab_scrape", (0, descriptions_js_1.toolDescription)("alterlab_scrape", scrape_js_1.scrapeDescription), scrape_js_1.scrapeSchema.shape, (params) => (0, scrape_js_1.handleScrape)(client, params));
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{
|
|
5
5
|
"name": "alterlab_scrape",
|
|
6
6
|
"summary": "Fetch any URL and return clean markdown, text, HTML, or JSON, with automatic website compatibility through 5-tier escalation",
|
|
7
|
-
"description": "Use when a normal fetch returns 403/429, a bot-protection challenge page, a CAPTCHA, or an empty JavaScript shell.
|
|
7
|
+
"description": "Fetch one URL and return its content as clean markdown, text, HTML, or JSON. Use when a normal fetch returns 403/429, a bot-protection challenge page, a CAPTCHA, or an empty JavaScript shell. Website challenges and JavaScript-heavy pages are handled automatically by a 5-tier system that starts at the cheapest tier that works and escalates only when needed. Returns markdown by default, ready for LLM context. Supports GET and POST via method, structured extraction via extraction_schema or extraction_prompt, and cost caps via cost_controls. Supports browser actions via actions, plus screenshot and generate_pdf; the response includes action_results, one entry per action with index, type, success, error, result (evaluate) and screenshot_url (screenshot actions).",
|
|
8
8
|
"inputSchema": {
|
|
9
9
|
"type": "object",
|
|
10
10
|
"properties": {
|
|
@@ -859,7 +859,7 @@
|
|
|
859
859
|
{
|
|
860
860
|
"name": "alterlab_screenshot",
|
|
861
861
|
"summary": "Capture a full-page PNG screenshot of any URL, including anti-bot-protected sites",
|
|
862
|
-
"description": "Use when a normal fetch returns 403/429, a bot-protection challenge page, a CAPTCHA, or an empty JavaScript shell.
|
|
862
|
+
"description": "Capture a full-page PNG screenshot of one URL, an image rather than text content. Use when a normal fetch returns 403/429, a bot-protection challenge page, a CAPTCHA, or an empty JavaScript shell. Works on anti-bot-protected sites, rendered in a real headless browser. Use wait_for to wait for an element and wait_until to control load timing. Pass actions (for example dismiss_consent or evaluate) to prepare the page; the screenshot is captured after they run and action_results is returned.",
|
|
863
863
|
"inputSchema": {
|
|
864
864
|
"type": "object",
|
|
865
865
|
"properties": {
|
|
@@ -1703,7 +1703,7 @@
|
|
|
1703
1703
|
{
|
|
1704
1704
|
"name": "alterlab_batch_scrape",
|
|
1705
1705
|
"summary": "Scrape 2-20 URLs in parallel and get all results back in one call, no polling required",
|
|
1706
|
-
"description": "Use when a normal fetch returns 403/429, a bot-protection challenge page, a CAPTCHA, or an empty JavaScript shell.
|
|
1706
|
+
"description": "Scrape 2-20 URLs in parallel and get every result back in one synchronous call, no polling required. Use when a normal fetch returns 403/429, a bot-protection challenge page, a CAPTCHA, or an empty JavaScript shell. Failed URLs report their error; successful ones return content. For 20+ URLs use alterlab_batch.",
|
|
1707
1707
|
"inputSchema": {
|
|
1708
1708
|
"type": "object",
|
|
1709
1709
|
"properties": {
|
|
@@ -1768,7 +1768,7 @@
|
|
|
1768
1768
|
{
|
|
1769
1769
|
"name": "alterlab_batch",
|
|
1770
1770
|
"summary": "Scrape large URL sets (20+) asynchronously with batch-ID polling",
|
|
1771
|
-
"description": "Use when a normal fetch returns 403/429, a bot-protection challenge page, a CAPTCHA, or an empty JavaScript shell.
|
|
1771
|
+
"description": "Start an asynchronous batch job for a large URL set (up to 100 per call) and poll for results later. Use when a normal fetch returns 403/429, a bot-protection challenge page, a CAPTCHA, or an empty JavaScript shell. Each URL can have its own mode, formats and extraction_schema. Returns a batch_id immediately; results are available from GET /api/v1/batch/{batch_id}.",
|
|
1772
1772
|
"inputSchema": {
|
|
1773
1773
|
"type": "object",
|
|
1774
1774
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alterlab-mcp-server",
|
|
3
3
|
"mcpName": "io.alterlab/mcp-server",
|
|
4
|
-
"version": "1.11.
|
|
4
|
+
"version": "1.11.1",
|
|
5
5
|
"description": "MCP server for web scraping, structured data extraction, and screenshots \u2014 give Claude, Cursor, Windsurf, and AI agents the ability to scrape any website with automatic anti-bot bypass",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
package/server.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-09-16/server.schema.json",
|
|
3
3
|
"name": "io.alterlab/mcp-server",
|
|
4
|
-
"version": "1.11.
|
|
4
|
+
"version": "1.11.1",
|
|
5
5
|
"description": "Web scraping MCP server — scrape, extract structured data, screenshot any site with anti-bot bypass.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://github.com/RapierCraft/alterlab-mcp-server",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "alterlab-mcp-server",
|
|
14
|
-
"version": "1.11.
|
|
14
|
+
"version": "1.11.1",
|
|
15
15
|
"runtimeHint": "node",
|
|
16
16
|
"transport": {
|
|
17
17
|
"type": "stdio"
|