# The API

`ahto serve` puts every rpc on one port, `127.0.0.1:8080` by default, on every surface at
once: MCP at `/mcp`, REST at `/v1/...`, JSON-RPC at `/rpc`, GraphQL at `/graphql`, WebSocket
at `/ws`, MQTT over WebSocket at `/mqtt`, gRPC on any path, and Arrow streams at
`/arrow/v1/`. `/openapi.json` describes the REST routes, and `/llms.txt` is a short guide
for agents, built from the live catalog.

```sh
curl 127.0.0.1:8080/v1/source/repositories    # the repositories in the lake
curl 127.0.0.1:8080/llms.txt                  # one line per call
```

A gateway that listens on loopback asks for no sign-in unless the node is an authority
member. [The gateway](/docs/gateway) covers each surface and the source service. The API
explorer, at `/docs/api` in the web app, sends real requests and runs on the
[live demo](https://demo.ahto.dev/docs/api).