> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tiny-brain.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Platform integration

> mcp, hooks, as

## mcp

The MCP server and its platform installers.

```bash theme={null}
tiny-brain mcp                       # boot the stdio server (for MCP clients)
tiny-brain mcp install [platform]    # register with an AI platform
tiny-brain mcp uninstall [platform]
tiny-brain mcp status
tiny-brain mcp list                  # supported platforms
```

MCP-aware clients boot the server with `command: npx`,
`args: [tiny-brain, mcp]`. Environment variables read on startup:

| Variable                    | Default         | Effect                                          |
| --------------------------- | --------------- | ----------------------------------------------- |
| `AUTOSTARTDASHBOARD`        | `true`          | set `false` to stop the dashboard auto-starting |
| `DASHBOARD_PORT`            | `8765`          | dashboard port                                  |
| `DATADIR`                   | `~/.tiny-brain` | data + log directory                            |
| `LOGLEVEL`                  | `info`          | `debug` · `info` · `warn` · `error`             |
| `CLIENTID` / `CLIENTSECRET` | —               | Tiny Brain account credentials                  |

`TINY_BRAIN_*` aliases are accepted for each.

## hooks

The TDD git hooks (commit-msg, post-commit) — installed by `init`, managed
directly when needed:

```bash theme={null}
tiny-brain hooks status
tiny-brain hooks install            # --force to overwrite custom hooks
tiny-brain hooks uninstall
```

These hooks are the enforcement layer of [the loop](/concepts/tdd-loop):
header validation, phase advancement, and review kickoff all live here.

## as

Prints a persona's formatted context to stdout — the same content the
session-start hook injects. Useful for inspecting what the agent is being
told.

```bash theme={null}
tiny-brain as developer
```

See [Personas](/concepts/personas) for what a persona is and how the default
is configured.
