Deploy from VS Code with Hostwares MCP
One JSON file in your project. Then the agent in VS Code can deploy the repository, read its logs, set its environment and attach your domain, with you approving anything that costs money.
Add the server
VS Code: Add to .vscode/mcp.json in your project
{
"servers": {
"hostwares": {
"type": "http",
"url": "https://mcp.hostwares.com",
"headers": {
"Authorization": "Bearer hwk_your_key_here"
}
}
}
}Open the file in VS Code and start the server from the link shown above its entry.
Ask
- > Deploy this repo to Hostwares as my-app
- > Why is my-app returning 502? Check the logs
- > Set DATABASE_URL on my-app and redeploy
- > Point app.example.com at my-app
- > Create a Postgres database for my-app
A deploy returns a price and an approval link; the build starts once the invoice is paid. Deleting data or erasing a machine asks for approval every time.
What the agent can do
Every tool below exists today for every client. Nothing here is a roadmap.
Sites and deploys
deploy- Order a site from a GitHub repo. Returns a price and an approval link.create_upload- Deploy a folder that is not on GitHub.list_sites- Your sites, their status and URL.get_status- One site's status, including whether it is running.get_site_config- Domain, port, repo, branch, build and start commands.redeploy_site- Build again; the current version serves until the new one is ready.restart_site- Restart a site.stop_site- Take a site offline (asks for approval).start_site- Start a stopped site.deployment_history- Past deploys of a site.instance_power- Start, stop or restart your Cloud Instance (stop asks for approval).
Logs and health
get_logs- Recent build and deploy logs.diagnose_site- One check of logs, HTTP, the app and its database together.verify_site_health- Waits until a site really serves traffic.http_check- Status, timing, redirects and headers of any URL.verify_ssl- A real TLS handshake against a domain.
Environment
list_env_vars- Variable names on a site. Values are never shown.set_env- Set or change variables.
Domains
add_domain- Attach your domain. SSL is automatic.get_domains- Domains on your sites.get_domain_info- Expiry, nameservers and lock status of your registered domain.dns_list_records- DNS records of your domain.dns_create_record- Add or update a DNS record on your domain.dns_delete_record- Delete a DNS record (asks for approval).
Email hosting
email_list_mailboxes- Mailboxes and disk use on your email hosting.email_create_mailbox- Create a mailbox; the password is shown once.email_reset_mailbox_password- Give a mailbox a new password, shown once (asks for approval).email_delete_mailbox- Delete a mailbox and its mail (asks for approval).email_dns_status- The MX, SPF, DKIM and DMARC records your mail domain needs.
Databases
create_database- Order PostgreSQL, MySQL, MariaDB, Redis or MongoDB. Asks for approval; set up once the invoice is paid.list_databases- Your databases.get_database_status- One database's status.verify_db_connection- Checks that the database engine itself answers.db_schema- PostgreSQL: tables, columns, indexes, constraints and roles.db_query- PostgreSQL: one read-only SELECT. Never changes data.db_execute- PostgreSQL: apply a change or migration in one transaction (asks for approval).db_connection_info- PostgreSQL: health, and how your app connects. No host or password is shown.db_create_app_role- PostgreSQL: a limited login for your app, never the admin user (asks for approval).db_start- Start a stopped database.db_restart- Restart a database.db_stop- Stop a database (asks for approval).
Supabase instances
supabase_status- Which containers of your Supabase instance are up.supabase_logs- Recent log lines of one Supabase service, secrets masked.supabase_start- Start your Supabase instance.supabase_restart- Restart your Supabase instance.supabase_stop- Stop your Supabase instance (asks for approval).
Backups
create_backup- Take a database backup now (needs a backup pack on it).list_backups- A database's backup pack and its recent backups.list_vm_backups- Restore points of a site or database server.request_vm_restore- Ask for a restore from one restore point.
Account
check_invoices- Invoices with their status and payment link.whoami- Which account and access the key has.get_action- Whether an approval is still waiting or done.cancel_resource- Cancel a site or database at the end of its paid period (asks for approval).delete_resource- Ask for a site, database or Supabase instance to be removed (asks for approval; our team removes it).
Questions
Does VS Code need anything installed?+
No. The server is hosted at https://mcp.hostwares.com; VS Code only needs the address and your agent key.
Can the agent spend money without asking?+
No. Hosting is pay-first: a deploy or a new database creates an invoice and nothing is built until you pay it. Deleting data or erasing a machine returns an approval link every time.
What can the agent reach?+
Only your own account, and only what the key's preset allows. A read-only key can see status, logs and lists and change nothing.
Will new tools appear without reconnecting?+
Yes. The client fetches the tool list from the server when it connects, so a tool added server-side is available on the next session.
Does the same setup work in other clients?+
Yes. Claude Code, Cursor, VS Code, Windsurf, ChatGPT and Claude Desktop all connect to the same server; the connect guide has each one.