ShareBox

io.github.zalasov0.1.1更新於 Oct 8, 2026

Publish the web tools your agent builds to a self-hosted ShareBox and share them like a Google Doc

概覽

AI 產生的概覽

讓助理把它打造的小型網頁工具發佈到自架的 ShareBox,並分享給指定人員、整個網域或任何取得連結的人。

功能
ShareBox 是一個自架平台,用來發佈小型網頁工具,訪客可以像開啟共用文件一樣使用它們。透過這個 MCP 伺服器,助理可以閱讀建置指南、建立專案、發佈或更新工具、列出自己可管理的工具、查看工具的位址、版本與分享狀況,以及新增或移除分享。它刻意不提供刪除工具,刪除只保留在 CLI 中並需要確認。
適用情境
當你希望助理把小型內部工具變成託管在自有 ShareBox 執行個體上的可分享網頁時使用,例如團隊追蹤器或簡單看板。它適合已經在執行 ShareBox、並希望由代理而非手動完成發佈的團隊。
執行需求
需要一個正在運作的 ShareBox 執行個體(你自己的或組織的)以及 Node.js 20 或更新版本;套件為 npm sharebox-cli,以 stdio 在本機執行。通常先用 sharebox login 登入一次,它會開啟瀏覽器進行 Google 登入,並把權杖存到 ~/.sharebox/credentials.json。在伺服器或 CI 上則改為設定 SHAREBOX_URL 和 SHAREBOX_TOKEN。僅支援桌面端。
安裝前請注意
發佈與分享會寫入你的 ShareBox 執行個體,並讓工具對你指定的人員或網域可見,包括任何取得連結的人。SHAREBOX_TOKEN 這項密鑰可存取該執行個體,請避免讓它出現在共用日誌和程式碼倉庫中。刪除工具會清除其資料,且只能在 CLI 中經確認後執行,MCP 工具不提供此操作。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 ShareBox,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

sharebox-cli

Command line and MCP server for ShareBox, a self-hosted platform where AI agents publish small web tools and you share them like a Google Doc: with specific people, a whole Google Workspace domain, or anyone with the link. Visitors sign in with Google; every tool gets a trusted identity, its own storage and its own sandbox.

You need a running ShareBox instance (yours or your organization's). To set one up, see the install guide.

Install

bash
npm install -g sharebox-cli

Requires Node 20 or newer. Every ShareBox instance also serves its own copy at https://<instance>/cli/sharebox.tgz.

Connect

bash
sharebox login sharebox.example.com

A browser opens: sign in with Google and click Authorize. The token is stored in ~/.sharebox/credentials.json. On servers or in CI you can set SHAREBOX_URL and SHAREBOX_TOKEN instead.

Use it from an agent (MCP)

Claude Code:

bash
claude mcp add --scope user sharebox -- sharebox mcp

On Windows: claude mcp add --scope user sharebox -- cmd /c sharebox mcp.

Without a global install, other MCP clients can run npx -y sharebox-cli mcp (after npx sharebox-cli login <instance> once).

Tools: sharebox_guide, sharebox_create_project, sharebox_publish, sharebox_list, sharebox_info, sharebox_share, sharebox_unshare. There is deliberately no delete tool: deleting erases data, so it stays in the CLI behind a confirmation.

Then just ask: "Build a vacation tracker for my team and publish it on ShareBox."

Commands

CommandWhat it does
sharebox init <folder> [--name N]Starter folder with an example that uses the SDK
sharebox publish [folder] [--name N]Publish, or update the same tool on later runs (same address, data kept)
sharebox listTools you can manage
sharebox info <tool>Address, version and shares
sharebox share <tool> <with> [--role use|manage]<with>: an email, @domain.com or anyone
sharebox unshare <tool> <with>Remove a share
sharebox delete <tool> --yesDelete a tool and its data
sharebox guideHow to build a tool (written for agents)
sharebox mcpMCP server on stdio

Messages are in English or Italian, following SHAREBOX_LANG or the system locale.

License

AGPL-3.0-or-later

來源:packages/cli/README.md,提交 222779b

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.1.1最新Oct 8, 2026