websupport-mcp
websupport-mcp
MCP-сервер (TypeScript, ESM, stdio), оборачивающий REST API v1 + v2 Websupport — DNS, FTP, хостинг, базы данных, почтовые ящики, VPS и счета — предоставляемый как инструменты MCP с подписанной HMAC-SHA1 аутентификацией.
Статус: в разработке. Все 50 инструментов реализованы, и сервер работает. Осталось проверить на аккаунте с реальными ресурсами, упаковать и выпустить. См. IMPLEMENTATION_PLAN.md для прогресса.
Уровни риска
Инструменты регистрируются в трёх уровнях, и уровень ограничивает регистрацию — развёртывание только для чтения вообще не видит инструмент записи в tools/list, поэтому оно не тратит контекст клиента и не предоставляет никаких возможностей.
Уровень | Опция включения | Дополнительный шлюз на вызов | Сейчас |
| всегда включено | — | 30 инструментов |
|
| — | 13 инструментов |
|
|
| 7 инструментов |
Инструмент является destructive, если он уничтожает состояние, которое нельзя дёшево воссоздать — не просто потому, что он пишет. Мягкая перезагрузка VPS — это write; жёсткое выключение питания — destructive, потому что оно может повредить незавершённые записи. Создание снимка — write; восстановление — destructive, потому что оно отбрасывает всё, что было после.
Две опции включения независимы: WEBSUPPORT_ALLOW_DESTRUCTIVE=1 сам по себе не разблокирует инструменты записи, и наоборот.
Аргумент confirm: true, а не MCP-элиситация, является границей безопасности. Согласование протокола может остановиться на версии значительно ниже той, что поддерживает элиситацию — 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": "…"
}
}
}
}Учётные данные
Создайте пару доступа к API Standard в WebAdmin (Security → API keys). Пара только для DynDNS аутентифицируется на /nic/update и ни на чём другом.
Переменная | Обязательна | По умолчанию | Примечания |
| да | — | Идентификатор пары. |
| да | — | Секрет пары. Используется для подписи HMAC-SHA1; никогда не логируется и не возвращается в ошибке. |
| нет |
| Выбор рынка — см. ниже. |
| нет |
| Одно из |
| нет | выкл | Установите |
| нет | выкл | Установите |
Скопируйте .env.example для локальной разработки. .env игнорируется git.
Рынки
Websupport — региональный бренд team.blue/Loopia, поэтому хост API выбирает рынок. Одно и то же приложение обслуживает каждый хост — GET /v2/docs/openapi.json байт-в-байт одинаков на всех — так что переключение рынков — это конфигурация, а не изменение кода.
Рынок |
|
Словакия (по умолчанию) |
|
Чехия |
|
Венгрия |
|
Швеция |
|
Неопознанный хост выводит предупреждение в stderr и всё равно используется, поэтому недавно добавленный рынок работает без ожидания релиза.
Документация
Документ | Что содержит |
Каждый инструмент: уровень, метод + путь, требование confirm. Сгенерировано из реестра — никогда не редактируется вручную. | |
Что фактически доказано о каждом инструменте, а что нет. Прочтите это, прежде чем доверять любому инструменту в производстве. |
Область применения
Создание заказов и конечные точки оплаты счетов/заказов намеренно вне области применения и проверяются тестами на отсутствие. CRUD записей DNS v1 и CRUD FTP-аккаунтов v1 устарели на стороне провайдера и не предоставляются — инструменты 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 покрывает две действующие линии LTS, 22 и 24, и собирает и проводит дымовые тесты пакета на каждой.
Для сборки также нужен 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 toolsws_auth_checkVerify API credentialsARead-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 databaseARead-onlyIdempotent
Get one database by id, including its name, type and connection details.
Inputs: hostingId (required), databaseId (required), userId.
ws_db_listList databasesARead-onlyIdempotent
List the databases on a hosting service.
Inputs: hostingId (required), userId.
ws_db_statsDatabase statisticsBRead-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 usersBRead-onlyIdempotent
List the database users on a hosting service.
Inputs: hostingId (required), userId.
ws_dns_record_listList DNS recordsARead-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 zoneARead-onlyIdempotent
Get the DNS zone attached to a service.
Inputs: service (required).
ws_ftp_account_getGet FTP accountARead-onlyIdempotent
Get one FTP account by id. The password is never returned.
Inputs: service (required), ftpAccount (required).
ws_ftp_account_listList FTP accountsARead-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 serviceARead-onlyIdempotent
Get one hosting service by id or uuid, including its package, limits and current usage.
Inputs: hostingId (required), userId.
ws_hosting_listList hosting servicesARead-onlyIdempotent
List the hosting services on the account.
Inputs: page, userId, pagesize.
ws_hosting_statsHosting statisticsARead-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 hostARead-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 hostsARead-onlyIdempotent
List the virtual hosts (domains) served by a hosting service.
Inputs: hostingId (required), userId.
ws_invoice_getGet invoiceARead-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 invoicesARead-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 PDFARead-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 mailboxARead-onlyIdempotent
Get one mailbox by id, including its address, quota and forwarding configuration.
Inputs: hostingId (required), mailboxId (required), userId.
ws_mailbox_listList mailboxesARead-onlyIdempotent
List the mailboxes on a hosting service.
Inputs: hostingId (required), userId.
ws_mail_statsMail statisticsARead-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 serviceARead-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 servicesARead-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 accountARead-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 VPSARead-onlyIdempotent
Get one VPS by id or name, including its specification, IP addresses and power state.
Inputs: vpsId (required), userId.
ws_vps_listList VPS instancesBRead-onlyIdempotent
List the VPS instances on the account.
Inputs: page, userId, pagesize.
ws_vps_snapshot_listList VPS snapshotsARead-onlyIdempotent
List the snapshots taken of a VPS, with their names and creation times.
Inputs: vpsId (required), userId.
ws_vps_statsVPS statisticsARead-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 accessARead-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 zoneBRead-onlyIdempotent
Get one DNS zone by domain name.
Inputs: domain (required), userId.
ws_zone_listList DNS zonesARead-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
Scored across 30 tools
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.
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.
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.
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
Related MCP Connectors
Manage your Servera hosting over MCP: VPS/VDS, DNS, firewall, backups, SSL, billing, tickets.
Manage your Servera hosting over MCP: VPS/VDS, DNS, firewall, backups, SSL, billing, tickets.
MCP server for DNSimple — domains, DNS zone records, availability, pricing and contacts.
Related MCP Servers
- AlicenseBqualityCmaintenanceMCP server to help manage a WHMCS installation.6224MIT
- AlicenseNot gradedqualityFmaintenanceA comprehensive MCP server for managing cPanel web hosting accounts via UAPI, enabling file, database, email, domain, cron, backup, and system monitoring operations.3MIT
- AlicenseBqualityDmaintenanceMCP server for the adm.tools / ukraine.com.ua hosting API, providing tools to manage hosting services, accounts, sites, and web apps.51MIT
- AlicenseAqualityDmaintenanceMCP server for the DreamHost API that enables DNS management (list, add, remove records) and API metacommands.51MIT