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

# Flowstep MCP — Cursor

> 使用 Streamable HTTP MCP 传输将 Flowstep 连接到 Cursor。

## 配置

点击 [**Add Flowstep to Cursor**](https://cursor.com/install-mcp?name=flowstep&config=eyJ1cmwiOiJodHRwczovL2FwaS5mbG93c3RlcC5haS9tY3AifQ%3D%3D)，即可一键安装该服务器。

或者，您也可以自行将服务器添加到 MCP 配置中。Cursor 会在两个位置查找该配置：使用全局文件可在所有项目中启用，使用项目文件则可将其限定在项目范围内。

> [tab] 全局 (~/.cursor/mcp.json)
>
> ```json
> {
>   "mcpServers": {
>     "flowstep": {
>       "url": "https://api.flowstep.ai/mcp"
>     }
>   }
> }
> ```

> [tab] 项目 (.cursor/mcp.json)
>
> ```json
> {
>   "mcpServers": {
>     "flowstep": {
>       "url": "https://api.flowstep.ai/mcp"
>     }
>   }
> }
> ```

保存文件后重启 Cursor。

## 身份验证

打开 **Settings → MCP**，然后点击 Flowstep 旁边的 **Connect**。Cursor 会在浏览器中打开 `https://api.flowstep.ai/oauth/authorize`。使用您的 Flowstep 凭据登录（邮箱/密码或 Google SSO），然后在授权页面上点击 **Allow**。Cursor 会自动捕获回调并存储令牌。

> [!NOTE]
>
> 连接前您需要一个 Flowstep 账户。请在 [app.flowstep.ai](https://app.flowstep.ai) 创建。

## 验证连接

在 Cursor 聊天中输入：

```
List my Flowstep files
```

如果工具调用成功，说明连接正常。

## 用法示例

```
Create a Flowstep file called "Onboarding", generate a mobile sign-up screen
with name, email, and password fields, then show me the image.
```

Cursor 会依次调用 `create-file` → `ai-design-screens` → `get-screen-image`。
