pagewing-mcp 0.1.0 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/dist/cli.js +41 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -35,8 +35,8 @@ agent ──MCP──▶ pagewing-mcp ──socket──▶ helper ──native
35
35
 
36
36
  Tools: `open_tab`, `list_tabs`, `read_page`, `observe_page`, `act_on_page`, `run_script`, `screenshot_page`,
37
37
  `close_tab`. Each agent session works in a Chrome tab group of its own, named after the agent, and reaches only the
38
- tabs in it. The tools do not ask you before acting; Off in Settings > Tools still applies, and turning the switch off
39
- ends every session.
38
+ tabs in it. Tabs you open from an agent's tab, or drag into its group, join it, and the agent can use them. The tools
39
+ do not ask you before acting; Off in Settings > Tools still applies, and turning the switch off ends every session.
40
40
 
41
41
  ## Commands
42
42
 
package/dist/cli.js CHANGED
@@ -38,6 +38,7 @@ function readLines(stream, each, maxBytes, tooLong) {
38
38
  each(JSON.parse(line));
39
39
  } catch {
40
40
  }
41
+ if (stream.destroyed) return;
41
42
  }
42
43
  if (Buffer.byteLength(pending) > maxBytes) {
43
44
  stream.removeAllListeners("data");
@@ -220,6 +221,45 @@ function uninstall(dataDirs = []) {
220
221
  // src/server.ts
221
222
  import { connect as connectSocket } from "node:net";
222
223
 
224
+ // package.json
225
+ var package_default = {
226
+ name: "pagewing-mcp",
227
+ version: "0.1.1",
228
+ description: "MCP server that lets local agents, such as pi, use Pagewing's page tools in Chrome",
229
+ license: "MIT",
230
+ type: "module",
231
+ repository: {
232
+ type: "git",
233
+ url: "git+https://github.com/yzhg1983/pagewing.git",
234
+ directory: "mcp"
235
+ },
236
+ homepage: "https://github.com/yzhg1983/pagewing/tree/main/mcp#readme",
237
+ keywords: [
238
+ "mcp",
239
+ "pagewing",
240
+ "chrome",
241
+ "chrome-extension",
242
+ "browser",
243
+ "pi",
244
+ "agent"
245
+ ],
246
+ bin: {
247
+ "pagewing-mcp": "dist/cli.js"
248
+ },
249
+ files: [
250
+ "dist",
251
+ "README.md",
252
+ "LICENSE"
253
+ ],
254
+ engines: {
255
+ node: ">=20"
256
+ },
257
+ os: [
258
+ "darwin",
259
+ "linux"
260
+ ]
261
+ };
262
+
223
263
  // src/tools.ts
224
264
  var TAB = {
225
265
  type: "integer",
@@ -318,7 +358,6 @@ var TOOLS = [
318
358
  ];
319
359
 
320
360
  // src/server.ts
321
- var VERSION = "0.1.0";
322
361
  var PROTOCOLS = ["2025-06-18", "2025-03-26", "2024-11-05"];
323
362
  var INSTRUCTIONS = `Pagewing drives the user's Chrome, with their logins, in a Chrome tab group of this session. Start with open_tab; then read_page for text, observe_page and act_on_page to work the page, run_script for data, and screenshot_page for how it looks.`;
324
363
  var NOT_CONNECTED = `Pagewing is not connected. Ask the user to install Pagewing in Chrome (https://chromewebstore.google.com/detail/pagewing/${STORE_ID}), version 0.4.3 or later, open its side panel, and turn on Settings > Advanced > Local agents.`;
@@ -342,7 +381,7 @@ function serve(input, output, { connect = () => connectSocket(socketPath()), ret
342
381
  reply(id, {
343
382
  protocolVersion: asked !== void 0 && PROTOCOLS.includes(asked) ? asked : PROTOCOLS[0],
344
383
  capabilities: { tools: {} },
345
- serverInfo: { name: "pagewing", version: VERSION },
384
+ serverInfo: { name: "pagewing", version: package_default.version },
346
385
  instructions: INSTRUCTIONS
347
386
  });
348
387
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pagewing-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "MCP server that lets local agents, such as pi, use Pagewing's page tools in Chrome",
5
5
  "license": "MIT",
6
6
  "type": "module",