pagerig 0.1.0 → 0.1.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/README.md +4 -4
- package/SECURITY.md +1 -1
- package/mcp-server.mjs +2 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# PageRig
|
|
2
2
|
|
|
3
|
-
[](https://github.com/hxhy00/PageRig/actions/workflows/ci.yml)
|
|
4
4
|
[](https://www.npmjs.com/package/pagerig)
|
|
5
5
|
[](LICENSE)
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ PageRig 由一个 Chrome 扩展和一个本地 MCP server 组成。MCP server
|
|
|
12
12
|
|
|
13
13
|
## 快速开始
|
|
14
14
|
|
|
15
|
-
1. 从 [GitHub Releases](https://github.com/hxhy00/
|
|
15
|
+
1. 从 [GitHub Releases](https://github.com/hxhy00/PageRig/releases) 下载
|
|
16
16
|
`pagerig-extension-vX.Y.Z.zip`,解压后在 `chrome://extensions` 里用
|
|
17
17
|
**加载已解压的扩展程序** 加载。
|
|
18
18
|
2. 在 MCP 客户端里配置 `npx -y pagerig`,或使用预编译二进制。
|
|
@@ -58,7 +58,7 @@ HTTP 命令接口,也没有 CLI。浏览器操作全部在扩展里执行,MC
|
|
|
58
58
|
|
|
59
59
|
### 从 Release 安装(推荐)
|
|
60
60
|
|
|
61
|
-
1. 打开 [Releases](https://github.com/hxhy00/
|
|
61
|
+
1. 打开 [Releases](https://github.com/hxhy00/PageRig/releases);
|
|
62
62
|
2. 下载最新的 `pagerig-extension-vX.Y.Z.zip`;
|
|
63
63
|
3. 解压到一个固定目录;
|
|
64
64
|
4. 打开 `chrome://extensions`,开启右上角 **开发者模式**;
|
|
@@ -68,7 +68,7 @@ HTTP 命令接口,也没有 CLI。浏览器操作全部在扩展里执行,MC
|
|
|
68
68
|
### 从源码安装
|
|
69
69
|
|
|
70
70
|
```bash
|
|
71
|
-
git clone https://github.com/hxhy00/
|
|
71
|
+
git clone https://github.com/hxhy00/PageRig.git
|
|
72
72
|
cd pagerig
|
|
73
73
|
npm install
|
|
74
74
|
```
|
package/SECURITY.md
CHANGED
package/mcp-server.mjs
CHANGED
|
@@ -10,9 +10,10 @@ import { writeFile } from 'node:fs/promises';
|
|
|
10
10
|
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
11
11
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
12
12
|
import { z } from 'zod';
|
|
13
|
+
import pkg from './package.json' with { type: 'json' };
|
|
13
14
|
import { startBridge } from './lib/bridge.mjs';
|
|
14
15
|
|
|
15
|
-
const server = new McpServer({ name: 'pagerig', version:
|
|
16
|
+
const server = new McpServer({ name: 'pagerig', version: pkg.version });
|
|
16
17
|
const port = Number(process.env.BB_PORT || 17321);
|
|
17
18
|
|
|
18
19
|
let bridge = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pagerig",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Local bridge that lets an agent read and drive the user's already-logged-in Chrome.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"node": ">=22"
|
|
9
9
|
},
|
|
10
10
|
"bin": {
|
|
11
|
-
"pagerig": "
|
|
11
|
+
"pagerig": "mcp-server.mjs"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
14
|
"mcp-server.mjs",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/hxhy00/
|
|
30
|
+
"url": "git+https://github.com/hxhy00/PageRig.git"
|
|
31
31
|
},
|
|
32
32
|
"bugs": {
|
|
33
|
-
"url": "https://github.com/hxhy00/
|
|
33
|
+
"url": "https://github.com/hxhy00/PageRig/issues"
|
|
34
34
|
},
|
|
35
|
-
"homepage": "https://github.com/hxhy00/
|
|
35
|
+
"homepage": "https://github.com/hxhy00/PageRig#readme",
|
|
36
36
|
"keywords": [
|
|
37
37
|
"mcp",
|
|
38
38
|
"model-context-protocol",
|