Skip to main content
Glama

websupport-mcp

一个封装 Websupport REST API v1 + v2 的 MCP 服务器(TypeScript、ESM、stdio)——涵盖 DNS、FTP、托管、数据库、邮箱、VPS 和发票——以 MCP 工具形式暴露,并使用带签名的 HMAC-SHA1 身份验证。

状态:开发中。 所有 50 个工具均已实现,服务器可以运行。剩下的是针对拥有真实资源的账户进行验证、打包和发布。进度参见 IMPLEMENTATION_PLAN.md。

风险等级

工具按三个等级注册,等级对注册进行门控——只读部署在 tools/list 中根本看不到任何写入工具,因此不消耗客户端上下文,也不提供任何可操作入口。

等级

选择加入方式

每次调用的额外门槛

当前

read

始终启用

—

30 个工具

write

WEBSUPPORT_ALLOW_WRITE=1

—

13 个工具

destructive

WEBSUPPORT_ALLOW_DESTRUCTIVE=1

confirm: true 参数

7 个工具

一个工具之所以是 destructive,是因为它破坏了你无法低成本重建的状态——而不仅仅是因为它会执行写入。优雅的 VPS 重启属于 write;强制断电属于 destructive,因为它可能破坏正在进行的写入。创建快照属于 write;恢复快照属于 destructive,因为它会丢弃自快照以来的一切。

这两个选择加入是相互独立的:仅设置 WEBSUPPORT_ALLOW_DESTRUCTIVE=1 不会解锁写入工具,反之亦然。

安全边界是 confirm: true 参数,而不是 MCP 的 elicitation 机制。协议协商可能最终落在远低于支持 elicitation 的修订版本——本服务器的 SDK 目前最高仅支持到 2025-11-25——而在较旧客户端面前会消失的门槛,根本算不上门槛。

Related MCP server: cpanel-mcp

安装

尚未发布。要从本地检出运行:

npm install
npm run build

然后让 MCP 客户端指向它:

需要 Node >= 22。

{
  "mcpServers": {
    "websupport": {
      "command": "node",
      "args": ["/absolute/path/to/websupport-mcp/dist/index.js"],
      "env": {
        "WEBSUPPORT_API_KEY": "…",
        "WEBSUPPORT_API_SECRET": "…"
      }
    }
  }
}

凭据

在 WebAdmin(Security → API keys)中生成一个标准 API 访问密钥对。仅限 DynDNS 的密钥对只能通过 /nic/update 进行身份验证,其他任何操作都不行。

变量

必填

默认值

说明

WEBSUPPORT_API_KEY

是

—

该密钥对的标识符。

WEBSUPPORT_API_SECRET

是

—

该密钥对的机密。用于 HMAC-SHA1 签名;绝不会被记录,也绝不会在错误中返回。

WEBSUPPORT_API_BASE_URL

否

https://rest.websupport.sk

市场选择——见下文。

WEBSUPPORT_ACCEPT_LANGUAGE

否

en_us

en_us、sk、cs_cz、hu 之一。

WEBSUPPORT_ALLOW_WRITE

否

关闭

设为 1 以注册写入工具。

WEBSUPPORT_ALLOW_DESTRUCTIVE

否

关闭

设为 1 以注册破坏性工具。

复制 .env.example 用于本地开发。.env 已被 git 忽略。

市场

Websupport 是 team.blue/Loopia 旗下的区域性品牌,因此 API 主机决定了所面向的市场。同一个应用服务于所有主机——GET /v2/docs/openapi.json 在所有主机上逐字节相同——因此切换市场只是配置变更,绝非代码改动。

市场

WEBSUPPORT_API_BASE_URL

斯洛伐克(默认)

https://rest.websupport.sk

捷克

https://rest.websupport.cz

匈牙利

https://rest.websupport.hu

瑞典

https://rest.websupport.se

无法识别的主机名会向 stderr 发出警告,但仍会被使用,因此新增加的市场无需等待发布即可使用。

文档

文档

内容

docs/tools.md

每个工具:等级、方法 + 路径、confirm 要求。由注册表生成——绝不手工编辑。

docs/verification-matrix.md

关于每个工具已经实际验证了什么、尚未验证什么。在生产环境中信任任何工具之前,请先阅读。

范围

