MCP
Give your agent a publish tool.
HostX ships two MCP servers. They expose the same tools and take the same API key — the difference is filesystem access.
Local · stdio
Runs on your machine
{
"mcpServers": {
"hostx": {
"command": "npx",
"args": ["-y", "hostx-mcp"],
"env": { "HOSTX_API_KEY": "hx_...", "HOSTX_API_URL": "https://api.xhost.buzz" }
}
}
}The only way publish_site("./dist") can be a single call — a hosted server cannot read your disk.
Hosted · streamable HTTP
No install
{
"mcpServers": {
"hostx": {
"url": "https://api.xhost.buzz/mcp",
"headers": {
"Authorization": "Bearer hx_..."
}
}
}
}For agents that already have the file contents, or that run somewhere else entirely.
Tools
publish_site(directory | files, site?) → urlPublish static files and get a live HTTPS URL. Creates the site on first call.
update_site(site, files) → urlPublish a new immutable deployment to an existing site.
add_domain(site, hostname) → dns recordAttach a custom hostname and return the DNS record to create.
verify_domain(hostname) → statusCheck DNS and start certificate issuance.
rollback(site, deployment?) → urlPoint the live URL back at an earlier deployment.
get_analytics(site?, period?) → totalsRead views, visitors, requests and bandwidth.