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

# Grok Build

> Use Ollang MCP from xAI's Grok Build terminal coding agent.

# Ollang MCP in Grok Build

[Grok Build](https://docs.x.ai/build/overview) is xAI's terminal coding agent, available through the `grok` CLI. With Ollang MCP, Grok can make localization part of development, release, and CI workflows.

## Setup

<Steps>
  <Step title="Install Grok CLI">
    Install the CLI:

    ```bash theme={null}
    curl -fsSL https://x.ai/cli/install.sh | bash
    ```

    Grok Build requires SuperGrok or X Premium Plus.
  </Step>

  <Step title="Add Ollang MCP">
    Create or edit the user-scope `~/.grok/config.toml`:

    ```toml ~/.grok/config.toml theme={null}
    [mcp_servers.ollang]
    url = "https://mcp.ollang.com/mcp"
    ```

    The remote server also supports `headers` and `bearer_token_env_var` when your setup requires them. You can set common options such as `enabled`, `startup_timeout_sec`, `tool_timeout_sec`, and `tool_timeouts`.
  </Step>

  <Step title="Inspect and authenticate">
    Run `grok inspect` to see the configuration sources and discovered MCP servers. On first use, Grok opens the Ollang OAuth 2.0 + PKCE sign-in flow in your browser.
  </Step>

  <Step title="Start a localization task">
    Ask Grok to use Ollang from an interactive session, or use `-p` for a headless script or CI job.
  </Step>
</Steps>

## Use Cases

### Keep locale files in sync

```
Compare src/i18n/en-US.json with the existing locale files. For every
missing string, create an Ollang document translation order for fr-FR and
ko-KR. Preserve ICU placeholders and report the order IDs in the pull
request summary.
```

### Localize a product launch video

```
Use Ollang to create subtitle orders for https://example.com/launch.mp4
in Spanish, French, and Italian, then create AI dubbing orders for Spanish
and French. Apply the "Product Launch" custom instruction and show me the
source and target languages for each order.
```

### Make localization CI-friendly

```
In headless mode, check Ollang orders from localization-orders.json. For
completed orders, download the translated files into the matching locale
directories. If an order failed, report it without changing the repository.
```

<Tip>
  Project-level `.grok/config.toml` files can contribute `[mcp_servers]`, `[plugins]`, and `[permission]` settings. Keep shared Ollang configuration in user scope when you want it available across projects, and use `grok inspect` before troubleshooting discovery.
</Tip>
