Spawner

io.github.Flosk6由 GitHub 帳號 Flosk6 發布v2.2.1更新於 Oct 24, 2026

Preview environments on your self-hosted Spawner server: a copy of your app for each git branch

概覽

AI 產生的概覽

面向自架 Spawner 伺服器的 MCP 伺服器,讓助理依分支建立、檢視、在其中執行指令並刪除預覽環境。

可以做什麼
  • 從工作區為目前分支建立與更新預覽環境,包含尚未提交的變更
  • 檢視環境狀態、列出環境、讀取資源統計並取得環境網址
  • 讀取環境日誌,可只篩選錯誤行
  • 在環境的服務中執行指令
  • 產生免帳號即可存取的分享連結,以及刪除環境
適用情境
適合團隊自架 Spawner 伺服器,並希望編碼助理不必離開編輯器或對話,就能為分支啟動、排查與清理預覽環境。
執行需求
需要 Node.js 20 或更新版本並全域安裝 spawner-cli,以及可連線的自架 Spawner 伺服器。可互動執行 spawner login 登入,或在 CI 與容器中設定 SPAWNER_URL 與 SPAWNER_TOKEN。首次建立環境前,管理員須在儀表板新增專案。
安裝前請注意
此伺服器以 CLI 的登入身分與權限運作。spawner_exec 會在環境服務中執行任意指令,spawner_down 會刪除環境;兩者都標示為破壞性操作,用戶端是否先確認取決於其權限設定。SPAWNER_TOKEN 是具備該帳號權限的個人 API 權杖。分享連結會讓沒有帳號的人存取環境。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

spawner-cli

The command line and MCP server of Spawner. Spawner is an open source, self-hosted preview environment manager: a copy of your app for each git branch, on your own server, with its own URLs, database and logs, for teams and their coding agents.

With spawner, developers and coding agents create, update and delete environments from a worktree, uncommitted changes included, run commands in them and read their logs.

Install

bash
npm install -g spawner-cli

It needs Node.js 20 or later, and a Spawner server: install one with a single command. Every server also serves the CLI of its own version at /api/v1/cli/spawner.

Log in

bash
spawner login https://spawner.preview.example.com

Type the code it shows in the dashboard and approve the login: the CLI stores a personal token. In CI or a container, SPAWNER_URL and SPAWNER_TOKEN replace the login.

Commands

bash
# write .spawner/, and offer to add the instructions for coding agentsspawner init
# the environment of the current branch, from this worktreespawner up --wait
# run a command in a servicespawner exec feat-login db -- psql -U app -c "select * from users"
# only the error lines, stack traces kept wholespawner logs feat-login api --errors
# a link for someone without an accountspawner share feat-login
spawner down feat-login

Before the first spawner up of a project, an admin adds the project in the dashboard (Projects, New project). The other commands: status, ls, stats, capacity, url, shell, stop, start, sleep, wake, extend, token, whoami and logout.

Commands print JSON with --json and exit with stable codes: 4 when the environment failed, 6 when the quota or the server's capacity is reached, 7 when .spawner/ was refused.

MCP server

spawner mcp is an MCP server on stdio, with the login and the rights of the CLI. In Claude Code:

bash
claude mcp add spawner -- spawner mcp

In a project's .mcp.json, or Cursor's .cursor/mcp.json:

json
{  "mcpServers": {    "spawner": { "command": "spawner", "args": ["mcp"] }  }}

It has nine tools: spawner_up, spawner_status, spawner_list, spawner_logs, spawner_exec, spawner_stats, spawner_url, spawner_share and spawner_down. spawner_exec and spawner_down are marked destructive: whether a client asks before running them depends on the client and its permission settings.

Documentation

Source: github.com/Flosk6/Spawner. License: Apache-2.0.

來源:apps/cli/README.md,提交 b9c01c6

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v2.2.1最新Oct 11, 2026
  2. v2.2.0Oct 10, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分