PrivateByte

v1.0.1
com.privatebyte/mcp Checked 1 day ago Published 3 days ago

Manage PrivateByte servers, backups, proxies, billing and support tickets from an AI agent.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_products List products and prices

List what can be ordered, with monthly price and whether it is in stock. Use it first when someone asks for a new server. Filter with category "vps" for servers, "gateway" for Gateways (a dedicated IP routed to your own machine) or "proxies" for proxy credit and static proxy addresses. Prices are whole minor units (599 = 5.99).

ParameterTypeDescription
categorystring

get_product Get a product

Read one product: its prices per billing cycle and the operating systems and extras it can be ordered with. Call it before create_server to see the operating system names.

ParameterTypeDescription
product_id *integer

create_server Order a new server

Order a new server AND pay for it from the account wallet. THIS SPENDS REAL MONEY. It works in two steps. Step 1: call it with only product_id; nothing is ordered, and the reply lists the questions from checkout (operating system, each extra such as additional IPv4 or disk, billing cycle, hostname, coupon, SSH keys for the first login) with their choices and prices. Ask the person every question; never choose for them. Step 2: call it again with every answer, the ceiling max_price_minor (whole minor units, 599 = 5.99) and a request_id. If any answer is missing, or the first invoice would be ab…

ParameterTypeDescription
product_id *integerFrom list_products
billing_cyclestringOne of the cycles the product is sold in, for example monthly
coupon_codeA coupon code, or null when the person has none
extrasobjectOne entry per extra the product offers: the option name (or id) mapped to the chosen value name (or id). Choose the free value to decline an extra.
hostnameA name for the server, or null when the person does not want one
max_price_minorintegerSpending ceiling for the first invoice, in whole minor units
osOperating system: a name or part of one, for example "Ubuntu 24.04", or its value id
quantityintegerHow many identical servers. Only set it when the person asked for more than one.
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.
ssh_keysarrayIds of saved SSH keys to log in with, or an empty list for none. Not asked for Windows.

order_product Order a product

Order something that is not a server (a Gateway, a static proxy address, proxy credit) AND pay for it from the account wallet. THIS SPENDS REAL MONEY. Two steps, like create_server. Step 1: call it with only product_id; nothing is ordered, and the reply lists the questions (each option such as the country, billing cycle, quantity, coupon) with choices and prices. Ask the person every question; never choose for them. Step 2: call it again with every answer, the ceiling max_price_minor (whole minor units) and a request_id. Needs a key with orders:create, billing:read and invoices:pay. For server…

ParameterTypeDescription
product_id *integerFrom list_products
billing_cyclestringOne of the cycles the product is sold in
coupon_codeA coupon code, or null when the person has none
extrasobjectOne entry per option the product has: the option name (or id) mapped to the chosen value name (or id), for example {"ISP Country": "United States"}
max_price_minorintegerSpending ceiling for the first invoice, in whole minor units
quantityintegerHow many units
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

list_servers List servers

List the servers on the account with their id, name, plan, IP address and billing status.

get_server Get a server

Read one server: power state, addresses, size, operating system and current resource use.

ParameterTypeDescription
server_id *integer

server_power Start, stop or restart a server

Start, stop or restart a server. stop asks the operating system to shut down cleanly. force_stop cuts power at once and can lose unsaved data: it needs confirm set to the server id. Needs a key with vm:power.

ParameterTypeDescription
action *string
server_id *integer
confirmintegerOnly for force_stop: repeat the server id
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

get_operation Check a running operation

Follow work started by another tool (power, backup, reinstall). status pending or running means keep waiting; succeeded and failed are final.

ParameterTypeDescription
operation_id *string
server_id *integer

create_snapshot Take a snapshot

Take a snapshot of a server's disk as it is now, to roll back to later. Free. Needs a key with vm:write.

ParameterTypeDescription
server_id *integer
namestring
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

create_backup Start a backup

