@xbrowser/cli 1.23.0 → 1.24.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 +13 -0
- package/dist/chunk-A7RZYSWM.js +8778 -0
- package/dist/chunk-BROEUPL3.js +9122 -0
- package/dist/{chunk-LPW6QS4M.js → chunk-FNXA6FDM.js} +39 -1
- package/dist/{chunk-FBQZ3PVD.js → chunk-PGKV24QN.js} +39 -1
- package/dist/{chunk-XTUAUFL3.js → chunk-SOPN4XDK.js} +41 -96
- package/dist/cli.js +255 -8918
- package/dist/daemon-main.js +50 -4
- package/dist/{human-interaction-MXST5ZQM.js → human-interaction-CTZ4IWXJ.js} +1 -1
- package/dist/{human-interaction-67K43B4O.js → human-interaction-HJCK45SL.js} +1 -1
- package/dist/{human-interaction-57VYIR56.js → human-interaction-V3VDGHHI.js} +2 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.js +439 -9395
- package/dist/{recovery-LGY25LIM.js → recovery-5C4FBA5O.js} +1 -1
- package/dist/{recovery-6RI2FE3E.js → recovery-EBKORYEU.js} +1 -1
- package/dist/{recovery-LMJW537X.js → recovery-IMZUGWSS.js} +2 -1
- package/dist/server-NPINOVJS.js +243 -0
- package/dist/server-YVMWMNHD.js +240 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -474,6 +474,19 @@ project > browser > page > element
|
|
|
474
474
|
Error: 需要活跃的页面,请先执行 xbrowser goto <url>
|
|
475
475
|
```
|
|
476
476
|
|
|
477
|
+
## MCP Server(AI Agent 接入)
|
|
478
|
+
|
|
479
|
+
xbrowser 内置 Model Context Protocol 服务器——让 Claude Desktop / Cursor / 任何 MCP 客户端直接使用浏览器能力:
|
|
480
|
+
|
|
481
|
+
```bash
|
|
482
|
+
# 注册到 Claude Code
|
|
483
|
+
claude mcp add xbrowser -- xbrowser mcp
|
|
484
|
+
|
|
485
|
+
# 或手动配置(stdio):command: xbrowser, args: ["mcp"]
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
7 个工具:`browser_navigate` / `browser_act` / `browser_read` / `browser_snapshot`(accessibility tree,token 友好)/ `browser_screenshot` / `browser_network` / `browser_replay`(自愈回放)。协议冒烟:`node scripts/mcp-smoke.mjs`。
|
|
489
|
+
|
|
477
490
|
## 插件系统
|
|
478
491
|
|
|
479
492
|
### 插件加载顺序
|