> ## 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

> Kết nối Flowstep với OpenAI Codex bằng giao thức truyền tải Streamable HTTP MCP.

## Cấu hình

Thêm máy chủ bằng Codex CLI:

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

Hoặc chỉnh sửa trực tiếp tệp cấu hình. Dùng tệp toàn cục để bật ở mọi nơi, hoặc tệp dự án (chỉ với các dự án đáng tin cậy) để giới hạn phạm vi.

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

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

Codex tự động chọn giao thức truyền tải Streamable HTTP khi có `url`, không cần trường transport.

## Xác thực

Chạy:

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

Codex mở trình duyệt của bạn tới `https://api.flowstep.ai/oauth/authorize`. Đăng nhập bằng thông tin Flowstep (email/password hoặc Google SSO), rồi nhấp **Allow** trên màn hình chấp thuận. Codex nhận callback và lưu token.

> [!NOTE]
>
> Bạn cần có tài khoản Flowstep trước khi kết nối. Hãy tạo tài khoản tại [app.flowstep.ai](https://app.flowstep.ai).

## Kiểm tra kết nối

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

Máy chủ sẽ xuất hiện cùng trạng thái OAuth. Bên trong phiên Codex, nhập `/mcp` để xem các máy chủ đã kết nối, rồi hỏi:

```
List my Flowstep files
```

Nếu lệnh gọi công cụ thành công, kết nối đang hoạt động.

## Ví dụ sử dụng

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

Codex sẽ gọi `ai-design-screens` → `get-screen-image` và hiển thị kết quả.


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