# OpenAPI

URL: https://docs.hanzo.ai/docs/cli/openapi

> The `hanzo mcp` commands.

Also for this capability: [API](https://docs.hanzo.ai/docs/openapi/openapi) · **CLI** · [SDKs](https://docs.hanzo.ai/docs/sdks)

The served contract: the OpenAPI document every client, tool list and command group is generated from, its command projection, the agent endpoint that offers the same operations over MCP, and the index a client follows from the API root to reach any of it.

[API reference →](https://docs.hanzo.ai/docs/openapi/openapi)

```bash
hanzo openapi.json get
```

Every command takes `--json` for the raw response and `--help` for its own flags. Sign in once with `hanzo auth login`; the commands below use that session, and the org they act in is the one it carries.

| Command                  | What it does                                                  |
| ------------------------ | ------------------------------------------------------------- |
| `hanzo mcp create`       | The agent endpoint: every subsystem's operations as MCP tools |
| `hanzo openapi commands` | Every operation this API answers, as a command                |
| `hanzo openapi.json get` | The API description this SDK was generated from               |