Start a full backup of a server. Free. It runs in the background; follow it with get_operation. Needs a key with vm:write.

ParameterTypeDescription
server_id *integer
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

list_snapshots List snapshots

List a server's snapshots with id, name, status and size. Only status available can be restored or deleted.

ParameterTypeDescription
server_id *integer

restore_snapshot Restore a snapshot

ROLLS THE SERVER'S DISK BACK to a snapshot. Everything written since that snapshot is lost. Ask the person before calling this. confirm must repeat the server id. Needs a key with vm:destroy. The account owner is emailed.

ParameterTypeDescription
confirm *integerRepeat the server id
server_id *integer
snapshot_id *integerFrom list_snapshots
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

delete_snapshot Delete a snapshot

Delete one snapshot for good; it cannot be restored afterwards. The server itself is not touched. Ask the person first. confirm must repeat the server id. Needs a key with vm:destroy.

ParameterTypeDescription
confirm *integerRepeat the server id
server_id *integer
snapshot_id *integerFrom list_snapshots
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

list_backups List backups

List a server's backups with id, status, type (manual or auto), size and time. Only status created can be restored.

ParameterTypeDescription
server_id *integer

restore_backup Restore a backup

OVERWRITES THE SERVER'S WHOLE DISK with a backup. Everything written since that backup is lost and the server is offline while it restores. Ask the person before calling this. confirm must repeat the server id. Needs a key with vm:destroy. The account owner is emailed.

ParameterTypeDescription
backup_id *integerFrom list_backups
confirm *integerRepeat the server id
server_id *integer
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

delete_backup Delete a backup

Delete one backup for good; it cannot be restored afterwards. The server itself is not touched. Ask the person first. confirm must repeat the server id. Needs a key with vm:destroy.

ParameterTypeDescription
backup_id *integerFrom list_backups
confirm *integerRepeat the server id
server_id *integer
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

firewall Manage a server firewall

A server's firewall. action list shows the rules in the order they are checked (the first match decides; traffic no rule matches is allowed). add appends one rule; remove deletes one rule by rule_id. add and remove change who can reach the server, so ask the person first and set confirm to the server id. list needs vm:read; add and remove need vm:destroy.

ParameterTypeDescription
action *string
server_id *integer
confirmintegerFor add and remove: repeat the server id
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.
ruleobjectOnly for add
rule_idintegerOnly for remove: from action list

server_usage Server resource usage

A server's resource use: CPU, memory, disk and network now, plus up to 24 past samples over range (1h, 6h, 24h or 7d). A gap in the history means no sample, not zero use.

ParameterTypeDescription
server_id *integer
rangestring

tickets Read and reply to support tickets

Follow up on support tickets. action list shows the account's tickets (pass cursor from the last page for more); get reads one ticket with its replies; reply adds a message; close closes it. Open a new ticket with open_ticket. Never put passwords or keys in a message. list and get need tickets:read; reply and close need tickets:write.

ParameterTypeDescription
action *string
cursorstringOnly for list
messagestringOnly for reply
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.
ticket_idintegerFor get, reply and close

set_rdns Request reverse DNS

Request a reverse DNS (PTR) record for one of a server's addresses, for example for a mail server; staff review it before it is set. hostname null withdraws a request, or asks staff to remove a record that is already live (status removal_pending until they do). Without ip it lists the server's addresses and their reverse DNS. Needs vm:write (vm:read to list).

ParameterTypeDescription
server_id *integer
hostnameThe name the address should point back to; null to withdraw
ipstringAn address from the list
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

rename_server Rename a server

Change a server's hostname (the name the machine calls itself), its display name in the account, or both. Needs vm:write.

ParameterTypeDescription
server_id *integer
hostnamestring
namestring
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

schedules Backup and power schedules

