writedock-mcp 0.4.12 → 0.4.13
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 +3 -1
- package/extension/assets/{index.ts-CSY6FJ6h.js → index.ts-BeiBzFaR.js} +1 -1
- package/extension/manifest.json +1 -1
- package/extension/service-worker-loader.js +1 -1
- package/extension//345/256/211/350/243/205/344/270/216/346/233/264/346/226/260.txt +1 -1
- package/index.cjs +29 -5
- package/package.json +1 -1
- package/source/package.json +1 -1
- package/source/src/__tests__/update-notice.test.ts +27 -0
- package/source/src/bridge.ts +23 -7
- package/source/src/release-info.ts +13 -0
- package/source/src/server.ts +2 -2
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
连接你自己的 agent 与 WriteDock 浏览器扩展:agent 写稿并准备图片或视频,一次调用发布到多个平台,并按平台查询结果。
|
|
4
4
|
|
|
5
|
-
MCP 运行在你自己的电脑上,只监听 `127.0.0.1`。第一次启动时会在后台开一个服务,负责端口和扩展连接,所以 agent
|
|
5
|
+
MCP 运行在你自己的电脑上,只监听 `127.0.0.1`。第一次启动时会在后台开一个服务,负责端口和扩展连接,所以 agent 只在需要时才启动 MCP,或者重启 MCP,都不影响连接。部分 agent 退出时会连带结束后台服务(在 Windows 上的 WorkBuddy 见过),重新打开 agent 后就会恢复;没有扩展和 agent 用它超过 2 小时,它会自己退出,下次用到时再启动。平台 Cookie 留在浏览器里,稿件和媒体不经过 npm。
|
|
6
6
|
|
|
7
7
|
## 安装
|
|
8
8
|
|
|
@@ -118,6 +118,8 @@ Windows 上要写成 `"command": "cmd"`、`"args": ["/c", "npx", "-y", "--prefer
|
|
|
118
118
|
- **MCP:** `--prefer-online` 在每次启动时检查新版,重启 agent 即可。新版会在旧的后台服务空闲后替换它;有任务时会等,通常几分钟内完成。
|
|
119
119
|
- **扩展:** 新版 MCP 内置更新的扩展时,扩展的「连接 agent」页会出现「更新扩展」。用户点一下,MCP 覆盖扩展目录,扩展自行重新加载;发布任务进行中不能更新。
|
|
120
120
|
|
|
121
|
+
有新版本时,任务结束的结果和 `get_connection_status` 会带 `update_notice`,agent 应在汇报时把里面的步骤原样转告用户一次。扩展不会自己更新,要用户点「更新扩展」。
|
|
122
|
+
|
|
121
123
|
连接资料保存在用户数据目录的 `identity-端口.json`:
|
|
122
124
|
|
|
123
125
|
- macOS:`~/Library/Application Support/WriteDock/mcp/`
|