Documentation source for the Mosoo API docs site.
- Live docs: mosoo.ai/docs
- Landing page and blog source: langgenius/mosoo
- Mosoo repository: langgenius/mosoo
This repository contains the Mintlify documentation for calling published Mosoo Agents. The API Reference is generated from localized OpenAPI snapshots:
mosoo-openapi.en.generated.json
mosoo-openapi.zh-Hans.generated.json
mosoo-openapi.generated.json is kept as an English compatibility copy for older links or tooling.
Install the Mintlify CLI:
npm i -g mintRun the docs locally:
mint devThe preview runs at http://localhost:3000.
docs.jsonconfigures the Mintlify site, navigation, theme, and API reference.*.mdxcontains the English documentation pages.zh-Hans/contains the Simplified Chinese documentation pages.mosoo-openapi.en.generated.jsonis the English OpenAPI snapshot used by the English API Reference.mosoo-openapi.zh-Hans.generated.jsonis the Simplified Chinese OpenAPI snapshot used by the Chinese API Reference.mosoo-openapi.generated.jsonis a compatibility copy of the English snapshot.llms.txtis the standard LLM discovery entry point for the docs site.coding-agents.mdis the coding-agent-oriented Markdown guide. Its OpenAPI contract section is regenerated from the English OpenAPI snapshot.scripts/sync-openapi-specs.mjsregenerates and validates the localized OpenAPI snapshots from the Mosoo source repo.scripts/openapi.zh-Hans.translations.jsonstores the Simplified Chinese translations keyed by the English source text.images/contains brand and documentation assets.
Mosoo is the source of truth. By default, the sync script fetches https://github.com/langgenius/mosoo.git into a temporary directory and generates from that online Git source.
npm run openapi:syncCheck whether generated snapshots are stale:
npm run openapi:checkGenerate from a specific online branch, tag, or SHA:
MOSOO_REPO_REF=<branch-or-sha> npm run openapi:syncThe sync script:
- fetches the Mosoo source from GitHub unless
MOSOO_REPO_DIRis explicitly set for a local debugging override; - imports Mosoo's public OpenAPI document factory from the source repo;
- normalizes public-facing token wording to
API token; - generates English and Simplified Chinese OpenAPI snapshots;
- regenerates
llms.txtas the LLM discovery entry point; - regenerates the generated OpenAPI contract block in
coding-agents.md; - in
syncmode, records newly missing Simplified Chinese translation keys and uses the English source text as a non-blocking fallback until the translation is filled in; - in
checkmode, fails if any visibletitle,summary,description, orbearerFormatstring lacks a completed Chinese translation; - verifies the Chinese snapshot has the same non-text structure as the English snapshot.
Optional source controls:
MOSOO_REPO_REF: online branch, tag, or SHA to fetch. Defaults tomain.MOSOO_REPO_URL: source repository URL. Defaults tohttps://github.com/langgenius/mosoo.git.MOSOO_REPO_TOKEN: token for private repository or private submodule access.MOSOO_REPO_DIR: explicit local checkout override for debugging only.
The docs workflow .github/workflows/sync-openapi.yml can run manually, nightly, or from a Mosoo repository_dispatch event named mosoo-openapi-changed. When generated snapshots change, it commits them back to this repo so the configured docs host can redeploy.
Secrets used by the sync workflow:
MOSOO_REPO_TOKEN: optional token for checking out a private Mosoo source repo.MINTLIFY_API_KEYandMINTLIFY_PROJECT_ID: optional; triggers Mintlify's deployment API after a generated commit.
The Mosoo source repo should include .github/workflows/docs-openapi-dispatch.yml and configure MOSOO_DOCS_DISPATCH_TOKEN with permission to dispatch workflows in KurosawaGeeker/mosoo-docs. That workflow listens to OpenAPI source paths and sends the current Mosoo SHA to this repo.