RunCloud MCP by usefulapi

v1.28.1
io.usefulapi/runcloud Checked 1 day ago Published 6 hours ago

Read RunCloud servers, web apps, databases and logs; deploy, restart services, renew SSL.

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

runcloud_ping Check API connection

Check that the API key works: RunCloud answers with a message ('pong'). GET /ping.

runcloud_list_servers List servers

List the servers connected to the workspace: id, name, provider, IP address, OS, stack, online/connected state, agent and PHP CLI version, auto-update settings and tags. GET /servers.

ParameterTypeDescription
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_get_server Get server

One server by id: provider, IP, OS and version, stack, online state, agent version, update settings, tags. GET /servers/{id}.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).

runcloud_get_server_stats Get server counts

How many web applications, databases, cron jobs and supervisor jobs a server has, and its country. GET /servers/{id}/stats.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).

runcloud_get_server_hardware Get server hardware info

Kernel version, CPU model and cores, memory and disk totals/free, load average and uptime of a server. GET /servers/{id}/hardwareinfo.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).

runcloud_get_server_health Get latest server health

The latest health sample of a server: total/available/used memory and disk space (MB) and load average. GET /servers/{id}/health/latest.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).

runcloud_list_server_logs List server activity logs

The server's activity log (what was changed in RunCloud and when), newest first. GET /servers/{id}/logs.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_list_services List server services

The services on a server (nginx, php-fpm, mariadb, redis, supervisor...) with real name, running state, CPU, memory and version. The realName is what runcloud_control_service needs. GET /servers/{id}/services.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).

runcloud_list_system_users List system users

The system (Linux) users on a server: id, username, whether deletable. Deployment keys and passwords are never returned. GET /servers/{id}/users.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_list_webapps List web applications

List the web applications on a server: id, name, root/public path, PHP version, stack, type (wordpress, custom...), default flag, alias. Deployment webhook keys are not returned. GET /servers/{id}/webapps.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).
searchstringFilter by web application name.

runcloud_get_webapp Get web application

One web application by id (path, PHP version, stack, type, default flag). GET /servers/{id}/webapps/{webapp}.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
webapp_id *integerWeb application id (see runcloud_list_webapps).

runcloud_get_webapp_settings Get web application settings

PHP and FPM/Nginx settings of a web application (disabled functions, timezone, memory and upload limits, process manager...). GET /servers/{id}/webapps/{webapp}/settings.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
webapp_id *integerWeb application id (see runcloud_list_webapps).

runcloud_list_webapp_logs List web application activity logs

The activity log of a web application (settings changes, PHP version changes, deployments), newest first. GET /servers/{id}/webapps/{webapp}/log.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
webapp_id *integerWeb application id (see runcloud_list_webapps).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_list_domains List domain names

The domain names of a web application: id, name, type (primary/alias), www, redirection, wildcard, DNS integration, status. GET /servers/{id}/webapps/{webapp}/domains.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
webapp_id *integerWeb application id (see runcloud_list_webapps).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_get_domain_dns Get domain DNS setup instructions

The DNS records (A, CNAME...) a domain name needs to point at the server. GET /servers/{id}/webapps/{webapp}/domains/{domain}/dns.

ParameterTypeDescription
domain_id *integerDomain name id (see runcloud_list_domains).
server_id *integerRunCloud server id (see runcloud_list_servers).
webapp_id *integerWeb application id (see runcloud_list_webapps).

runcloud_get_webapp_ssl Get web application SSL

The web application's SSL certificate (basic / web-app-level SSL): provider, validity, HTTPS settings. Private keys are never returned. GET /servers/{id}/webapps/{webapp}/ssl.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
webapp_id *integerWeb application id (see runcloud_list_webapps).

runcloud_get_ssl_method Check SSL method and AutoSSL status

Whether the web application uses basic (one certificate for the app) or advanced (one per domain) SSL, and its AutoSSL status. Advanced SSL is a Business/Enterprise feature. GET /servers/{id}/webapps/{webapp}/ssl/advanced.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
webapp_id *integerWeb application id (see runcloud_list_webapps).

runcloud_get_git_deployment Get Git deployment

The Git deployment configured on a web application: provider, branch, repository URL, auto-deploy flag, deployment script and whether it is an atomic deployment. The deployment webhook keys are not returned. The id of the result is the git_id for runcloud_deploy_git. GET /servers/{id}/webapps/{webapp}/git.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
webapp_id *integerWeb application id (see runcloud_list_webapps).

runcloud_list_databases List databases

The databases on a server: id, name, collation. No credentials. GET /servers/{id}/databases.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_list_database_users List database users

The database users on a server (id, username). Passwords are never returned. GET /servers/{id}/databaseusers.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_list_cronjobs List cron jobs

The cron jobs of a server: id, label, user, schedule, command, enabled flag. The id is what runcloud_run_cronjob needs. GET /servers/{id}/cronjobs.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_list_supervisors List supervisor jobs

The supervisor (background worker) jobs of a server: id, label, user, process count, auto start/restart, directory, command. GET /servers/{id}/supervisors.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_get_supervisor_status Get supervisor job status

The live status (RUNNING, FATAL, BACKOFF...), pid and uptime of every supervisor process, by job label. GET /servers/{id}/supervisors/status.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).

runcloud_list_firewall_rules List firewall rules

The firewall rules of a server: type (global/rich), port, protocol, IP address, action. GET /servers/{id}/security/firewalls.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_list_blocked_ips List Fail2Ban blocked IPs

The IP addresses Fail2Ban currently blocks on a server. GET /servers/{id}/security/fail2ban/blockedip.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).

