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 分