> ## 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 — Claude Code

> Kết nối Flowstep với Claude Code (CLI) bằng cách sử dụng MCP transport HTTP có thể truyền phát.

## Cấu hình

Thêm máy chủ vào cài đặt Claude Code của bạn. Sử dụng tệp cài đặt toàn cầu để bật nó ở mọi nơi, hoặc thêm nó cho từng dự án.

<Tabs>
  <Tab title="Global (~/.claude/settings.json)">
    ```json theme={"system"}
    {
      "mcpServers": {
        "flowstep-production": {
          "type": "http",
          "url": "https://api.flowstep.ai/mcp"
        }
      }
    }
    ```
  </Tab>

  <Tab title="Project (.claude/settings.json)">
    ```json theme={"system"}
    {
      "mcpServers": {
        "flowstep-production": {
          "type": "http",
          "url": "https://api.flowstep.ai/mcp"
        }
      }
    }
    ```
  </Tab>
</Tabs>

Hoặc, sử dụng CLI:

```bash theme={"system"}
claude mcp add --transport http flowstep-production https://api.flowstep.ai/mcp
```

## Xác thực

Claude Code xử lý quy trình OAuth 2.1 PKCE tự động lần đầu tiên nó gọi một công cụ Flowstep. Trình duyệt của bạn mở tới `https://api.flowstep.ai/oauth/authorize`. Đăng nhập bằng thông tin xác thực Flowstep của bạn và CLI thu thập lệnh gọi lại.

<Note>
  Bạn cần một tài khoản Flowstep trước khi xác thực. Tạo một tài khoản tại [app.flowstep.ai](https://app.flowstep.ai).
</Note>

## Xác minh kết nối

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

Máy chủ sẽ xuất hiện là đã kết nối. Sau đó, trong một phiên Claude Code:

```
List my Flowstep files
```

## Ví dụ sử dụng

```
Create a Flowstep file called "Settings page", generate a desktop settings screen
for a developer tool with sections for API keys, notifications, and team members.
Show me the rendered image when done.
```