runcloud_list_backups List backups

The backup instances of the workspace: label, what they cover (web app / database), storage, type, frequency, size, status. Filter by server, storage, status or name. GET /backups.

ParameterTypeDescription
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).
searchstringFilter by backup name.
server_idintegerOnly backups of this server id.
statusstringBackup status, e.g. active.
storagestringStorage type, e.g. runcloud or local.

runcloud_list_backup_snapshots List backup snapshots

The snapshots of one backup instance: run date, status, type and size. GET /backups/{id}/snapshots.

ParameterTypeDescription
backup_id *integerBackup instance id (see runcloud_list_backups).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_list_atomic_projects List atomic deployment projects

The atomic Git deployment projects of the workspace: name, provider, repository, branch, auto-deploy, success/failure counts and the latest deployment. Webhook keys are not returned. GET /atomic.

ParameterTypeDescription
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_list_atomic_deployments List atomic deployments

The deployments of an atomic project: commit hash, branch, message, committer, release name, status (DEPLOYING, COMPLETED, FAILED), start and end time. GET /atomic/{project}/deployments.

ParameterTypeDescription
project_id *integerAtomic project id (see runcloud_list_atomic_projects).
pageintegerPage number, from 1 (default 1). Pass the previous reply's next_page.
per_pageintegerResults per page, 1-40 (default 20).

runcloud_control_service Start, restart or reload a service

WRITE: run systemctl start, restart or reload on one service of a server (for example nginx-rc or php81rc-fpm). A restart briefly interrupts that service and the sites behind it. 'stop' is deliberately not offered. Get the realName from runcloud_list_services. PATCH /servers/{id}/services.

ParameterTypeDescription
action *stringsystemctl action.
real_name *stringThe service's realName from runcloud_list_services, e.g. nginx-rc or redis-server.
server_id *integerRunCloud server id (see runcloud_list_servers).

runcloud_deploy_git Force a Git deployment

WRITE: force a Git deployment of a web application now: RunCloud pulls the configured branch and runs the deployment script, which changes the live site's files. Get git_id from runcloud_get_git_deployment (its id). PUT /servers/{id}/webapps/{webapp}/git/{git}/script.

ParameterTypeDescription
git_id *integerGit deployment id (runcloud_get_git_deployment -> id).
server_id *integerRunCloud server id (see runcloud_list_servers).
webapp_id *integerWeb application id (see runcloud_list_webapps).

runcloud_force_deploy_atomic Force an atomic deployment

WRITE: start an atomic deployment of a project now (builds a new release and switches the live symlink when it succeeds). PUT /atomic/{project}/forcedeploy.

ParameterTypeDescription
project_id *integerAtomic project id (runcloud_list_atomic_projects).

runcloud_run_cronjob Run a cron job now

WRITE: force-run one cron job of a server once, right now, outside its schedule. The job's command runs on the server with its configured user. Get the id from runcloud_list_cronjobs. POST /servers/{id}/cronjobs/{job}/run.

ParameterTypeDescription
cronjob_id *integerCron job id (runcloud_list_cronjobs).
server_id *integerRunCloud server id (see runcloud_list_servers).

runcloud_reload_supervisor Reload a supervisor job

WRITE: reload one supervisor job so its worker processes restart (running processes are interrupted). Get the id from runcloud_list_supervisors. POST /servers/{id}/supervisors/{job}/reload.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
supervisor_id *integerSupervisor job id (runcloud_list_supervisors).

runcloud_renew_ssl Renew a Let's Encrypt certificate

WRITE: redeploy (renew) the Let's Encrypt certificate of a web application, which re-issues it and reloads the web server. Let's Encrypt certificates only. For basic SSL pass the ssl_id from runcloud_get_webapp_ssl; for advanced (per-domain) SSL, which requires advanced SSL mode (check runcloud_get_ssl_method), also pass domain_id. PUT /servers/{id}/webapps/{webapp}/ssl/{ssl} or /domains/{domain}/ssl/{ssl}.

ParameterTypeDescription
server_id *integerRunCloud server id (see runcloud_list_servers).
ssl_id *integerSSL certificate id (runcloud_get_webapp_ssl -> id).
webapp_id *integerWeb application id (see runcloud_list_webapps).
domain_idintegerOnly for advanced (per-domain) SSL mode (see runcloud_get_ssl_method): the domain's id.

runcloud_install_letsencrypt_ssl Issue a Let's Encrypt certificate

WRITE: issue and install a free Let's Encrypt certificate for a web application (basic SSL) or for one domain of it (advanced SSL, pass domain_id; this requires advanced SSL mode, see runcloud_get_ssl_method). The web server is reloaded; the domain's DNS must already point at the server. Custom certificates are not supported here. POST /servers/{id}/webapps/{webapp}/ssl or /domains/{domain}/ssl.

ParameterTypeDescription
authorization_method *stringLet's Encrypt challenge: http-01, or dns-01 (needs external_api, a Cloudflare DNS integration).
enable_hsts *booleanSend the HSTS header (browsers will insist on HTTPS).
enable_http *booleanKeep plain HTTP enabled alongside HTTPS.
server_id *integerRunCloud server id (see runcloud_list_servers).
webapp_id *integerWeb application id (see runcloud_list_webapps).
domain_idintegerOnly for advanced (per-domain) SSL mode (see runcloud_get_ssl_method): the domain's id.
environmentstringlive (default, trusted certificate) or staging (test certificate).
external_apiintegerId of the Cloudflare DNS integration; required for dns-01.