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

# Flowstep MCP — Codex

> Hubungkan Flowstep ke OpenAI Codex menggunakan transport MCP Streamable HTTP.

## Konfigurasi

Tambahkan server dengan CLI Codex:

```bash theme={"system"}
codex mcp add flowstep --url https://api.flowstep.ai/mcp
```

Atau edit file konfigurasi secara langsung. Gunakan file global untuk mengaktifkannya di mana saja, atau file proyek (hanya untuk proyek tepercaya) untuk membatasinya pada satu proyek.

> [tab] Global (\~/.codex/config.toml)
>
> ```toml theme={"system"}
> [mcp_servers.flowstep]
> url = "https://api.flowstep.ai/mcp"
> ```

> [tab] Proyek (.codex/config.toml)
>
> ```toml theme={"system"}
> [mcp_servers.flowstep]
> url = "https://api.flowstep.ai/mcp"
> ```

Codex otomatis memilih transport Streamable HTTP saat `url` diatur, jadi tidak perlu kolom transport.

## Autentikasi

Jalankan:

```bash theme={"system"}
codex mcp login flowstep
```

Codex membuka browser Anda ke `https://api.flowstep.ai/oauth/authorize`. Masuk dengan kredensial Flowstep Anda (email/password atau Google SSO), lalu klik **Allow** di layar persetujuan. Codex menangkap callback dan menyimpan token.

> [!NOTE]
>
> Anda memerlukan akun Flowstep sebelum menghubungkan. Buat akun di [app.flowstep.ai](https://app.flowstep.ai).

## Verifikasi koneksi

```bash theme={"system"}
codex mcp list
```

Server seharusnya muncul beserta status OAuth-nya. Di dalam sesi Codex, ketik `/mcp` untuk melihat server yang terhubung, lalu tanyakan:

```
List my Flowstep files
```

Jika pemanggilan alat berhasil, koneksi berfungsi.

## Contoh penggunaan

```
Generate a mobile payment screen in Flowstep with a card form and an order summary,
then show me the rendered image.
```

Codex akan memanggil `ai-design-screens` → `get-screen-image` dan menampilkan hasilnya.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.