ZynoHosting

io.github.zyno-io由 GitHub 帳號 zyno-io 發布v0.4.5更新於 Oct 27, 2026

Manage ZynoHosting sites and create, discover, embed, and configure ZynoForms through local stdio.

概覽

AI 產生的概覽

針對 ZynoHosting 的本機 stdio MCP 伺服器,讓助理列出網站、管理檔案、規劃並執行部署,以及建立與設定 ZynoForms。

可以做什麼
  • 列出並檢視目前租用戶憑證獲授權的託管網站
  • 列出、下載、上傳與刪除個別網站檔案,支援 ETag 與僅限新建保護
  • 規劃並執行以清單為基礎的整站部署,以及規劃並執行整站下載
  • 探索、描述、建立、編輯與設定已發布的 ZynoForms,包含機器人防護與允許來源
  • 透過登入工具發起並查詢瀏覽器登入流程
適用情境
適合讓助理在專案目錄中直接操作 ZynoHosting 網站:檢視檔案、推送建置產物、拉取網站副本,或建立與調整 ZynoForms。主要針對桌面端互動使用,而非純託管或 CI 情境。
執行需求
透過 npm 套件 @zyno-io/zynohosting 以 stdio 在本機執行(需 Node.js 24),以 zynohosting-mcp 或 npx 加上 mcp 子命令啟動。需要租用戶憑證:具權限範圍的瀏覽器登入,或環境變數 ZYNOHOSTING_API_KEY。可選 ZYNOHOSTING_MCP_ROOTS 白名單,以及 ZYNO_AUTH_API_URL、ZYNO_SUITE_API_URL 覆寫位址。
安裝前請注意
此憑證對線上網站具備寫入與刪除能力:檔案寫入與刪除、可能刪除遠端檔案的部署,以及表單發布。應只申請最小權限;下載敏感內容需 hosting.downloadSensitive。若未設定 ZYNOHOSTING_MCP_ROOTS,本機檔案工具可存取程序使用者可讀寫的任意路徑。存取權杖 60 分鐘後過期,續期密鑰保存在作業系統憑證存放區。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

ZynoHosting CLI and MCP server

@zyno-io/zynohosting is the public command-line and local MCP client for ZynoHosting. It can:

  • list sites authorized for the current tenant credential;
  • inspect, download, upload, and delete individual files;
  • preview and apply complete manifest-driven deployments;
  • download a complete deployable snapshot or, with the extra permission, all user content;
  • discover, create, inspect, edit, embed, and configure published ZynoForms;
  • expose the same operations to agents through a local stdio MCP server.

The package requires Node.js 24.

Full CLI and MCP documentation is available at zyno-io.github.io/zynohosting-cli.

Install

bash
npm install --global @zyno-io/zynohostingzynohosting --help

It installs two executables:

  • zynohosting — the human and CI command-line interface;
  • zynohosting-mcp — the local stdio MCP server.

You can also run commands without a global install:

bash
npx -y @zyno-io/zynohosting sites list

Authenticate

For an interactive user:

bash
zynohosting login --permission hosting.sitesReadzynohosting login \  --name "Claude MCP — work laptop" \  --permission hosting.sitesRead \  --permission hosting.deploy \  --permission forms.create \  --permission forms.edit \  --renewable

Browser login creates a tenant-bound scoped CLI token. hosting.sitesRead is requested when no --permission is supplied; repeat the option to request the narrowest complete set for your workflow. Access tokens always expire after 60 minutes. --renewable stores the rotating renewal credential in the operating system credential store and lets long-running CLI/MCP processes refresh automatically. While MCP remains alive, it renews in the background even when no tools are being called; each request also checks freshness as a backstop. The renewal secret is never written to the JSON config file.

Revoke the saved scoped grant and remove its local credentials with zynohosting logout.

For CI or another non-interactive environment, inject a tenant API key:

bash
export ZYNOHOSTING_API_KEY='...'

The CLI also accepts --environment production|alpha|dev and --api-url. Credentials are resolved in this order:

  1. command options;
  2. environment variables;
  3. the saved login file.

Relevant environment variables are:

  • ZYNOHOSTING_API_KEY
  • ZYNOHOSTING_ACCESS_TOKEN
  • ZYNOHOSTING_TENANT_ID
  • ZYNOHOSTING_TOKEN_EXPIRES_AT
  • ZYNOHOSTING_API_URL
  • ZYNO_SUITE_API_URL
  • ZYNO_AUTH_API_URL
  • ZYNOHOSTING_ENVIRONMENT
  • ZYNOHOSTING_CONFIG
  • ZYNOHOSTING_LOGIN_URL

Sites

bash
zynohosting sites listzynohosting sites get example.comzynohosting sites get 11111111-1111-4111-8111-111111111111 --json

A site may be addressed by its UUID, primary hostname, vanity hostname, or authorized alias.

Individual files

Remote paths are relative to the site document root. Absolute paths, .., control characters, backslashes, and symbolic-link traversal are rejected.

bash
zynohosting files list example.comzynohosting files list example.com wp-content/themes --recursive
zynohosting files get example.com index.html --output ./index.htmlzynohosting files put example.com ./index.html index.htmlzynohosting files rm example.com obsolete.html --yes

Use ETags to prevent overwriting a file that changed since it was inspected:

bash
zynohosting files put example.com ./index.html index.html --etag '"etag-from-list"'zynohosting files rm example.com obsolete.html --etag '"etag-from-list"' --yes

Use --create to require that an uploaded path does not already exist.

Full deployment

bash
zynohosting deploy example.com ./distzynohosting deploy example.com ./dist --dry-runzynohosting deploy example.com ./dist --yes

