These are the tools BitHut gives your AI through MCP (the way an AI app talks to other services). Your AI calls them when you ask it to do something; you do not call them yourself. The MCP server address is https://api.bithut.app/mcp. Every tool works with the projects of the BitHut account you signed in with when you connected your AI.
Projects
| Tool |
What it does |
Main parameters |
list_projects |
Lists your projects with their last deploy and address, and the account this connection uses (signed_in_as). |
none |
create_project |
Creates an empty project. A deploy also creates one if it does not exist. |
name, kind |
status |
The project’s state as a traffic light (green, yellow, red), its address, where to find the site’s password, recent runs of a scheduled script. |
project |
logs |
The latest log lines of a running project. |
project, lines |
explain |
What is wrong right now, from the last deploy and the logs, with a ready task text for fixing it. |
project |
project_stats |
Page views and visitors for sites, processor, memory and traffic for 24 hours, 7 or 30 days. |
project, period |
pause |
Stops a project but keeps code, data and settings. New versions are built and checked but not started. |
project |
resume |
Starts a paused project again, with the usual trial run. |
project |
test_run |
Runs a paused scheduled script once with BITHUT_DRY_RUN=1. Unless the code checks that variable, it is a real run. |
project |
delete_project |
Deletes a project for good, only after you confirm with its name. |
project, confirm |
Deploying
| Tool |
What it does |
Main parameters |
get_upload_command |
Gives a one-time command that uploads the project folder and deploys it. For AIs that run commands (Claude Code, Codex, Cursor). |
project, kind, schedule, start_command, to_main |
get_upload_page |
Gives a one-time link to a page where you drag the project folder. Valid 30 minutes, works once. |
same as above |
deploy |
Deploys files passed directly in the chat, for AIs without a terminal. Waits up to 4 minutes. |
project, files, kind, schedule, to_main |
deploy_from_github |
BitHut downloads a GitHub repository and deploys it. |
project, repo, branch, path, to_main |
publish |
Puts a preview’s version on the project’s main address without building again, after you confirm. Combines changes if the site changed meanwhile. |
project, person |
refresh_preview_data |
Copies fresh /data and Postgres from the live site into a preview without stopping the site. |
project, person |
get_github_token_command |
Gives a command that sends your read-only GitHub token to BitHut for private repositories, not through the chat. |
file, key, forget |
deploy_status |
The result of a deploy that was still running: status, findings, address. |
deploy_id |
Code
| Tool |
What it does |
Main parameters |
versions |
Every version of a project: its number, when and who put it online, whether it worked, which version it started from. |
project |
get_source |
Gives a one-time command that downloads the code running now, so changes start from it. |
project |
rollback |
Puts back the previous working version, or a chosen one. The last 5 working versions can be started again. Data stays as it is. |
project, deploy_id |
Secrets
| Tool |
What it does |
Main parameters |
set_secret |
Gives a link where you paste a key in the cabinet. It never takes the value from the chat. With preview=true it sets a value for previews only; with build=true it saves a public build setting. |
project, name, build, preview |
list_secrets |
Names of the secrets and build settings. Values are never shown. |
project |
get_secrets_import_command |
Gives a command that moves the keys of a .env file into the project’s secrets. Only names come back. |
project, file |
Data
| Tool |
What it does |
Main parameters |
add_database |
Gives the project its own Postgres database, at DATABASE_URL. |
project |
get_data_upload_command |
Gives a command that sends a SQLite file or a folder from your computer to the project’s disk. |
project, path, to |
get_database_import_command |
Gives a command that copies a Postgres database from another service or loads a .backup export file (Lovable Cloud, pg_dump -Fc). The old address does not go through the chat. |
project, file, key, schemas, include_auth, include_storage |
list_restore_points |
Lists the points your data can go back to: before each deploy and nightly. |
project, what |
restore_data |
Puts data back to a restore point. Data written after it is replaced. |
project, point, what |
Sites and domains
| Tool |
What it does |
Main parameters |
set_public |
Opens a site to everyone or closes it with the password. Your AI opens it only when you ask. |
project, public |
set_open_paths |
Opens some paths of a private site, like a form or a webhook. |
project, paths |
request_log |
The last requests to a site: time, path, status, response time. |
project, lines |
add_domain |
Connects your own domain and says which DNS record to add. |
project, domain |
remove_domain |
Stops serving a site at one of its domains. |
project, domain |
Templates, Google and e-mail
| Tool |
What it does |
Main parameters |
list_templates |
Lists BitHut’s ready templates. |
none |
use_template |
Creates a project from a template and returns its files and steps. |
template, project |
connect_google |
Gives a project access to the Google files you picked, or a link to connect Google first. |
project |
enable_email |
Lets the project send e-mail to your own address, to people of your account, and to other addresses once their owners confirm. |
project |
Plan
| Tool |
What it does |
Main parameters |
plan |
Your plan, what your projects use now, people in the account and how many the plan allows, and the other plans with prices. |
none |
estimate_plan |
Names the cheapest plan that fits a list of projects you have or plan. |
projects |
kind is web (site), worker (background process) or cron (scheduled script). schedule is a cron expression in UTC. See the Glossary.