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

> 使用 Streamable HTTP MCP 傳輸協議將 Flowstep 連接至 Claude Code (CLI)。

## 設定

將伺服器新增至您的 Claude Code 設定。使用全域設定檔在所有地方啟用，或按專案新增。

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

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

或者使用 CLI：

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

## 驗證

Claude Code 在第一次呼叫 Flowstep 工具時會自動處理 OAuth 2.1 PKCE 流程。您的瀏覽器會開啟至 `https://api.flowstep.ai/oauth/authorize`。使用您的 Flowstep 認證登入，CLI 會擷取回調。

<Note>
  驗證前您需要有 Flowstep 帳戶。可在 [app.flowstep.ai](https://app.flowstep.ai) 建立。
</Note>

## 驗證連接

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

伺服器應顯示為已連接。然後在 Claude Code 工作階段中：

```
List my Flowstep files
```

## 使用範例

```
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.
```