Deployment is always planned before it is applied. The client and node agent:

  1. agree on protocol limits and mandatory ignores;
  2. inventory local and remote content;
  3. hash only same-size candidates;
  4. return the exact create, replace, and delete plan;
  5. upload only changed files;
  6. revalidate the remote snapshot before mutation;
  7. invalidate the site cache after a successful apply.

The mandatory deployment scope excludes platform-managed configuration, uploads, caches, logs, VCS data, and dependencies. Add project exclusions in .zynohostingignore or with --ignore.

An empty local deployment requires --allow-empty before it may delete the remote deployable scope.

Complete download

The default snapshot mirrors the deployable scope:

bash
zynohosting download example.com ./site-copy

Downloading protected configuration and user-generated content requires the separate hosting.downloadSensitive permission:

bash
zynohosting download example.com ./complete-copy --sensitive

The destination must be new or empty. Archive bytes are extracted as the hosting node generates them; the CLI validates the transport completion, gzip stream, and tar entries before atomically installing the staged tree. Absolute paths, traversal, links, devices, and other unsupported entries are rejected.

Local MCP server

The MCP server is local stdio only. It does not open a port or provide a hosted/cloud MCP endpoint.

For a non-technical user, paste this into Codex or Claude Code:

Set up ZynoHosting MCP for this project if it's not already configured. See https://raw.githubusercontent.com/zyno-io/zynohosting-cli/main/docs/mcp/agent.md for details.

The agent configures only its own project file—.mcp.json for Claude Code or .codex/config.toml for Codex—without storing credentials. Restart the agent after it completes; MCP tools are not added to an already-running session. That prompt points at install instructions written for the agent; the matching prompts for the user cover signing in, publishing, and forms.

ZYNOHOSTING_MCP_ROOTS is an optional local-computer allowlist for the MCP process. When it is unset, local-file tools can use any absolute path the MCP process user can access. When roots are configured, local file reads, writes, deploy sources, ignore files, and download destinations are constrained to them after canonical path resolution.

Direct invocation:

bash
zynohosting-mcp --root /absolute/path/to/project

The package’s main binary also exposes the registry-friendly form:

bash
npx -y @zyno-io/zynohosting mcp --root /absolute/path/to/project

Example client configuration:

json
{    "mcpServers": {        "zynohosting": {            "command": "npx",            "args": ["-y", "@zyno-io/zynohosting", "mcp"],            "env": {                "ZYNOHOSTING_MCP_ROOTS": "/absolute/path/to/project"            }        }    }}

On macOS and Linux, multiple ZYNOHOSTING_MCP_ROOTS use : as the delimiter. Windows uses ;. Repeated --root arguments are also supported.

The MCP tools are:

  • login
  • list_sites
  • get_site
  • list_forms
  • get_form_integration
  • describe_form
  • create_basic_form
  • update_form
  • update_form_bot_protection
  • update_form_origins
  • list_files
  • get_file
  • put_file
  • delete_file
  • plan_deploy
  • apply_deploy
  • plan_download
  • apply_download

Full deploys and downloads intentionally use separate plan/apply calls. Plans are held only in the local MCP process, contain no exposed bearer token, expire with their short-lived access session, and cannot be applied after the server restarts.

The MCP can start without a saved login. The agent calls login to open the ZynoSuite browser sign-in flow and receives the one-time URL in its tool result; after the browser callback, it calls login with action: "status" to confirm the login. It must never infer a deployment domain from the project or select a similar authorized site; it asks when the project does not state the target domain. If the stated domain is unavailable in the current login context, it must not substitute another one and should offer login again to switch contexts.

Permissions

The tenant credential is limited by explicit Hosting and Forms permissions:

PermissionCapability
hosting.sitesReadList and inspect sites
hosting.filesReadList files and download individual files
hosting.filesWriteCreate and replace individual files
hosting.filesDeleteDelete individual files
hosting.deployPlan and apply full deployments
hosting.downloadDownload the deployable snapshot
hosting.downloadSensitiveInclude protected and user-generated content
hosting.analyticsReadRead hosting analytics
hosting.analyticsManageChange analytics configuration
forms.createCreate and immediately publish a basic form
forms.editEdit a form, its Cap protection, and allowed CORS origins

The form discovery and integration tools use the same tenant credential against the ZynoSuite API. Adding origins from a hosting-site reference also requires hosting.sitesRead.

Tenant admins receive the normal administrative defaults. Non-admin credentials receive only the operations explicitly granted to them.

That table is the complete set. zynohosting login --help prints it, and the MCP login tool enumerates it in its schema, so an invented key such as hosting.sitesWrite is rejected locally—naming the closest valid key—before a browser opens. CLI-token requests cannot include msp.login, msp.impersonate, core.changePassword, or core.manageFingerprints. The browser also refuses unknown permissions and permissions the current user does not possess; it never partially grants a request.

Only one MCP browser flow runs at a time. Repeating login with the same request returns the same one-time URL ("reused": true); requesting different permissions cancels the in-flight flow and issues a new URL rather than handing back the earlier scope. action: "cancel" abandons a flow and closes its loopback listener.

JSON output

Most CLI commands accept --json. Deploy emits newline-delimited progress, plan, and result events; list and file commands emit a single JSON document.

Public API and release process

The public documentation site covers CLI commands, MCP tools, configuration, permissions, and safety. The manager and node-agent contract is documented in BACKEND_PLAN.md. Maintainer release setup and the tag-only mirror design are documented in RELEASING.md.

來源:README.md,提交 f165e02

工具

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

版本歷史

1
  1. v0.4.5最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

    請在儲存庫或註冊中心條目中宣告授權條款。