Metadata-Version: 2.1
Name: aisitehosting
Version: 1.0.0
Summary: Command-line tool and MCP server for the AISiteHosting.com API
Requires-Python: >=3.9
Provides-Extra: mcp
Requires-Dist: mcp<3,>=2; extra == "mcp"
Description-Content-Type: text/markdown

# aisitehosting: CLI and MCP server

Command-line tool and AI-assistant (MCP) server for the AISiteHosting.com API. The CLI uses only the Python standard library.

```
pipx install https://aisitehosting.com/downloads/aisitehosting-1.0.0-py3-none-any.whl            # CLI
pipx install 'aisitehosting[mcp] @ https://aisitehosting.com/downloads/aisitehosting-1.0.0-py3-none-any.whl'   # + MCP server
```
(The current link and SHA-256 are on https://aisitehosting.com/docs/api/. From a checkout: `pipx install ./clients`.)

1. Create an account, confirm your email, then **Dashboard > API tokens** and create a token (shown once).
2. `aisitehosting login` (or `export AISITEHOSTING_TOKEN=ash_...`).

```
aisitehosting create my-shop
aisitehosting checkout my-shop --plan monthly --wait     # prints a link; you pay in the browser
aisitehosting deploy my-shop ./dist                      # zips the folder, uploads, shows the analysis report
aisitehosting domains my-shop --add example.com          # prints the DNS records for both kinds of DNS host
aisitehosting restore my-shop
aisitehosting redirects my-shop --add /old-page /new-page          # 301; also /blog/* -> /news/:splat
aisitehosting not-found my-shop --mode redirect --target /404.html   # or --mode spa
aisitehosting --json status <deployment-id>              # JSON for scripts
```
Exit codes: 0 ok, 1 error, 2 deployment failed or rejected, 3 payment required, 4 needs manual review.

## AI assistants (MCP)

```json
{"mcpServers": {"aisitehosting": {"command": "aisitehosting-mcp", "env": {"AISITEHOSTING_TOKEN": "ash_..."}}}}
```
Tools: whoami, check_subdomain, list_sites, get_site, create_site, get_payment_link, wait_for_payment, deploy_site,
get_deployment, restore_site, set_not_found, list_redirects, add_redirect, remove_redirect, list_domains, add_domain, check_domain, remove_domain, get_traffic.
The assistant never handles payment: it gets a checkout URL for you to open. Tokens can't delete sites or reach admin features.
Set `AISITEHOSTING_URL` to point at another server (for example a local dev instance).
