Capsulate

io.github.capsulatedev由 GitHub 帳號 capsulatedev 發布v0.7.0更新於 Oct 24, 2026

Real Linux and Windows desktop VMs for AI agents: exec, files, computer-use and snapshots via MCP.

概覽

AI 產生的概覽

Capsulate 讓 AI 助理啟動並操作隔離的雲端 Linux 與 Windows 桌面:執行指令、讀寫檔案、使用圖形介面、瀏覽網頁並建立快照。

可以做什麼
啟動、列出、檢視、快照與銷毀雲端膠囊,並透過目錄工具探索可啟動的範本與套件。執行 shell 指令、python/node/bash 片段,讀寫檔案並設定環境變數。控制桌面:截圖、滑鼠與鍵盤輸入、無障礙樹、元素尋找與點擊、視窗、剪貼簿、OCR 以及批次動作序列。透過頁面結構驅動膠囊內建的 Chrome,進行導覽、分頁、點擊、填寫、求值與截圖。透過簽章主控台連結共享即時畫面,搭配旁白、控制權交接與交回。學習、儲存、核准、演練並執行團隊技能,並查看待處理執行的通知收件匣。
適用情境
適合需要一台真實、可丟棄的機器而非本機工具的場合:在乾淨環境中執行測試套件或建置、自動化桌面應用程式,或進行可能需要人工觀看並接手的瀏覽器操作。
執行需求
透過 stdio 在本機執行,通常使用 npx 與 Node.js。需要 Capsulate 帳號和 cap_live_ API 金鑰,透過 CAPSULATE_API_KEY 提供(也可使用金鑰檔案)。CAPSULATE_BASE_URL 與 CAPSULATE_TEAM_ID 為選用項目。需要連線至 Capsulate API 的網路存取。
安裝前請注意
API 金鑰是可計費的憑證,盡量不要放入共享設定檔。膠囊是執行期間會產生費用的雲端機器,可透過 CAPSULATE_TEAM_ID 指定計費團隊。工具會執行指令、寫入檔案、控制桌面與瀏覽器並銷毀膠囊,操作會改變遠端狀態。主控台連結雖經簽章,但在到期前無需登入即可開啟即時畫面。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

@capsulate/mcp

The Capsulate Model Context Protocol server. Give Claude Code, Claude Desktop, Cursor, Windsurf, Antigravity, any MCP client, the ability to launch and drive isolated cloud computers ("capsules"), including real Linux and Windows desktops that a person can watch live and take over.

Setup

  1. Create an API key in the Capsulate dashboard: Settings → API & Keys.
  2. Add the server to your MCP client config.

Claude Code

bash
claude mcp add capsulate -e CAPSULATE_API_KEY=cap_live_... -- npx -y @capsulate/mcp

Claude Desktop / Cursor

json
{  "mcpServers": {    "capsulate": {      "command": "npx",      "args": ["-y", "@capsulate/mcp"],      "env": {        "CAPSULATE_API_KEY": "cap_live_…"      }    }  }}

To keep the key out of the config file, put it in a file and point at it with CAPSULATE_API_KEY_FILE instead. The file holds either the bare key or a CAPSULATE_API_KEY=cap_live_... line.

For a self-hosted or non-default deployment, also set "CAPSULATE_BASE_URL": "https://api.your-domain".

Tools

ToolWhat it does
capsulate_launchLaunch a capsule and wait until ready
capsulate_list / capsulate_getInspect capsules
capsulate_destroyTear a capsule down
capsulate_execRun a command (argv array)
capsulate_run_codeRun a python/node/bash snippet
capsulate_write_file / capsulate_read_fileFile I/O
capsulate_set_envSet environment variables
capsulate_snapshotSnapshot a capsule
capsulate_catalogDiscover launchable templates & bundles

Desktop computer use

