Hostkey Cloud

io.github.hostkey-cloud由 GitHub 账号 hostkey-cloud 发布v1.0.8更新于 Oct 30, 2026

MCP server for Hostkey .com (InvAPI): servers, power, order, DNS, S3, billing

已验证Streamable HTTP可网页运行云端与基础设施开发者工具

概览

AI 生成的概览

Hostkey Cloud MCP 服务器,让助手通过 InvAPI 查看、订购、开关机并配置 Hostkey 独立服务器和虚拟服务器的网络。

可以做什么
  • 列出并查看账户服务器、硬件传感器、标签和电源状态
  • 浏览目录:预设机型、现货服务器、操作系统、软件、流量套餐与价格
  • 订购服务器、开关机、重装系统并执行 PXE 任务
  • 管理网络:端口、IP 封禁、PTR 记录、主 IP 以及 DNS 区域和域名
  • 处理快照、ISO 镜像、S3 存储桶、Remote Hands 工单和账单
  • 管理 API 密钥与账户信息,并提供原始 API 调用工具和任务轮询
适用场景
适合管理 Hostkey 基础设施的用户,让助手查询服务器信息、查看状态与传感器、查询目录价格,或执行重启、修改 DNS、订购新服务器等日常操作。
运行要求
可通过 npx 以 stdio 本地运行(从源码构建需 Node.js 22.18 及以上),也可连接托管远程端点并使用 Authorization bearer 头。需要 Hostkey InvAPI API 密钥,通过 HOSTKEY_API_KEY 或 Authorization 头提供;DNS 写入需要 pdns/edit 权限。可选 HOSTKEY_TOKEN_TTL 和 HOSTKEY_ALLOW_DESTRUCTIVE。
安装前请注意
该密钥可访问你的 Hostkey 账户,建议使用专用密钥或单服务器密钥。写操作需要 confirm=true,重装系统、PXE 和服务取消还需 HOSTKEY_ALLOW_DESTRUCTIVE=1。订购会产生费用,order_server 默认 dry_run。删除 API 密钥会使使用它的应用失去访问,关闭端口或封禁 IP 会中断连接。使用托管端点时密钥会发送给第三方服务。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Hostkey Cloud,将其添加到工作区。
  2. 连接 Authorization token 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.hostkey-cloud%2Fmcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "hostkey-cloud": {
      "type": "http",
      "url": "https://mcp.hostkey.com/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

Hostkey MCP Server

MCP server for Hostkey (.com portal, InvAPI invapi.hostkey.com). Runs locally over stdio — Cursor, VS Code, and other MCP clients. Hosted remote: https://mcp.hostkey.com/mcp (cloud agents).

Endpointhttps://invapi.hostkey.com (hardcoded)
AuthHOSTKEY_API_KEY
Tools132 typed tools + call_api_raw

Gives the model access to your Hostkey account: servers, catalog and ordering, power, OS reinstall, network, DNS, snapshots, IPMI/console, ISO, S3, Remote Hands, billing, and API keys.

1. Get an API key

InvAPI → API keys → create a key.

Prefer a dedicated key for MCP. Per-server keys limit access to one server. DNS writes need the pdns/edit permission.

2. Install

Cursor

[Install in Cursor]

Click the button, replace YOUR_API_KEY with your InvAPI key, then confirm.

Or add to .cursor/mcp.json manually:

json
{  "mcpServers": {    "hostkey-mcp-server": {      "command": "npx",      "args": ["-y", "hostkey-mcp-server"],      "env": {        "HOSTKEY_API_KEY": "your-api-key"      }    }  }}

Remote (cloud agents)

No local Node/npx. Point the client at the hosted endpoint and send your InvAPI key:

json
{  "mcpServers": {    "hostkey": {      "url": "https://mcp.hostkey.com/mcp",      "headers": {        "Authorization": "Bearer your-api-key"      }    }  }}

VS Code

.vscode/mcp.json:

json
{  "servers": {    "hostkey-mcp-server": {      "command": "npx",      "args": ["-y", "hostkey-mcp-server"],      "env": {        "HOSTKEY_API_KEY": "your-api-key"      }    }  }}

Optional: HOSTKEY_TOKEN_TTL, HOSTKEY_HTTP_TIMEOUT, HOSTKEY_ALLOW_DESTRUCTIVE (see .env.example).

From source (Node.js ≥ 22.18): npm install && npm run build.

3. Confirming dangerous operations

Every write call needs confirm=true. Without it, nothing changes.

Also:

  • order_server defaults to dry_run — a real order only after explicit consent;
  • OS reinstall, PXE, and service cancellation require HOSTKEY_ALLOW_DESTRUCTIVE=1;
  • passwords and tokens are masked in responses.

Long jobs (deploy, reinstall) return a callback key — poll with check_task.

4. Tools

Groups (full list via tools/list):

GroupExamples
Serversget_servers, get_server, get_power_status
Cataloglist_presets, list_os, list_traffic_plans
Power & orderpower_on, power_off, order_server, reinstall_server
PXEcreate_reinstall_task → … → clear_pxe_config
Network / DNSports, PTR, zones and records
Snapshots, ISO, S3VM snapshots, images, buckets
Remote Handsduty-shift tickets (request_rh_*, rhr_*)
Billinginvoices, payments, contacts
Misccheck_task, call_api_raw

Prompts

PromptPurpose
order_server_promptguided server order
reinstall_server_promptOS reinstall
troubleshoot_server_promptdiagnostics

Or just ask: “list my servers” / “order a VPS in NL”.

Docs

来源:README.md,提交 a50b3dd

工具

132

get_servers

List Hostkey account servers with filters. Before the first call, automatically refreshes inventory (eq/update_servers). Returns server IDs and brief data; use get_server for the full card.

输入参数ipmacgroupstatuslocation

get_server

Full server details by ID (eq/show): configuration, network, status, location.

输入参数id必填

get_power_status

Current server power status (on/off).

输入参数id必填

get_server_sensors

Hardware sensor readings (temperatures, voltages, fans). Bare-metal only.

输入参数id必填

get_server_tags

All server tags (tags/list). Tags store arbitrary key-value pairs.

输入参数id必填

search_servers_by_tag

Search servers by tag name or value (tags/search_user). Returns server IDs.

输入参数value必填

list_presets

Current list of available instant servers (VM/BM/GPU/vGPU) with prices for a location. No token required. Use to pick a preset before ordering.

输入参数location必填

search_presets

Search free servers matching a preset name (e.g. vm.pico). Requires auth.

输入参数name必填scopelocation必填

get_preset_pricing

Prices for available presets in given currencies (presets/info). No token required.

输入参数currencies

list_preset_groups

Preset groups for catalog categories (presets/groups). No token required.

无需输入参数。

get_preset

Details for one preset or all presets (presets/show). May require auth depending on permissions.

输入参数id

list_stock_servers

Available stock servers (physical servers of standard configs; deploy within a business day). No token required.

输入参数group必填location必填

get_stock_server

Details for a specific stock server (stocks/show).

输入参数id必填

list_os

Operating systems available for a preset/server (os/list). Without instance_id returns OS for all presets. No token required.

输入参数instance_id

list_software

Software (marketplace apps) available for auto-install (software/list). No token required.

输入参数locationinstance_id

list_traffic_plans

Available traffic plans for a preset in a location (traffic_plans/list). No token required.

输入参数location必填instance_id必填

get_account_info

Current API token and account info (auth/info): available calls, account type and role, linked server IDs. Useful to verify the connection.

无需输入参数。

logout

End the current API session (auth/logout): session token is removed from InvAPI. On the next call the client will sign in again with the API key.

无需输入参数。

list_api_keys

List all account API keys (api_keys/list).

无需输入参数。

list_server_api_keys

List API keys issued for a specific server (api_keys/list_for_server).

输入参数server_id必填

get_api_key

Details for a specific API key (api_keys/view).

输入参数id必填

get_api_key_history

API key usage history for a period (api_keys/history).

输入参数id必填period_toperiod_from

create_api_key

Create a new API key for the account or a specific server (api_keys/add). The key value is shown once in the response — save it.

输入参数ipname必填active必填confirm必填server_idlogin_notify_method必填login_notify_address

update_api_key

Update API key settings (api_keys/edit): name, IP allowlist, notifications, active flag.

输入参数id必填ipname必填active必填confirm必填login_notify_method必填login_notify_address

delete_api_key

Delete an API key (api_keys/delete). DESTRUCTIVE: apps using the key will lose access.

输入参数id必填confirm必填

get_network_status

Server network interface status (net/get_status): port, switch, VLAN, speed, MAC, link status. Optional port limits the query to one interface (useful when another NIC has no upstream_id).

输入参数id必填port

get_port_graphs

Port utilization graphs for a period (net/show_cacti): day/month/year.

输入参数id必填port必填graph必填

get_ip_info

Network interface information by IP address (ip/get_ip).

输入参数ip必填

get_ptr_record

Current PTR record (reverse DNS) for an IP address (ip/get_ptr).

输入参数id必填ip必填

port_on

Enable a server network port (net/port_on).

输入参数id必填port必填confirm必填

port_off

Disable a server network port (net/port_off). DESTRUCTIVE: the server will lose network connectivity on this interface.

输入参数id必填port必填confirm必填

block_ip

Block an IP address on the server at the Hostkey network level (net/block_ip). Useful for abuse requests.

输入参数id必填ip必填confirm必填four_hoursdescription必填

unblock_ip

Unblock an IP address on the server (net/unblock_ip).

输入参数id必填ip必填confirm必填

update_ptr_record

Update the PTR record for an IP address (ip/update_ptr). Multiple records are passed separated by %0A.

输入参数id必填ip必填ptr必填confirm必填

set_main_ip

Set the primary IP address of the server (ip/set_main) when there are multiple addresses.

输入参数id必填ip必填main必填confirm必填

list_dns_zones

List all DNS zones on the account on Hostkey PowerDNS servers (pdns/list_zones).

无需输入参数。

get_dns_zone

DNS zone contents: all records (A, AAAA, CNAME, MX, TXT, etc.) from the authoritative server (pdns/view_zone).

输入参数zone必填

list_dns_domains

List all user domains from the domains table (pdns/list_domains).

无需输入参数。

list_dns_subdomains

List subdomains by server ID (pdns/list_subdomains).

输入参数server_id必填

add_dns_domain

Create a DNS zone and add a domain to the domains table (pdns/add_domain). Requires pdns/edit permission.

输入参数name必填confirm必填

delete_dns_domain

Delete a domain by ID: DNS zone, the domain itself, and all its subdomains (pdns/delete_domain). DESTRUCTIVE. Requires pdns/edit permission.

输入参数confirm必填domain_id必填server_id必填

add_dns_subdomain

Add a subdomain to the subdomains table (pdns/add_subdomain). Requires pdns/edit permission.

输入参数name必填confirm必填domain_id必填server_id必填

edit_dns_subdomain

Update a subdomain (pdns/edit_subdomain). Requires pdns/edit permission.

输入参数id必填confirm必填server_id

delete_dns_subdomain

Delete a subdomain from the subdomains table (pdns/delete_subdomain). DESTRUCTIVE. Requires pdns/edit permission.

输入参数id必填confirm必填server_id必填

add_dns_zone

Create a DNS zone on the authoritative PowerDNS server (pdns/add_zone). Requires pdns/edit permission.

输入参数dnskindname必填dnssecrrsetsconfirm必填mastersnameservers

delete_dns_zone

Delete a DNS zone by name along with all records and metadata (pdns/delete_zone). DESTRUCTIVE. Requires pdns/edit permission.

输入参数zone必填confirm必填

add_dns_record

Add or update a DNS record in a zone (pdns/add_dns). Requires pdns/edit permission. For SRV records, fill in proto/priority/weight/port/target. Fields mname/rname are marked required for SOA checks in the docs — fill them in on error.

输入参数ttlnameporttype必填zone必填mnameprotornametargetweightconfirm必填content必填另有 3 个

delete_dns_record

Delete a DNS record from a zone (pdns/delete_dns). DESTRUCTIVE. Requires pdns/edit permission.

输入参数name必填type必填zone必填confirm必填

get_snapshots

List virtual machine snapshots (vm/get_snapshot): name, snapshot_id, date.

输入参数id必填

get_vm_engine

Virtualization engine information (vm/get_engine).

无需输入参数。

get_vm_stats

Virtual machine statistics (vm/load_stats).

输入参数id必填

create_snapshot

Create a virtual machine snapshot (vm/create_snapshot). Async operation. Track with check_task.

输入参数id必填name必填confirm必填

remove_snapshot

Delete a snapshot (vm/remove_snapshot). DESTRUCTIVE: the snapshot is permanently deleted. Deletion is only possible on a powered-off VM.

输入参数id必填name必填confirm必填

restore_snapshot

Restore a VM from a snapshot (vm/restore_snapshot). DESTRUCTIVE: the current VM disk state will be overwritten with the snapshot state.

输入参数id必填name必填confirm必填

get_vnc_console

Access the server VNC console (eq/console): returns console.vv config in Base64 for virt-viewer.

输入参数id必填

start_novnc

Start a NoVNC (HTML5) server console session (eq/novnc): returns a link to open in the browser.

输入参数id必填white_ip

list_post_install_tasks

Available post-install Ansible tasks (jenkins/get_tasks) with applicability tags: gpu, bm, vm, vgpu, default. Without a token — general list; with a token — tasks available to the specific user.

无需输入参数。

run_post_install_task

Run a Jenkins/Ansible task on a server (jenkins/call): task ID or name from list_post_install_tasks + extra params. E.g. installing GPU drivers after OS reinstall.

输入参数id必填task必填paramsconfirm必填

add_static_nat

Create a static DNAT to the server IPMI (nat/add_static_nat): public IP for classic IPMI access. Distinct from Secure IPMI Proxy in the panel — Proxy Active alone may not satisfy this call. Async; track with check_task. On server_ipmi_acl_required pass ip_acl.

输入参数id必填ttlip_aclconfirm必填secured

remove_static_nat

Remove static DNAT to the server IPMI (nat/remove_static_nat).

输入参数id必填confirm必填

clear_static_nat

Remove stale static NAT forwarding rules by internal IP (nat/clear_static_nat).

输入参数ip必填confirm必填

drop_nat

Delete a NAT record from the database (nat/drop_nat). DESTRUCTIVE, internal/ops action.

输入参数idipconfirm必填

add_ipmi_user

Create a temporary IPMI user for web access to IPMI (eq/add_ipmi_user).

输入参数id必填confirm必填

remove_ipmi_user

Remove a temporary IPMI user (eq/remove_ipmi_user).

输入参数id必填confirm必填

reset_ipmi

Reboot the server IPMI module (eq/unit_reset). Use when IPMI is unresponsive.

输入参数id必填confirm必填

request_rh_power_on

Remote Hands request: power on the server manually (jira/request_pon). Creates a Remote Hands ticket for the datacenter on-call shift; status and correspondence are in the ticket (link will be emailed).

输入参数id必填confirm必填

request_rh_power_off

Remote Hands request: power off the server manually (jira/request_poff). DESTRUCTIVE for running services. Creates a Remote Hands ticket for the datacenter on-call shift; status and correspondence are in the ticket (link will be emailed).

输入参数id必填confirm必填

request_rh_reboot

Remote Hands request: reboot the server manually (jira/request_reboot). Creates a Remote Hands ticket for the datacenter on-call shift; status and correspondence are in the ticket (link will be emailed).

输入参数id必填confirm必填

request_rh_pxe_boot

Remote Hands request: boot the server via PXE (jira/request_PXEboot). Needed when reinstalling OS on servers without a remote management module. Creates a Remote Hands ticket for the datacenter on-call shift; status and correspondence are in the ticket (link will be emailed).

输入参数id必填confirm必填

request_rh_kvm

Remote Hands request: attach IP KVM to the server (jira/request_kvm). Creates a Remote Hands ticket for the datacenter on-call shift; status and correspondence are in the ticket (link will be emailed).

输入参数id必填confirm必填

request_rh_check

Remote Hands request: check the server and boot it into the OS (jira/request_check). Creates a Remote Hands ticket for the datacenter on-call shift; status and correspondence are in the ticket (link will be emailed).

输入参数id必填confirm必填

request_sales_assistance

Ticket to the sales department (jira/request_assistance): cancellation or transfer of a service and similar requests. Describe details in message.

输入参数idconfirm必填message必填subject

create_reinstall_task

PXE reinstall step 1: create an OS reinstall master key (eq/reinstall). Returns reinstall_key used by check_task to track install stages. DESTRUCTIVE: part of the process that wipes server disks.

输入参数id必填confirm必填

create_pxe_config

PXE reinstall step 2: create a PXE config for OS install (eq/create_pxe). DESTRUCTIVE.

输入参数id必填os_id必填confirm必填ssh_keyhostname必填root_pass必填reinstall_keypost_install_scriptpost_install_callback

set_boot_device

Set server boot order (eq/boot_dev): pxe — network boot (reinstall step 3), disk — boot from disk (step 6), cd — mounted ISO.

输入参数id必填media必填confirm必填

clear_pxe_config

PXE reinstall step 7: remove the PXE config (eq/clear_pxe). REQUIRED after completion — otherwise an unexpected reinstall may occur on the next reboot.

输入参数id必填confirm必填hostname必填

list_iso_images

List available ISO images (iso/list_iso). InvAPI requires a server id (for client keys); images are matched to the server configuration.

输入参数id必填

get_uploaded_isos

List ISO images uploaded by the client (iso/uploaded).

无需输入参数。

upload_iso

Upload a new ISO image by URL (iso/upload). Available to clients.

输入参数url必填nameconfirm必填

add_iso_image

Add a new ISO image or update an existing one by name (iso/add). Requires special 'add' permission.

输入参数urlname必填confirm必填

mount_iso

Mount an ISO image on a server (iso/mount_iso). Async operation. Callback key returned — track with check_task. InvAPI expects `iso` (name or id). Pass iso, or name / iso_id aliases.

输入参数id必填isonameiso_idconfirm必填

unmount_iso

Unmount an ISO image from a server (iso/unmount_iso). Async operation. Callback key returned — track with check_task.

输入参数id必填confirm必填

delete_iso_image

Delete an ISO image by ID (iso/delete). DESTRUCTIVE. Per docs, available only to Hostkey staff — clients will likely get a permission error.

输入参数id必填confirm必填

s3_list_plans

List available S3 storage plans (s3/list_plans).

输入参数location

s3_get_locations

List available locations for S3 (s3/get_available_locations).

无需输入参数。

s3_get_buckets

List S3 account buckets and usage (s3/get_buckets_rmq). Pass s3uid or account_id from s3_get_users. May return a task key — then track with check_task.

输入参数s3uidaccount_id

s3_get_buckets_via_queue

Same as s3_get_buckets: list buckets via s3/get_buckets_rmq. Prefer s3_get_buckets.

输入参数s3uidaccount_id

s3_get_files

List files in a bucket with pagination and search (s3/get_files).

输入参数pagelimits3uidbucket必填searchaccount_id

s3_get_users

List S3 users with service, traffic, and storage usage info (s3/get_users). Full filtering is available to administrators. Use returned s3uid/id with s3_get_buckets.

输入参数location

s3_show_key

Get a decrypted S3 access key (s3/show_key). SECRET: do not log or share with third parties.

输入参数s3uidkey_type必填account_id

s3_create_account

Create an S3 account: bind a plan and initial bucket (s3/create_account). Requires authentication.

输入参数bucketconfirm必填plan_idlocation

s3_create_bucket

Create a new bucket in an existing S3 account (s3/create_bucket).

输入参数s3uidbucket必填confirm必填account_id

s3_create_order

Create a paid S3 storage order linked to billing (s3/create_order). MONEY: creates a real order/invoice.

输入参数confirm必填plan_idlocation

s3_delete_file

Delete a file from a bucket (s3/delete_file). DESTRUCTIVE: the file is permanently deleted.

输入参数file必填s3uidbucket必填confirm必填account_id

s3_delete_bucket

Delete a bucket from an S3 account (s3/delete_bucket). DESTRUCTIVE: all files in the bucket will be deleted.

输入参数s3uidbucket必填confirm必填account_id

s3_delete_account

Fully delete a user's S3 account (s3/delete_account). DESTRUCTIVE: all buckets and data will be deleted. Requires HOSTKEY_ALLOW_DESTRUCTIVE=1.

输入参数s3uidconfirm必填account_id

s3_delete_payment_account

Initiate S3 account deletion via service cancellation in billing (s3/delete_payment_account). DESTRUCTIVE: an end date will be set on the active service. Requires HOSTKEY_ALLOW_DESTRUCTIVE=1.

输入参数s3uidconfirm必填account_id

s3_cancel_account_deletion

Cancel S3 service deletion initiated via billing and restore the account to active status (s3/cancel_payment_account_deletion).

输入参数s3uidconfirm必填account_id

s3_update_traffic_info

Update S3 account traffic information (s3/update_traffic_info). Available to administrators only.

输入参数s3uidconfirm必填account_id

list_rhr_requests

List Remote Hands requests with filtering by location and status (rhr/list).

输入参数statuslocation

create_rhr_request

Create a Remote Hands request (rhr/add): on-site datacenter shift work that cannot be done remotely. Describe the work in as much detail as possible in comment. Use only if the remote server management module is unavailable/not working.

输入参数id必填comment必填confirm必填request_type

add_rhr_comment

Add a client-visible message to the request history (rhr/chat).

输入参数id必填confirm必填message必填

discard_rhr_request

Cancel/close a Remote Hands request (rhr/discard). DESTRUCTIVE: the request will be cancelled.

输入参数id必填confirm必填

get_billing_client

Client data from billing (whmcs/get_client): contacts, currency, account status.

无需输入参数。

get_invoices

Full list of account invoices (whmcs/get_invoices).

无需输入参数。

get_invoice

Data for a specific invoice for payment (whmcs/get_invoice).

输入参数invoice_id必填

get_server_invoices

Invoices related to a specific server (whmcs/get_related_invoices).

输入参数id必填

get_server_billing_data

Billing information for a server rental (whmcs/get_billing_data).

输入参数id必填

get_transactions

List of transactions for the client account (whmcs/transactions).

输入参数invoice_idtransaction_id

get_credit_history

Credit balance movement: credit additions and deductions (whmcs/getcredits).

输入参数id必填

get_payment_gateway

Payment methods for a specific invoice (whmcs/getpaymentgw).

输入参数invoice_id必填

download_invoice

Download an invoice as PDF (whmcs/download_invoice). InvAPI returns binary PDF; MCP returns JSON with encoding=base64 and data — decode to a .pdf file.

输入参数invoice_id必填

get_cancellation_requests

List of active service cancellation requests (whmcs/get_cancellation_requests).

输入参数id

get_contacts

List of additional account contacts (whmcs/get_contacts).

无需输入参数。

update_billing_client

Update client data in billing (whmcs/update_client): name, company, address, email, phone, etc.

输入参数confirm必填billing_citybilling_emailbilling_statebilling_countrybilling_address1billing_address2billing_lastnamebilling_postcodebilling_firstnamebilling_companynamebilling_phonenumber

reset_billing_password

Reset the billing account password (whmcs/reset_password): a reset link is sent to the given email. Email must match the account email.

输入参数email必填confirm必填

add_contact

Add an additional contact to the account (whmcs/add_contact). WARNING: the contact is created with a random email — change it in Invapi.

输入参数confirm必填

update_contact

Update an additional contact (whmcs/update_contact): email, password, phone. Providing a phone enables SMS 2FA.

输入参数email必填confirm必填password2contact_id必填phonenumber

delete_contact

Delete an additional account contact (whmcs/delete_contact). DESTRUCTIVE.

输入参数confirm必填contact_id必填

generate_due_invoice

Create the next invoice for a server (whmcs/generate_due_invoice).

输入参数id必填confirm必填

create_addfunds_invoice

Create an invoice to top up the credit balance (whmcs/create_addfunds). MONEY: creates a real invoice for the given amount.

输入参数amount必填confirm必填

apply_credit

Pay an invoice in full or in part from the credit balance (whmcs/apply_credit). MONEY: deducts funds from the account.

输入参数amount必填confirm必填invoice_id必填

mass_pay

Create a group invoice to pay multiple invoices at once (whmcs/mass_pay). MONEY.

输入参数confirm必填invoices必填

request_cancellation

Request service cancellation (whmcs/request_cancellation). DESTRUCTIVE: cancellation_type=1 — immediate cancel with partial refund (if possible), 0 — cancel at end of billing period. Requires HOSTKEY_ALLOW_DESTRUCTIVE=1.

输入参数id必填confirm必填cancellation_type必填terminate_reason_custom

delete_cancellation_request

Withdraw a service cancellation request (whmcs/delete_cancellation_request).

输入参数id必填confirm必填

check_task

Check async job status by callback key (eq_callback/check). Many InvAPI operations (power on/off, order, reinstall, snapshots) return {"result":"OK","callback":"<key>"}. Pass that key here: result="Not ready" — still running; result="OK" — finished (key then expires). Server deploy can take 10–30 minutes. If the client sent progressToken, emits notifications/progress.

输入参数key必填

power_on

Power on a server (eq/on). Async: response includes a callback key for check_task.

输入参数id必填confirm必填

power_off

Power off a server (eq/off). DESTRUCTIVE: interrupts all services on the server. Requires confirm=true. Async: response includes a callback key for check_task.

输入参数id必填confirm必填

reboot_server

Reboot a server (eq/reboot). Interrupts services during reboot. Requires confirm=true. Async: response includes a callback key for check_task.

输入参数id必填confirm必填

order_server

Order an instant or stock server (eq/order_instance). IMPORTANT: ordering charges the credit balance or creates an invoice. Defaults to dry_run=true — only checks preset/OS availability and returns a summary without placing an order. For a real order pass dry_run=false and confirm=true after explicit user consent on the cost. Deploy takes 10–30 minutes; status via check_task.

输入参数os_id必填own_ospreset必填confirmdry_runsoft_idssh_keyhostnamepromocoderoot_pass必填traffic_plan必填deploy_notify另有 4 个

reinstall_server

Reinstall OS on an existing server (simplified path via eq/order_instance with id). DESTRUCTIVE: all disk data will be erased. Requires HOSTKEY_ALLOW_DESTRUCTIVE=1 in the server environment, confirm=true, and re-entering the server's current hostname. Async: status via check_task.

输入参数id必填os_id必填own_osconfirm必填soft_idssh_keyhostname必填root_pass必填deploy_notifypost_install_script

call_api_raw

Universal direct InvAPI call by resource and action, for resources without typed tools (e.g.: iso — ISO image library, s3 — S3 Object Storage, rhr — Remote Hands new version; see action list in the docs: https://hostkey.com/documentation/apidocs/). ALWAYS requires confirm=true; destructive/paid actions additionally require HOSTKEY_ALLOW_DESTRUCTIVE=1. Prefer typed tools when they exist for the needed operation.

输入参数authaction必填paramsconfirm必填resource必填

版本历史

6
  1. v1.0.8最新Oct 23, 2026
  2. v1.0.7Oct 21, 2026
  3. v1.0.4Oct 16, 2026
  4. v1.0.3Oct 14, 2026
  5. v1.0.2Sep 23, 2026
  6. v1.0.1Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分