# Infrastructure Hoster — MCP Server Static sites and SPAs: one project is one subdomain. Endpoint: `https://hoster.worker.myinfrastructure.click/mcp` Protocol: MCP revision 2026-07-28, Streamable HTTP, stateless. `POST` only — `GET` and `DELETE` answer 405. Revision 2025-11-25 (the `initialize` handshake) is served too, statelessly; its clients find the authorization server metadata at `https://hoster.worker.myinfrastructure.click/.well-known/oauth-authorization-server`. ## Authentication — OAuth 2.1, and nothing else ``` Authorization: Bearer ``` The token is issued by Infrastructure Auth and identifies a PERSON. Your client discovers the authorization server on its own: call the endpoint without a credential, read the 401, follow the challenge. ``` WWW-Authenticate: Bearer resource_metadata="https://hoster.worker.myinfrastructure.click/.well-known/oauth-protected-resource", scope="auth:read auth:write" ``` **API keys do not authenticate here.** Infrastructure Hoster's key is the credential of the REST API; sending it to this endpoint returns 401. MCP is for people, the REST API is for machines — and the token, unlike a key, says which person and with which consent. ### The audience is what isolates one server from another The token's `aud` must be `https://hoster.worker.myinfrastructure.click/mcp`. A token issued for another Infrastructure MCP is refused here even carrying the same scope names (RFC 8707). It is the audience, not the scope name, that separates one service from the next. ### Connecting ```bash claude mcp add --transport http hoster https://hoster.worker.myinfrastructure.click/mcp ``` No key in the command, and no secret in a config file: you approve in the browser and the client stores the token. ## Tools — four, light, that do everything the panel does Since 2026-11-06 every Infrastructure MCP has the same four tools. They reach the panel's own API, so whatever the panel does, the agent does, with the person's own rights; the whole catalogue costs the agent under 3,400 characters. | Tool | What it does | |---|---| | `hoster_guide` | the routes and the operations, in one table — read it first | | `hoster_read` | `GET` on a route of the API, or a reading operation (`op` + `args`) | | `hoster_write` | `POST`, `PUT` or `PATCH`, or a writing operation: create, edit, publish, a new key, rotate | | `hoster_delete` | delete, revoke, disable or cancel, in two calls | **Deleting asks the person, in the chat.** The first call of `hoster_delete` changes nothing: it answers with what would happen and a `confirm` code. Show it to the person and call again with `confirm` only after they say yes; the code lasts 10 minutes and covers exactly that call. `hoster_write` refuses a route that destroys. Approving, rejecting or answering what an agent asked stays with the person, in the panel. A token with only `auth:read` sees `hoster_guide` and `hoster_read`. The owner always comes from the token, never from a tool argument — that is the defence against prompt injection. ### The operations — the tools of before, called by name ### Read — scope `auth:read` - `hoster_audit_project` - `hoster_check_name` - `hoster_deploy_status` - `hoster_get_project` - `hoster_list_deployments` - `hoster_list_projects` - `hoster_list_webhooks` ### Write — scope `auth:write` - `hoster_check_domain` - `hoster_create_webhook` - `hoster_delete_project` - `hoster_deploy_ticket` - `hoster_purge_cache` - `hoster_rollback` - `hoster_set_cache` - `hoster_set_domain` - `hoster_set_variables` Publishing does not send bytes through the agent: `hoster_deploy_ticket` returns a terminal command, and the CLI uploads the files. ## Errors A business error is a RESULT, not a transport failure: HTTP 200 with `isError: true` and a readable reason. The agent needs the refusal as an answer it can act on. Transport and authentication failures do use HTTP status: | Status | Meaning | |---|---| | 401 | No credential, an invalid token, or an API key sent instead of a token | | 403 | Identity known, scope missing | | 404 | Unknown method | | 405 | `GET` or `DELETE` — this revision has no session | ## Also see - `https://myinfrastructure.click/products/hoster/llms.txt` — the REST API, where the API key belongs - `https://myinfrastructure.click/products/auth/llms-mcp.txt` — Auth as the authorization server