ToolWhat it does
capsulate_screenshotSee the screen (returns an image; format: "jpeg", a scale or a region make it smaller)
capsulate_screen_infoThe screen's size, the pointer and the active window
capsulate_click / capsulate_move / capsulate_drag / capsulate_scrollPointer
capsulate_type / capsulate_keyKeyboard
capsulate_ui_treeRead the accessibility tree (AT-SPI on Linux, UI Automation on Windows) with clickable centers
capsulate_find_element / capsulate_wait_elementFind or wait for an element by role, name or text
capsulate_click_elementFind an element and click it: the reliable way to press a named button
capsulate_clipboardRead or set the clipboard (paste long text instead of typing it)
capsulate_elementAct on an element without coordinates: set its value, clear, toggle, expand or collapse, invoke, select an option by name, focus, scroll it into view
capsulate_windowsList windows or bring one to the front
capsulate_windowMinimize, maximize, restore, close, move or resize a window
capsulate_openOpen a URL, a file or an app by name, and wait for its window
capsulate_wait_forWait for an element to appear, go away, be enabled or show a text, for a window, or for the screen to settle
capsulate_ocrRead the text on screen when the UI tree has no labels
capsulate_run_actionsSeveral steps in one call, back to back, stopping at the first that fails, with a look at the end

The input verbs accept screenshot: true (and screenshotDelayMs) to return the frame after the action. Every tool works the same on Linux and Windows desktops; a multi-line editor is a document on Windows and a text on Linux.

Browser fast path

The capsule's own Chrome, driven through the page's structure at page speed, on the same screen the person watches: capsulate_browser_open, _navigate, _tabs, _snapshot (an outline with refs), _click, _fill (the value is never echoed), _select, _press, _scroll, _wait, _text, _eval and _screenshot.

Live: a person watches, takes over, hands back

A desktop capsule has one shared screen. The AI drives it through the tools above while a person watches the same screen in a browser, sees the AI's pointer, clicks and keys drawn over it, reads its narration, and can take the screen at any time.

ToolWhat it does
capsulate_console_linkA signed, expiring URL that opens the live screen in any browser with no login (control or view)
capsulate_sayShow one line of narration on the live console
capsulate_controlWho is driving: free, agent (the AI) or human; take or release the screen; set the pace (natural or presentation) for a person watching
capsulate_handoffHand the screen to the person with a note ("Please sign in"), wait until they hand it back, get their note
capsulate_wait_for_handbackKeep waiting for the person to hand the screen back

While a person holds the screen, the AI's input verbs answer human_in_control and nothing reaches the capsule; the tool result says to wait with capsulate_wait_for_handback. Reading the screen (screenshot, UI tree, OCR) keeps working. Each AI input holds the screen for 45 seconds; the console is view-only for everyone else during that time and turns interactive again when the AI goes quiet or releases.

Skills: learn once, replay in minutes

ToolWhat it does
capsulate_lessonLearn a job on a capsule: a person teaches on the shared screen (clicks, keys and typing with the elements they hit, passwords masked, optionally video and voice) or the AI teaches itself toward a goal; get reads the digest
capsulate_skillsThe team's skills: save one from a lesson's digest, versions, approve, save an environment, rehearse, weekly rehearsals
capsulate_skill_runRun a skill's procedure in the background; it asks you where the skill leaves a decision open
capsulate_inboxRuns that wait, versions to approve, failed rehearsals and skills whose software changed

The server's instructions carry the learning protocol: explore with a goal, note what you learn, finish, read the digest, save the skill; next time launch its environment and run its procedure.

Try it

"Spin up an ubuntu-22.04-headless capsule, run my test suite, and show me the output."

The model calls capsulate_launch, then capsulate_exec, and reports back.

"Launch an ubuntu-22.04-desktop capsule, give me a live link, and find the latest Firefox release notes. If anything needs a login, hand it to me."

The model launches the desktop, calls capsulate_console_link and gives you the URL, narrates with capsulate_say as it works, and calls capsulate_handoff when it needs you. You press Done, hand back in the live console when you finish, and it carries on.

Develop

bash
npm run build                          # from the repo root: sdk, ai-tools, cli, mcpnode apps/mcp/scripts/smoke-live.mjs   # live tools end to end against a fake API

來源:apps/mcp/README.md,提交 36f738e

工具

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

版本歷史

6
  1. v0.7.0最新Oct 13, 2026
  2. v0.6.0Oct 12, 2026
  3. v0.5.0Oct 11, 2026
  4. v0.4.1Oct 10, 2026
  5. v0.4.0Oct 10, 2026
  6. v0.2.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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