@aluvia/sdk 1.3.0 → 1.4.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/README.md CHANGED
@@ -16,6 +16,7 @@ This SDK gives you everything you need:
16
16
  - **Adapters for every tool** — Playwright, Puppeteer, Selenium, Axios, got, and Node's fetch
17
17
  - **IP rotation and geo targeting** — rotate IPs or target specific US regions at runtime
18
18
  - **REST API wrapper** — manage connections, check usage, and build custom tooling with `AluviaApi`
19
+ - **MCP server** — for Model Context Protocol (MCP) only, use the separate package: `npm install @aluvia/mcp` and run `npx aluvia-mcp`. See [mcp/README.md](mcp/README.md) and [MCP Server Guide](docs/mcp-server-guide.md).
19
20
 
20
21
  ---
21
22
 
@@ -58,7 +59,7 @@ aluvia session start https://example.com --auto-unblock --run your-script.js
58
59
 
59
60
  ## Skills
60
61
 
61
- - Claude code skll
62
+ - Claude code skill
62
63
  - OpenClaw skill
63
64
 
64
65
  ---
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * Re-exports for @aluvia/mcp. MCP package imports from @aluvia/sdk/cli.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.captureOutput = exports.handleOpen = exports.handleGeos = exports.handleAccount = exports.handleSession = void 0;
7
+ var session_js_1 = require("./session.js");
8
+ Object.defineProperty(exports, "handleSession", { enumerable: true, get: function () { return session_js_1.handleSession; } });
9
+ var account_js_1 = require("./account.js");
10
+ Object.defineProperty(exports, "handleAccount", { enumerable: true, get: function () { return account_js_1.handleAccount; } });
11
+ var geos_js_1 = require("./geos.js");
12
+ Object.defineProperty(exports, "handleGeos", { enumerable: true, get: function () { return geos_js_1.handleGeos; } });
13
+ var open_js_1 = require("./open.js");
14
+ Object.defineProperty(exports, "handleOpen", { enumerable: true, get: function () { return open_js_1.handleOpen; } });
15
+ var mcp_helpers_js_1 = require("./mcp-helpers.js");
16
+ Object.defineProperty(exports, "captureOutput", { enumerable: true, get: function () { return mcp_helpers_js_1.captureOutput; } });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Re-exports for @aluvia/mcp. MCP package imports from @aluvia/sdk/cli.
3
+ */
4
+ export { handleSession } from "./session.js";
5
+ export { handleAccount } from "./account.js";
6
+ export { handleGeos } from "./geos.js";
7
+ export { handleOpen } from "./open.js";
8
+ export { captureOutput } from "./mcp-helpers.js";
File without changes
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Re-exports for @aluvia/mcp. MCP package imports from @aluvia/sdk/cli.
3
+ */
4
+ export { handleSession } from "./session.js";
5
+ export { handleAccount } from "./account.js";
6
+ export { handleGeos } from "./geos.js";
7
+ export { handleOpen } from "./open.js";
8
+ export { captureOutput } from "./mcp-helpers.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aluvia/sdk",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Aluvia SDK for Node.js - local smart proxy for automation workloads and AI agents",
5
5
  "license": "MIT",
6
6
  "author": "Aluvia",
@@ -22,13 +22,20 @@
22
22
  "import": "./dist/esm/index.js",
23
23
  "require": "./dist/cjs/index.js"
24
24
  },
25
+ "./cli": {
26
+ "types": "./dist/types/bin/cli-adapter.d.ts",
27
+ "import": "./dist/esm/bin/cli-adapter.js",
28
+ "require": "./dist/cjs/bin/cli-adapter.js"
29
+ },
25
30
  "./package.json": "./package.json"
26
31
  },
27
32
  "bin": {
28
33
  "aluvia": "./dist/esm/bin/cli.js",
29
- "aluvia-sdk": "./dist/esm/bin/cli.js",
30
- "aluvia-mcp": "./dist/esm/bin/mcp-server.js"
34
+ "aluvia-sdk": "./dist/esm/bin/cli.js"
31
35
  },
36
+ "workspaces": [
37
+ "mcp"
38
+ ],
32
39
  "files": [
33
40
  "dist/**/*",
34
41
  "README.md",
@@ -36,8 +43,10 @@
36
43
  ],
37
44
  "scripts": {
38
45
  "build": "tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json && node -e \"require('fs').mkdirSync('dist/cjs',{recursive:true});require('fs').writeFileSync('dist/cjs/package.json','{\\\"type\\\":\\\"commonjs\\\"}')\"",
46
+ "build:all": "npm run build && npm run build -w @aluvia/mcp",
39
47
  "prepare": "npm run build",
40
- "test": "node --import tsx --test test/integration.test.ts",
48
+ "test": "node --import tsx --test test/integration.test.ts test/mcp-smoke.test.ts",
49
+ "test:mcp": "node mcp/test-stdio.mjs",
41
50
  "lint": "prettier --check src test",
42
51
  "lint:fix": "prettier --write src test"
43
52
  },
@@ -64,11 +73,10 @@
64
73
  "typescript": "^5.9.3"
65
74
  },
66
75
  "dependencies": {
67
- "@modelcontextprotocol/sdk": "^1.26.0",
68
76
  "http-proxy-agent": "^7.0.2",
69
77
  "https-proxy-agent": "^7.0.6",
70
78
  "playwright": "^1.58.2",
71
79
  "proxy-chain": "^2.6.1",
72
80
  "undici": "^6.22.0"
73
81
  }
74
- }
82
+ }