The documentation site for Mobium, published at https://mobiumdev.github.io/. Built with Docusaurus.
| Where it comes from | |
|---|---|
docs/intro.md |
written here |
docs/quickstart/, docs/guides/ |
copied from the Mobium repository's docs/, links pointed at this site or at GitHub |
docs/reference/ |
generated: a page per command, per MCP tool, and per tool in each of the five clients |
examples/ |
written here: one scenario per example in canonical.json, and its translation into each client |
data/runs.json, static/img/shots/ |
what the CLI examples printed and showed on an Android 15 emulator |
The reference is never written by hand. scripts/extract.py reads the
commands' own --help, the MCP server's tools/list and each client's doc
comments into data/mobium.json; scripts/generate.py writes the pages from
that, the examples and the runs. So a page cannot describe a flag or a
method that no longer exists — the next build drops it.
scripts/check_examples.py holds each example to its surface:
- the MCP arguments against the tool's schema, the command against its flags;
- every client's code by compiling or type-checking it against that client —
Python against an autospec of
Device, JavaScript withtsc --strictagainstindex.d.ts, Go withgo vet, Java withjavac, .NET withdotnet build.
A missing toolchain fails the check rather than skipping it. CI runs all of it before building.
scripts/capture.py runs the CLI examples on an emulator and records their
output and screenshots. It changes device settings and puts them back, and it
refuses anything but an emulator. Output is shown only under an example whose
command it ran verbatim; a screenshot from any other command says which one in
its caption.
Needs Node 20+, Python 3.10+, Go, and a checkout of mobiumdev/mobium.
npm ci
git clone https://github.com/mobiumdev/mobium.git ../mobium
go build -C ../mobium -o "$PWD/mobium" ./cmd/mobium
MOBIUM_SRC=../mobium MOBIUM_BIN=./mobium npm run gen
MOBIUM_SRC=../mobium npm run check # also needs javac and dotnet
npm startmobium.ref names the Mobium branch or commit the site is built from; CI
builds on every push, and daily, so the reference follows it.
This site is MIT licensed. Mobium itself is under the Apache License 2.0.