订单创建以及发票/订单支付端点被有意排除在范围之外,并通过测试断言其不存在。v1 DNS 记录 CRUD 和 v1 FTP 账户 CRUD 已在上游弃用,因此未暴露——v2 工具涵盖这两者。

开发

npm test              # offline suite
npm run test:network  # live, unauthenticated probes (market hosts + OpenAPI drift)
npm run typecheck
npm run lint
npm run build

网络测试套件被刻意分离:Websupport 服务中断绝不能导致构建失败。

工具链

Node >= 22,用于运行或构建。Node 20 已于 2026-04-30 结束生命周期,不再受支持。CI 覆盖 22 和 24 这两个活跃的 LTS 系列,并在每个系列上构建打包产物并运行冒烟测试。

构建还需要 npm >= 11:npm 10 无法解析打包工具的依赖树,并以一条毫无帮助的错误 Cannot read properties of null (reading 'edgesOut') 失败。如果遇到该错误,请升级 npm,而不是调试仓库。

安全

本服务器持有的凭据可完全控制 Websupport 账户——不存在只读的 API 密钥对。SECURITY.md 介绍了这些凭据的处理方式、哪些工具会返回敏感数据,以及如何私下报告漏洞。

贡献

参见 CONTRIBUTING.md。注意两条由测试而非评审强制执行的边界:不得有订单或支付端点,并且每个破坏性工具都必须声明 confirm: true。

许可证

MIT——参见 LICENSE。

Available Tools

30 tools
ws_auth_checkVerify API credentialsA
Read-onlyIdempotent

Verify that the configured Websupport API key and secret authenticate successfully. Returns {verified: true} on success. Use this first when diagnosing 401 errors.

Inputs: no named parameters.

ws_db_getGet databaseA
Read-onlyIdempotent

Get one database by id, including its name, type and connection details.

Inputs: hostingId (required), databaseId (required), userId.

ws_db_listList databasesA
Read-onlyIdempotent

List the databases on a hosting service.

Inputs: hostingId (required), userId.

ws_db_statsDatabase statisticsB
Read-onlyIdempotent

Usage statistics for one database. kind selects the series: size (storage used) or cpu (query load).

Inputs: kind (required), hostingId (required), databaseId (required), userId.

ws_db_users_listList database usersB
Read-onlyIdempotent

List the database users on a hosting service.

Inputs: hostingId (required), userId.

ws_dns_record_listList DNS recordsA
Read-onlyIdempotent

List DNS records in a service zone, with paging and server-side filtering. Returns the API pagination envelope unflattened.

Inputs: service (required), page, sortBy, filters, +2 more.

ws_dns_zone_getGet DNS zoneA
Read-onlyIdempotent

Get the DNS zone attached to a service.

Inputs: service (required).

ws_ftp_account_getGet FTP accountA
Read-onlyIdempotent

Get one FTP account by id. The password is never returned.

Inputs: service (required), ftpAccount (required).

ws_ftp_account_listList FTP accountsA
Read-onlyIdempotent

List FTP accounts on a hosting service. Passwords are never returned — the API response schema has no password field.

Inputs: service (required), page, sortBy, descending, +1 more.

ws_hosting_getGet hosting serviceA
Read-onlyIdempotent

Get one hosting service by id or uuid, including its package, limits and current usage.

Inputs: hostingId (required), userId.

ws_hosting_listList hosting servicesA
Read-onlyIdempotent

List the hosting services on the account.

Inputs: page, userId, pagesize.

ws_hosting_statsHosting statisticsA
Read-onlyIdempotent

Usage statistics for a hosting service. kind selects the series: size (disk usage), domain (per-domain traffic), or ftp (FTP activity).

Inputs: kind (required), hostingId (required), userId.

ws_hosting_vhost_getGet virtual hostA
Read-onlyIdempotent

Get one virtual host by id, including its document root and domain configuration.

Inputs: vhostId (required), hostingId (required), userId.

ws_hosting_vhost_listList virtual hostsA
Read-onlyIdempotent

List the virtual hosts (domains) served by a hosting service.

Inputs: hostingId (required), userId.

ws_invoice_getGet invoiceA
Read-onlyIdempotent

Get one invoice by id, including line items, totals and payment status. Use ws_invoice_pdf for the document itself.

Inputs: invoiceId (required), userId.

ws_invoice_listList invoicesA
Read-onlyIdempotent

List the account's invoices with their amounts, dates and payment status. Paying an invoice is deliberately out of scope for this server.

