pipefy-pipes-and-cards
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePipes & Cards
管道与卡片
Read, create, update, and delete pipes, phases, phase fields, labels, cards, attachments, and field conditions. 40 MCP tools.
读取、创建、更新和删除管道、阶段、阶段字段、标签、卡片、附件及字段条件。涵盖40个MCP工具。
Cross-cutting patterns
通用模式
- Field types are not validated locally — use (e.g., on
introspect_type) for allowed values.CreatePhaseFieldInput - Most write tools support on errors (returns GraphQL codes +
debug=true).correlation_id - merges extra API keys (camelCase); keys that duplicate primary arguments are ignored.
extra_input
- 字段类型不会在本地验证——请使用(例如针对
introspect_type)获取允许的值。CreatePhaseFieldInput - 大多数写入工具在出现错误时支持(返回GraphQL代码 +
debug=true)。correlation_id - 会合并额外的API密钥(采用驼峰式命名camelCase);与主参数重复的密钥将被忽略。
extra_input
Pipe operations
管道操作
| Tool (MCP) | CLI | Read-only | Purpose |
|---|---|---|---|
| | Yes | Fetch pipe metadata including phases and fields. |
| | Yes | Search by name pattern. |
| | No | Create a new pipe in the org. |
| | No | Rename or change pipe settings. |
| | No | Two-step destructive. |
| | No | Clone an existing pipe. |
| | Yes | List members of a pipe. |
| 工具(MCP) | CLI命令 | 只读 | 用途 |
|---|---|---|---|
| | 是 | 获取包含阶段和字段的管道元数据。 |
| | 是 | 按名称模式搜索管道。 |
| | 否 | 在组织中创建新管道。 |
| | 否 | 重命名或修改管道设置。 |
| | 否 | 两步式破坏性操作。 |
| | 否 | 克隆现有管道。 |
| | 是 | 列出管道成员。 |
Steps — create a pipe with phases
步骤——创建带阶段的管道
-
Create the pipe:MCP:
create_pipe name="Customer Onboarding" organization_id=123CLI:pipefy pipe create --name "Customer Onboarding" --org 123 -
Add phases — callfor each phase (see Phase section below). Omit
create_phaseto append after existing workflow phases, or pass a 1-basedindexto insert among phases returned byindex. Preferget_pipeor higher;1creates a phase that does not appear inindex: 0'sget_pipelist.phasesonly controls order — it does not wire Phase Connections /index(configure those in the Pipefy UI; useallowed_phasesbefore moves).get_phase_allowed_move_targets -
Add start form fields — callon the start form phase.
create_phase_field
-
创建管道:MCP命令:
create_pipe name="Customer Onboarding" organization_id=123CLI命令:pipefy pipe create --name "Customer Onboarding" --org 123 -
添加阶段——为每个阶段调用(见下方阶段部分)。省略
create_phase会将阶段追加到现有工作流阶段之后,传入从1开始计数的index可插入到index返回的阶段列表中。建议使用get_pipe或更大的值;1创建的阶段不会出现在index: 0的get_pipe列表中。phases仅控制顺序——它不会配置阶段连接/index(请在Pipefy UI中配置这些;在移动卡片前使用allowed_phases)。get_phase_allowed_move_targets -
添加起始表单字段——在起始表单阶段调用。
create_phase_field
Phase operations
阶段操作
| Tool (MCP) | CLI | Read-only | Purpose |
|---|---|---|---|
| | Yes | Phase metadata: use |
| | No | Add a phase to a pipe. |
| | No | Rename, reorder, set done flag. |
| | No | Two-step destructive. |
| | Yes | Valid destination phases before |
| | Yes | Native per-phase card count via |
| | Yes | Paginated cards in a phase ( |
| 工具(MCP) | CLI命令 | 只读 | 用途 |
|---|---|---|---|
| | 是 | 阶段元数据:通过MCP使用 |
| | 否 | 为管道添加阶段。 |
| | 否 | 重命名、重新排序、设置完成标记。 |
| | 否 | 两步式破坏性操作。 |
| | 是 | 在调用 |
| | 是 | 通过 |
| | 是 | 阶段中的分页卡片(支持 |
Seed pipe across phases
跨阶段填充管道
Use this workflow to place at least one card in each workflow phase (demos, QA checklists, chaos pipes) without . Transition edges must already exist in the Pipefy UI.
execute_graphql使用此工作流可在每个工作流阶段中放置至少一张卡片(适用于演示、QA检查清单、混沌管道),无需使用。过渡连接必须已在Pipefy UI中存在。
execute_graphqlTools needed
所需工具
| Tool (MCP) | CLI | Read-only |
|---|---|---|
| | Yes |
| | Yes |
| | No |
| | Yes |
| | Yes |
| | No |
| 工具(MCP) | CLI命令 | 只读 |
|---|---|---|
| | 是 |
| | 是 |
| | 否 |
| | 是 |
| | 是 |
| | 否 |
Steps
步骤
-
Load phase IDs —→ collect
get_pipe(pipe_id)for workflow phases. Omitphases[].idonphase_idfor start-form intake.create_cardMCP:get_pipe pipe_id="306996634"CLI:pipefy pipe get 306996634 --json -
Find empty phases — for each candidate, call
phase_id. Target phases whereget_phase_cards_countis 0 (if the start form shows 0 but you suspect cards, callcards_countbefore creating duplicates).get_phase_cardsMCP:get_phase_cards_count phase_id="340012345"CLI:pipefy phase count 340012345 --json -
Create cards in empty phases — loopwith
create_card(andphase_idfor agent seeding). Whenskip_elicitation=trueis non-empty, keys are filtered viafieldsandget_phase_fields(phase_id).get_start_form_fields(pipe_id)MCP:create_card pipe_id="306996634" phase_id="340012345" skip_elicitation=true title="Seeded"CLI:bashpipefy card create 306996634 --phase-id 340012345 --title "Seeded" -
Verify inventory —and confirm expected card IDs/titles.
get_phase_cards(phase_id, first=50)CLI:pipefy phase cards 340012345 --json -
Before moves — on the card's current phase,then
get_phase_allowed_move_targetsonly to anmove_card_to_phase.allowed_phases[].idMCP:get_phase_allowed_move_targets phase_id="<current_phase_id>"CLI:pipefy phase targets <current_phase_id> --json
-
加载阶段ID——调用→ 收集工作流阶段的
get_pipe(pipe_id)。在phases[].id上省略create_card将使用起始表单入口。phase_idMCP命令:get_pipe pipe_id="306996634"CLI命令:pipefy pipe get 306996634 --json -
查找空阶段——对每个候选,调用
phase_id。目标为get_phase_cards_count为0的阶段(如果起始表单显示为0但你怀疑存在卡片,请在创建重复卡片前调用cards_count)。get_phase_cardsMCP命令:get_phase_cards_count phase_id="340012345"CLI命令:pipefy phase count 340012345 --json -
在空阶段创建卡片——循环调用并传入
create_card(对于Agent填充,需设置phase_id)。当skip_elicitation=true非空时,将通过fields和get_phase_fields(phase_id)过滤密钥。get_start_form_fields(pipe_id)MCP命令:create_card pipe_id="306996634" phase_id="340012345" skip_elicitation=true title="Seeded"CLI命令:bashpipefy card create 306996634 --phase-id 340012345 --title "Seeded" -
验证库存——调用并确认预期的卡片ID/标题。
get_phase_cards(phase_id, first=50)CLI命令:pipefy phase cards 340012345 --json -
移动前准备——在卡片当前阶段,先调用,然后仅将卡片移动到
get_phase_allowed_move_targets指定的阶段。allowed_phases[].idMCP命令:get_phase_allowed_move_targets phase_id="<current_phase_id>"CLI命令:pipefy phase targets <current_phase_id> --json
Success criteria
成功标准
- Every targeted phase reports (or
cards_count >= 1lists the seeded cards).get_phase_cards - Moves use only phases returned in .
allowed_phases
- 每个目标阶段的(或
cards_count >= 1列出了填充的卡片)。get_phase_cards - 仅使用返回的阶段进行移动操作。
allowed_phases
Failure modes
失败模式
- Empty : configure Phase → Connections in the Pipefy UI; the API cannot add edges.
allowed_phases - Unexpected empty count: use to list cards before creating duplicates.
get_phase_cards
- 为空:请在Pipefy UI中配置阶段→连接;API无法添加连接。
allowed_phases - 意外的空计数:在创建重复卡片前使用列出卡片。
get_phase_cards
Phase field operations
阶段字段操作
| Tool (MCP) | CLI | Read-only | Purpose |
|---|---|---|---|
| | Yes | List fields on a phase. |
| | Yes | List start-form fields for card creation. |
| | No | Add field to a phase. |
| | No | Rename, reorder, change required flag. |
| | No | Two-step destructive. |
Discover field types:
MCP:
introspect_type type_name="CreatePhaseFieldInput"This returns valid enum values and their descriptions.
type| 工具(MCP) | CLI命令 | 只读 | 用途 |
|---|---|---|---|
| | 是 | 列出阶段中的字段。 |
| | 是 | 列出用于卡片创建的起始表单字段。 |
| | 否 | 为阶段添加字段。 |
| | 否 | 重命名、重新排序、修改必填标记。 |
| | 否 | 两步式破坏性操作。 |
发现字段类型:
MCP命令:
introspect_type type_name="CreatePhaseFieldInput"此命令会返回有效的枚举值及其描述。
typeCard operations
卡片操作
| Tool (MCP) | CLI | Read-only | Purpose |
|---|---|---|---|
| | Yes | Card data, fields, and comments. |
| | Yes | Paginated card list by pipe. |
| | Yes | Filter by a single field value. |
| | No | Default: start form. Optional |
| | No | Fill phase fields non-interactively; filters to editable IDs. Uses |
| | No | Update title, assignee, due date, fields. |
| | No | Single-field update ( |
| | No | Call |
| | No | Two-step destructive. |
| | No | Add a text comment to a card. |
| | No | Update an existing card comment. |
| | No | Two-step destructive. |
| | No | Attach a file to an attachment field ( |
| 工具(MCP) | CLI命令 | 只读 | 用途 |
|---|---|---|---|
| | 是 | 获取卡片数据、字段和评论。 |
| | 是 | 按管道分页列出卡片。 |
| | 是 | 按单个字段值过滤卡片。 |
| | 否 | 默认:使用起始表单。可选的 |
| | 否 | 非交互式填充阶段字段;仅过滤可编辑的ID。使用 |
| | 否 | 更新标题、经办人、截止日期、字段。 |
| | 否 | 单字段更新( |
| | 否 | 请先在源阶段调用 |
| | 否 | 两步式破坏性操作。 |
| | 否 | 为卡片添加文本评论。 |
| | 否 | 更新现有卡片评论。 |
| | 否 | 两步式破坏性操作。 |
| | 否 | 将文件附加到附件字段( |
Steps — create a card
步骤——创建卡片
-
Get start form fields (required — never skip):MCP:
get_start_form_fields pipe_id=67890CLI:pipefy pipe start-form 67890 --json -
Create the card with fields:MCP:
create_card pipe_id=67890 title="My Card" fields_attributes='[{"field_id":"field_slug","field_value":"value"}]'CLI:bashpipefy card create 67890 --title "My Card" --fields '{"field_slug":"value"}' -
Report result with card ID and link:
https://app.pipefy.com/open-cards/<CARD_ID>
-
获取起始表单字段(必填——切勿跳过):MCP命令:
get_start_form_fields pipe_id=67890CLI命令:pipefy pipe start-form 67890 --json -
创建带字段的卡片:MCP命令:
create_card pipe_id=67890 title="My Card" fields_attributes='[{"field_id":"field_slug","field_value":"value"}]'CLI命令:bashpipefy card create 67890 --title "My Card" --fields '{"field_slug":"value"}' -
返回结果,包含卡片ID和链接:
https://app.pipefy.com/open-cards/<CARD_ID>
Pagination for get_cards
get_cards
分页示例
get_cardsget_cards pipe_id=67890 first=50 after=<endCursor>Read and from the response; pass for the next page.
pageInfo.hasNextPagepageInfo.endCursorafter=<endCursor>get_cards pipe_id=67890 first=50 after=<endCursor>从响应中读取和;在下一页请求中传入。
pageInfo.hasNextPagepageInfo.endCursorafter=<endCursor>Label operations
标签操作
| Tool (MCP) | CLI | Read-only | Purpose |
|---|---|---|---|
| | Yes | List pipe labels. |
| | No | Create a label with a color. |
| | No | Rename or recolor. |
| | No | Two-step destructive. |
| 工具(MCP) | CLI命令 | 只读 | 用途 |
|---|---|---|---|
| | 是 | 列出管道标签。 |
| | 否 | 创建带颜色的标签。 |
| | 否 | 重命名或修改颜色。 |
| | 否 | 两步式破坏性操作。 |
Field condition operations
字段条件操作
| Tool (MCP) | CLI | Purpose |
|---|---|---|
| | List all field conditions on a phase. |
| | Load one field condition by ID. |
| | Create show/hide rule. |
| | Update condition action or rule. |
| | Two-step destructive. |
| 工具(MCP) | CLI命令 | 用途 |
|---|---|---|
| | 列出阶段中的所有字段条件。 |
| | 通过ID加载单个字段条件。 |
| | 创建显示/隐藏规则。 |
| | 更新条件操作或规则。 |
| | 两步式破坏性操作。 |
Success criteria
成功标准
- Pipe and phases visible in Pipefy UI.
- returns the new pipe ID and phases.
get_pipe - Cards created via appear in the pipe's first phase.
create_card
- 管道和阶段在Pipefy UI中可见。
- 返回新管道ID和阶段信息。
get_pipe - 通过创建的卡片出现在管道的第一个阶段中。
create_card
Failure modes
失败模式
- fails with missing required fields: call
create_cardfirst to discover requiredget_start_form_fieldsvalues.field_id - rejects type: call
create_phase_fieldto get valid values.introspect_type type_name="CreatePhaseFieldInput" - Delete fails with preview error: expected — call without first, show user the preview, then call with
confirm=true.confirm=true
- 因缺少必填字段失败:请先调用
create_card发现必填的get_start_form_fields值。field_id - 拒绝字段类型:调用
create_phase_field获取有效值。introspect_type type_name="CreatePhaseFieldInput" - 删除操作因预览错误失败:此为预期情况——先不带调用,向用户展示预览,再带
confirm=true调用。confirm=true
See also
另请参阅
- — link pipes and cards across workflows.
skills/relations/ - — add automation rules to a pipe.
skills/automations/ - — discover field types and mutation signatures.
skills/introspection/ - — canonical map of which tool/argument expects slug vs
docs/mcp/tools/identifiers.md#field-references-slug-vs-internal_idvs uuid vs numeric id (e.g.internal_iduses a field slug).update_card_field
- ——跨工作流链接管道和卡片。
skills/relations/ - ——为管道添加自动化规则。
skills/automations/ - ——发现字段类型和突变签名。
skills/introspection/ - ——规范说明哪些工具/参数需要使用别名slug、
docs/mcp/tools/identifiers.md#field-references-slug-vs-internal_id、uuid或数字ID(例如internal_id使用字段别名slug)。update_card_field