A server's automatic backup and power schedules. action get reads both. set_backup takes backup: {enabled, schedule: {type daily|weekly|monthly, time: {hour, minutes}, days} or null, limit 3|5|7|14|30 kept}; days is empty for daily, 1-7 for weekly, 1-31 for monthly. set_power takes power: {enabled, timezone (IANA, e.g. Europe/London), days (0 Sunday to 6), start "HH:MM" or null, stop "HH:MM" or null}. Needs vm:read to get, vm:write for backup, vm:power for power.

ParameterTypeDescription
action *string
server_id *integer
backupobjectOnly for set_backup
powerobjectOnly for set_power
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

iso Mount or unmount an ISO

Boot a server from an ISO image, for a custom install or a rescue disk. action list shows the images this server can use. mount sets a STOPPED server to boot from iso_image_id; unmount detaches it so the server boots from its disk again. mount and unmount change how the server starts, so ask the person first and set confirm to the server id. list needs vm:read; mount and unmount need vm:destroy.

ParameterTypeDescription
action *string
server_id *integer
confirmintegerFor mount and unmount: repeat the server id
iso_image_idintegerOnly for mount: from action list
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

top_up Create a wallet top-up invoice

Add funds to the account wallet: creates an unpaid funding invoice in the account currency and returns pay_url, a client-area link where the person pays it. Nothing is charged by this tool; the wallet grows only once the person pays. Agree the amount with the person first. amount_minor is whole minor units (1000 = 10.00). Needs a key with billing:pay and billing:read.

ParameterTypeDescription
amount_minor *integer
request_id *stringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

add_ssh_keys Add SSH keys to a server

Let SSH keys log in to a server as its administrator (root). Give key_ids of saved keys, or public_key to save a new key first and add it. The server must be running; keys already on it stay and nothing restarts. Windows servers take no SSH keys. confirm must repeat the server id, because this grants login to the machine. Needs a key with vm:destroy (and vm:write to save a new key). The account owner is told.

ParameterTypeDescription
confirm *integerRepeat the server id
server_id *integer
key_idsarrayIds of saved keys, from the create_server question or the ssh_keys.list operation
namestringA label for the new key
public_keystringA new public key line, for example "ssh-ed25519 AAAA... name". Never a private key.
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

reinstall_server Reinstall a server

ERASES THE WHOLE DISK of a server and installs a fresh operating system. Everything on it is lost and it is offline until the install finishes. Ask the person before calling this. confirm must repeat the server id. Needs a key with vm:destroy. The account owner is emailed.

ParameterTypeDescription
confirm *integerRepeat the server id
os *Operating system name or part of one, for example "Debian 12", or its image id
server_id *integer
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

reset_server_password Reset a server password

Set a new administrator (root) password on a server and return it ONCE. The old password stops working. The password is a secret: give it only to the account owner and do not store it. confirm must repeat the server id. Needs a key with vm:destroy.

ParameterTypeDescription
confirm *integerRepeat the server id
server_id *integer
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

open_console Open a server console

Get a short-lived console (VNC over WebSocket) connection to a server. This is full interactive control of the machine, so treat the reply as a secret and give it only to the account owner. confirm must repeat the server id. Needs a key with vm:destroy.

ParameterTypeDescription
confirm *integerRepeat the server id
server_id *integer

cancel_service Cancel a service

Cancel a service (a server's id is also its service id). Billing stops now and this cannot be undone here. The server keeps running to the end of the paid period, then is suspended; once cancelled it can no longer be managed through this server. Ask the person before calling this. confirm must repeat the service id. Needs a key with services:cancel.

ParameterTypeDescription
confirm *integerRepeat the service id
service_id *integer
reasonstring
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

get_balance Get wallet balance

Read the account wallet balance, in whole minor units with its currency. Check it before create_server or pay_invoice.

list_invoices List invoices

List recent invoices with their total and status. Set unpaid_only to see what is still owed.

ParameterTypeDescription
unpaid_onlyboolean

pay_invoice Pay an invoice from the wallet

Pay one unpaid invoice from the account wallet. THIS SPENDS REAL MONEY: max_amount_minor is the most that may be taken (whole minor units). It takes the smaller of that, what the invoice owes and the wallet balance, so it can be a part payment. Needs a key with invoices:pay and billing:read.

ParameterTypeDescription
invoice_id *integer
max_amount_minor *integer
request_id *stringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

proxy_status Proxy balance and status

Read the proxy balance, today's traffic, the default tier and where to connect. It never returns the proxy credential.

proxy_spend Proxy spend by tier

Read the proxy traffic, request count and amount charged over the last 1, 7 or 30 days, in total and for each tier used.

ParameterTypeDescription
days1, 7 or 30; defaults to 1

list_static_proxy_ips List static proxy IPs

List the dedicated static proxy IPs on the account: address, country, status and the day each is paid through. It never returns their credential.

list_proxy_whitelist List proxy whitelist

List the IPv4 addresses allowed to use the proxy without a username and password, how many there are and the most the list can hold. Needs a key with proxy:whitelist.

add_proxy_whitelist_ip Add an IP to the proxy whitelist

Add one public IPv4 address to the proxy whitelist. Any connection from that address is then accepted with no username or password and is charged to the account balance, so it is the same as giving that address the credential. Private and reserved addresses are refused; IPv6 is not supported. Needs a key with proxy:whitelist.

ParameterTypeDescription
ip *stringOne public IPv4 address, for example 203.0.113.9
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

remove_proxy_whitelist_ip Remove an IP from the proxy whitelist

Remove one IPv4 address from the proxy whitelist. Connections from it then need the credential, and are refused while whitelist-only mode is on. Needs a key with proxy:whitelist.

ParameterTypeDescription
ip *stringThe IPv4 address to remove, as list_proxy_whitelist shows it
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

get_proxy_whitelist_only Read whitelist-only mode

Read whether the proxy accepts connections from whitelisted addresses only.

set_proxy_whitelist_only Turn whitelist-only mode on or off

Set whether the proxy accepts connections from whitelisted addresses only. With it on and an empty or wrong whitelist, every connection is refused, including ones with the correct credential. Turning it off restores access at once. Needs a key with proxy:whitelist.

ParameterTypeDescription
enabled *booleantrue = whitelisted addresses only
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.

test_proxy Send a proxy test request

Send one request through the account's proxy to a fixed address-echo service and report whether it worked, the exit address, its location and how long it took. The target cannot be chosen. It is real traffic: a few kilobytes are charged to the proxy balance at the tested tier, so the balance must be positive. Needs a key with proxy:credentials.

ParameterTypeDescription
countrystringTwo-letter country code to exit from; omit for any country
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.
sessionstringSticky-session id; omit for a rotating connection
tierstringTier to test, for example standard or mobile; defaults to standard

open_ticket Open a support ticket

Open a support ticket read by PrivateByte staff. Never put passwords or keys in it. department is a name or part of one (for example "Technical" or "Billing"); it defaults to technical support. Needs a key with tickets:write.

ParameterTypeDescription
message *string
request_id *stringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.
subject *string
departmentstring

find_operation Search API operations

Search every operation of the PrivateByte API by words (for example "firewall rule", "reverse dns", "gateway key", "proxy whitelist"). Returns up to 8 matches with what each needs. Use it when no other tool fits, then run the match with call_operation.

ParameterTypeDescription
query *string

call_operation Run an API operation

Run any PrivateByte API operation by its name from find_operation. The operation's tier says what it can do: read changes nothing, safe is reversible, destructive loses data or causes downtime, money spends funds. Ask the person before a destructive or money operation. Destructive operations need their confirm value, money operations their ceiling, exactly as find_operation describes.

ParameterTypeDescription
operation *stringFor example vm.firewall.add
body
path_paramsobject
queryobject
request_idstringAn id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action.