Inputs: page, userId, pagesize.

ws_invoice_pdfGet invoice PDFA
Read-onlyIdempotent

Fetch an invoice as a PDF. base64 returns the document encoded for a caller that will decode and save it. binary reports the size and type only — raw PDF bytes are never inlined into a tool result, because they would flood the conversation without being usable.

Inputs: invoiceId (required), format, userId.

ws_mailbox_getGet mailboxA
Read-onlyIdempotent

Get one mailbox by id, including its address, quota and forwarding configuration.

Inputs: hostingId (required), mailboxId (required), userId.

ws_mailbox_listList mailboxesA
Read-onlyIdempotent

List the mailboxes on a hosting service.

Inputs: hostingId (required), userId.

ws_mail_statsMail statisticsA
Read-onlyIdempotent

Mail storage statistics for a hosting service. Supply domain to scope the figures to one domain; omit it for the whole service.

Inputs: hostingId (required), domain, userId.

ws_service_getGet serviceA
Read-onlyIdempotent

Get one service by id, including its type, status and expiry. Use ws_service_list first to find the id.

Inputs: serviceId (required), userId.

ws_service_listList servicesA
Read-onlyIdempotent

List the account's services (hosting, domains, VPS and so on). Returns the v1 envelope {items, pager}. Service ids from here are the candidates for the v2 tools' service argument.

Inputs: userId.

ws_user_getGet accountA
Read-onlyIdempotent

Get the account record: id, contact details, billing profiles, market and currency. SENSITIVE — the response includes the billing address, email address, phone number, and a verifyUrl containing a live account-verification key. Do not echo the full response to the user or store it; read the specific field needed.

Inputs: userId.

ws_vps_getGet VPSA
Read-onlyIdempotent

Get one VPS by id or name, including its specification, IP addresses and power state.

Inputs: vpsId (required), userId.

ws_vps_listList VPS instancesB
Read-onlyIdempotent

List the VPS instances on the account.

Inputs: page, userId, pagesize.

ws_vps_snapshot_listList VPS snapshotsA
Read-onlyIdempotent

List the snapshots taken of a VPS, with their names and creation times.

Inputs: vpsId (required), userId.

ws_vps_statsVPS statisticsA
Read-onlyIdempotent

Usage statistics for a VPS. kind selects the series: cpu (processor load) or traffic (network transfer).

Inputs: kind (required), vpsId (required), userId.

ws_vps_vncGet VPS console accessA
Read-onlyIdempotent

Get VNC console access details for a VPS. SENSITIVE — the response may carry a one-time console URL or session credential that grants direct machine access. Hand it to the user who asked for it and nothing else: do not log it, do not repeat it in a summary, and treat it as expiring.

Inputs: vpsId (required), userId.

ws_zone_getGet DNS zoneB
Read-onlyIdempotent

Get one DNS zone by domain name.

Inputs: domain (required), userId.

ws_zone_listList DNS zonesA
Read-onlyIdempotent

List the DNS zones on the account. For the records inside a zone use the v2 tool ws_dns_record_list — v1 record CRUD is deprecated and deliberately not exposed.

Inputs: page, userId, pagesize.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 30 tools

    Disambiguation5/5

    Each tool targets a distinct resource-action pair (e.g., list vs. get for hosting, databases, mailboxes, VPS, invoices). Even similar-sounding tools like ws_dns_zone_get and ws_zone_get differ by lookup key (service vs. domain), and ws_service_get vs. ws_hosting_get are clearly scoped by description.

    Naming Consistency5/5

    All tools follow the consistent ws_verb_noun snake_case pattern (e.g., ws_dns_record_list, ws_hosting_vhost_get, ws_vps_snapshot_list). No style mixing or vague verbs.

    Tool Count2/5

    With 30 tools, the surface is heavily over-populated for a typical MCP server. While the scope spans many resource types (DNS, FTP, hosting, DBs, mail, VPS, invoices), the count exceeds the 'heavy' 16-25 band and feels excessive even for a broad control-panel API.

    Completeness2/5

    The tool set is almost entirely read-only; there are no create, update, or delete operations for any resource (DNS records, FTP accounts, databases, mailboxes, VPS snapshots, etc.). The descriptions explicitly exclude actions like paying invoices and v1 record CRUD, leaving significant gaps for an expected management surface.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers