zynohosting
Enables management of ZynoHosting sites, files, and deployments through a local stdio MCP server.
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;
- 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
npm install --global @zyno-io/zynohosting
zynohosting --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:
npx -y @zyno-io/zynohosting sites list
Authenticate
For an interactive user:
zynohosting login
For CI or another non-interactive environment, inject a tenant API key:
export ZYNO_HOSTING_API_KEY='...'
The CLI also accepts --environment production|alpha|dev and --api-url. Credentials are resolved in this order:
- command options;
- environment variables;
- the saved login file.
Relevant environment variables are:
ZYNO_HOSTING_API_KEYZYNO_HOSTING_ACCESS_TOKENZYNO_HOSTING_TENANT_IDZYNO_HOSTING_TOKEN_EXPIRES_ATZYNO_HOSTING_API_URLZYNO_HOSTING_ENVIRONMENTZYNO_HOSTING_CONFIGZYNO_HOSTING_LOGIN_URL
Sites
zynohosting sites list
zynohosting sites get example.com
zynohosting 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.
zynohosting files list example.com
zynohosting files list example.com wp-content/themes --recursive
zynohosting files get example.com index.html --output ./index.html
zynohosting files put example.com ./index.html index.html
zynohosting files rm example.com obsolete.html --yes
Use ETags to prevent overwriting a file that changed since it was inspected:
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
zynohosting deploy example.com ./dist
zynohosting deploy example.com ./dist --dry-run
zynohosting deploy example.com ./dist --yes
Deployment is always planned before it is applied. The client and node agent:
- agree on protocol limits and mandatory ignores;
- inventory local and remote content;
- hash only same-size candidates;
- return the exact create, replace, and delete plan;
- upload only changed files;
- revalidate the remote snapshot before mutation;
- 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:
zynohosting download example.com ./site-copy
Downloading protected configuration and user-generated content requires the separate hosting.downloadSensitive permission:
zynohosting download example.com ./complete-copy --sensitive
The destination must be new or empty. Archives are extracted through a staging directory and reject absolute paths, traversal, links, devices, and other unsupported entries.
Local MCP server
The MCP server is local stdio only. It does not open a port or provide a hosted/cloud MCP endpoint.
Every invocation must have at least one allowed local root. Agent file reads, file writes, deploy sources, ignore files, and download destinations are constrained to those roots after canonical path resolution.
Direct invocation:
zynohosting-mcp --root /absolute/path/to/project
The package’s main binary also exposes the registry-friendly form:
npx -y @zyno-io/zynohosting mcp --root /absolute/path/to/project
Example client configuration:
{
"mcpServers": {
"zynohosting": {
"command": "npx",
"args": ["-y", "@zyno-io/zynohosting", "mcp"],
"env": {
"ZYNO_HOSTING_MCP_ROOTS": "/absolute/path/to/project"
}
}
}
}
On macOS and Linux, multiple ZYNO_HOSTING_MCP_ROOTS use : as the delimiter. Windows uses ;. Repeated --root arguments are also supported.
The MCP tools are:
list_sitesget_sitelist_filesget_fileput_filedelete_fileplan_deployapply_deployplan_downloadapply_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.
Permissions
The manager maps every access session to explicit hosting permissions:
| Permission | Capability |
|---|---|
hosting.sitesRead |
List and inspect sites |
hosting.filesRead |
List files and download individual files |
hosting.filesWrite |
Create and replace individual files |
hosting.filesDelete |
Delete individual files |
hosting.deploy |
Plan and apply full deployments |
hosting.download |
Download the deployable snapshot |
hosting.downloadSensitive |
Include protected and user-generated content |
hosting.analyticsRead |
Read hosting analytics |
hosting.analyticsManage |
Change analytics configuration |
Tenant admins receive all hosting permissions by default. Non-admin credentials receive only the operations explicitly granted to them.
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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。