Skip to content

feat(mcp,cli): create_card phase_id and title on CreateCardInput#283

Merged
adriannoes merged 5 commits into
feat/card-phase-erg/3-mcp-cli-phase-inventoryfrom
feat/card-phase-erg/4-mcp-cli-create-card-phase
Jun 11, 2026
Merged

feat(mcp,cli): create_card phase_id and title on CreateCardInput#283
adriannoes merged 5 commits into
feat/card-phase-erg/3-mcp-cli-phase-inventoryfrom
feat/card-phase-erg/4-mcp-cli-create-card-phase

Conversation

@adriannoes

@adriannoes adriannoes commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Analytics pipe seeding (306996636) required execute_graphql for phase inventory and phase-local creates. Spec: .cursor/dev-planning/specs/archive/card-phase-ergonomics/Stack after #277 (closed).

Depends on: #282


Objective

#1 chaos-pipe pain: cards in orphan/non–start-form phases via createCard + introspect_type("CreateCardInput").

  • MCP create_card(phase_id=…) with validate_tool_id, merged start-form + phase field filtering
  • Pass title on CreateCardInput; title_warning only on real API mismatch (F1)
  • CLI card create --phase-id (F3)
  • Docstrings: start_form_phase.id discovery (F4)

Improvements

  • Seed 12 cards in a Limbo phase with tools only (success metric from PRD).

@adriannoes adriannoes added the enhancement New feature or request label Jun 3, 2026
@adriannoes adriannoes self-assigned this Jun 3, 2026
@adriannoes adriannoes force-pushed the feat/card-phase-erg/3-mcp-cli-phase-inventory branch from d3deee2 to a5f7517 Compare June 9, 2026 21:36
@adriannoes adriannoes force-pushed the feat/card-phase-erg/4-mcp-cli-create-card-phase branch from dfc09d2 to db4b77e Compare June 9, 2026 21:36

@gbrlcustodio gbrlcustodio left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of create_card phase_id/title. One corrected behavior note, one refactor note, a parity nit, and two findings that intersect the #281 start-form-phase decision.

Comment thread packages/mcp/src/pipefy_mcp/tools/pipe_tools.py Outdated
Comment thread packages/mcp/src/pipefy_mcp/tools/pipe_tools.py
Comment thread packages/cli/src/pipefy_cli/commands/card.py Outdated
Comment thread packages/mcp/src/pipefy_mcp/tools/pipe_tools.py Outdated
Comment thread packages/mcp/tests/tools/test_pipe_tools.py Outdated
@adriannoes adriannoes force-pushed the feat/card-phase-erg/3-mcp-cli-phase-inventory branch from a5f7517 to d096020 Compare June 10, 2026 15:30
@adriannoes adriannoes force-pushed the feat/card-phase-erg/4-mcp-cli-create-card-phase branch from db4b77e to 2e0d0b8 Compare June 10, 2026 15:30
@adriannoes

Copy link
Copy Markdown
Collaborator Author

Thanks @gbrlcustodio — addressed in 2e0d0b8: interactive create_card with phase_id now elicits start-form fields (UI parity) and merges phase values programmatically; dropped start-form phase inventory hints from get_pipe; added title_warning on pipefy card create; simplified the get_pipe passthrough test.

Comment thread packages/cli/src/pipefy_cli/commands/card.py Outdated
Comment thread packages/mcp/src/pipefy_mcp/tools/pipe_tools.py
Comment thread packages/mcp/src/pipefy_mcp/tools/pipe_tools.py Outdated
…merge

Agents can seed cards in orphan phases without execute_graphql; validate
phase_id at boundary; fix title_warning to compare API response only.
Replace start_form_phase discovery paths with startFormPhaseId and update
get_pipe inventory test to match the simplified SDK response.
Elicit start-form fields (not phase fields) on the interactive phase_id path,
then merge programmatic phase values. Drop start-form phase inventory hints
from get_pipe. Mirror MCP title_warning on pipefy card create.
…tring

Restore or {} when createCard is GraphQL null; anchor move-target hint to
create-then-move workflow per review feedback.
@adriannoes adriannoes force-pushed the feat/card-phase-erg/4-mcp-cli-create-card-phase branch from 598f553 to ca568bb Compare June 11, 2026 20:01
@adriannoes adriannoes merged commit 794d560 into feat/card-phase-erg/3-mcp-cli-phase-inventory Jun 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants