Ploi MCP by usefulapi

v1.1.0
io.usefulapi/ploi Checked 8 hours ago Published 6 days ago

Read servers, sites, logs, deployments and certificates; start site deployments in Ploi.

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

ploi_get_user Get account

Get the authenticated Ploi account: name, email, plan, plan expiry and billing details. Good first call to confirm which account the token belongs to. Ploi API: GET /api/user.

ploi_list_servers List servers

List the servers in the account with PHP versions, IP address, site count and status. Use it to find server ids for the other tools. Ploi API: GET /api/servers.

ParameterTypeDescription
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (default 15, maximum 50).

ploi_get_server Get a server

Get one server by id: IP address, PHP and MySQL versions, site count, monitoring flag and status. Ploi API: GET /api/servers/{id}.

ParameterTypeDescription
server_id *integerThe server id (from ploi_list_servers).

ploi_list_server_logs List server activity logs

List the activity log entries of one server (paginated, newest first). Use it to see recent changes made on the server. Ploi API: GET /api/servers/{id}/logs.

ParameterTypeDescription
server_id *integerThe server id (from ploi_list_servers).
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (default 15, maximum 50).

ploi_get_server_monitoring Get server monitoring data

Get the latest monitoring statistics for one server (CPU, memory, disk). Monitoring must be installed on the server first. Ploi API: GET /api/servers/{server}/monitor.

ParameterTypeDescription
server_id *integerThe server id (from ploi_list_servers).

ploi_list_sites List sites on a server

List the sites on one server with domain, project type, PHP version, status, last deploy time and disk usage. Ploi API: GET /api/servers/{server}/sites.

ParameterTypeDescription
server_id *integerThe server id (from ploi_list_servers).
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (default 15, maximum 50).

ploi_get_site Get a site

Get one site by server and site id: domain, web directory, project root, PHP version, deploy settings and status. Ploi API: GET /api/servers/{server}/sites/{id}.

ParameterTypeDescription
server_id *integerThe server id (from ploi_list_servers).
site_id *integerThe site id (from ploi_list_sites).

ploi_list_site_logs List site logs

List the latest log entries of one site (paginated). Use a log name from this list with ploi_get_site_log. Ploi API: GET /api/servers/{server}/sites/{id}/log.

ParameterTypeDescription
server_id *integerThe server id (from ploi_list_servers).
site_id *integerThe site id (from ploi_list_sites).
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (default 15, maximum 50).

ploi_get_site_log Get a site log entry

Get one site log entry with its full content, by log name from ploi_list_site_logs. Ploi API: GET /api/servers/{server}/sites/{id}/log/{log}.

ParameterTypeDescription
log *stringThe log name, from ploi_list_site_logs.
server_id *integerThe server id (from ploi_list_servers).
site_id *integerThe site id (from ploi_list_sites).

ploi_list_deployments List deployments

List the deployment history of one site, newest first (finished and scheduled deployments). The site needs a repository. Ploi API: GET /api/servers/{server}/sites/{site}/deployments.

ParameterTypeDescription
server_id *integerThe server id (from ploi_list_servers).
site_id *integerThe site id (from ploi_list_sites).
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (default 15, maximum 50).

ploi_list_certificates List SSL certificates

List the SSL certificates of one site (type, domain and status). Ploi API: GET /api/servers/{server}/sites/{site}/certificates.

ParameterTypeDescription
server_id *integerThe server id (from ploi_list_servers).
site_id *integerThe site id (from ploi_list_sites).

ploi_list_databases List databases on a server

List the databases on one server with their type and name. Ploi API: GET /api/servers/{server}/databases.

ParameterTypeDescription
server_id *integerThe server id (from ploi_list_servers).
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (default 15, maximum 50).

ploi_list_crontabs List cron jobs on a server

List the cron jobs on one server. Needs a token with the cron job read scope. Ploi API: GET /api/servers/{server}/crontabs.

ParameterTypeDescription
server_id *integerThe server id (from ploi_list_servers).
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (default 15, maximum 50).

ploi_list_daemons List daemons on a server

List the background processes (daemons) on one server. Ploi API: GET /api/servers/{server}/daemons.

ParameterTypeDescription
server_id *integerThe server id (from ploi_list_servers).
pageintegerPage number for pagination (default 1).
per_pageintegerResults per page (default 15, maximum 50).

ploi_deploy_site Deploy a site

Start a deployment of one site now. It runs the site's configured deploy script on the live server and returns a deployment_id at once; follow it with ploi_list_deployments. Not safe to repeat: each call starts a new deploy. Ploi API: POST /api/servers/{server}/sites/{id}/deploy.

ParameterTypeDescription
server_id *integerThe server id (from ploi_list_servers).
site_id *integerThe site id (from ploi_list_sites).