Skip to content

v0.4.0-beta.2

Choose a tag to compare

@github-actions github-actions released this 29 Jul 19:42
· 826 commits to main since this release
641f1d3

[0.4.0-beta.2] - 2026-07-29

Added

  • MCP: startup tool-surface selection — --toolsets / PIPEFY_MCP_TOOLSETS narrows the exposed tools to named subject domains (workflow, database, interfaces, automation, intelligence, analytics, governance, integration) and/or overlapping persona profiles (requester, operator, manager, builder, admin, auditor), unioned and applied after the remote floor so selection only ever narrows (never widens past the floor). The power profile (alias architect) instead hides the curated tools behind four catalog meta-tools (search_tools, describe_tool, execute_tool, get_tool_categories) alongside the raw-GraphQL tools, keeping the model-facing set at nine regardless of catalog size — execute_tool dispatches to each hidden tool through its own argument validation and error envelope, and cannot reach a tool the floor withholds. all / default or unset keep the full surface (backward-compatible). A build-time drift-guard enforces the disjoint domain partition: every registered tool has exactly one domain, or the build fails. Closes #308.
  • MCP / SDK / CLI: create_attachment_presigned_url (pipefy attachment presign) mints a presigned S3 upload target — upload_url (the PUT url), storage_path (the object key to store), and expires_in_seconds — without transferring any bytes, so a client can attach a file the server cannot read (a local file on the hosted profile, or bytes too large to inline): the caller PUTs to upload_url, then stores storage_path on the field. Remote-safe (reaches the API with the request-scoped bearer, no filesystem, no bytes through the server). Closes #506.
  • MCP / SDK: attachment uploads (upload_attachment_to_card, upload_attachment_to_table_record) accept a file_url source alongside the local file_path. The SDK downloads the URL behind an SSRF guard — HTTPS + public hosts only (unless the deployment sets PIPEFY_ALLOW_INSECURE_URLS), a standard-port allow-list (80/443), and a connect-time re-validation of the resolved host on every request (DNS-rebinding defense) — following redirects with per-hop re-validation and the same 100 MiB cap as file_path. Both tools are now remote-safe: on the hosted profile file_path is rejected per call and file_url is the upload path (the CLI stays local --file only). The file_read error now states the path is read on the machine running the server. Closes #305.
  • MCP / CLI: list_organizations (pipefy org list) — list the organizations the caller can access with no id required, the zero-knowledge entry point for discovery. Returns id, uuid, name, planName, role, membersCount, pipesCount, createdAt per org; an empty result is valid (not an error). Read-only and remote-safe. Closes #383.
  • Docs / skills: hosted MCP (mcp.pipefy.com) install snippet on the root README front door; first-time agent checklist pipefy-toolkit-setup (path choice / ask-your-agent / verify — commands stay in README.md#installation, per #246).
  • Docs / skills: canonical Identifiers map — which tool/argument expects slug vs internal_id vs uuid vs numeric id (the five argument names for a pipe, the UUID-named-accepts-numeric exceptions, and a per-area quick reference). The per-area doc Identifiers sections and identifier-heavy skills link into its relevant section. Closes #390.

Changed

  • MCP: execute_graphql is now remote-safe (public GraphQL only), so the hosted power profile has full raw-GraphQL reach under the request-scoped bearer's own API permissions — the same trust boundary as the already-remote-safe introspection tools. Part of #308.
  • MCP (internal): McpRuntime no longer exposes the resolved Settings tree; it surfaces only the per-deployment booleans it needs (is_remote, unified_envelope). This removes the last import-free path from tool-reachable code (the lifespan context) to process-global settings, so the #306 import-linter contract guards it by construction. The removed McpRuntime.settings was an internal composition-root attribute — embedders using build_pipefy_mcp_server are unaffected. Closes #405.
  • MCP / CLI / SDK: automation condition is now a first-class, typed input on create_automation and update_automation (CLI --condition), instead of only riding opaquely inside extra_input. A new ConditionExpressionInput types the expression interior (field_address = field internal_id, operation, value, structure_id), the documented operations are exported as CONDITION_OPERATIONS (soft enum — any value passes, the API validates), and the expressions_structure AND-of-ORs grouping is documented. An explicit condition wins over any condition in extra_input; pipefy automation update no longer requires --extra (pass --condition and/or --extra). Closes #387.
  • SDK: a GraphQL response carrying errors now raises PipefyGraphQLError (exported from pipefy_sdk) for every endpoint, replacing the gql TransportQueryError the public and Interfaces endpoints leaked and the ValueError carrying a [code=…] [correlation_id=…] string that the Internal API endpoint raised. The exception carries the raw structured errors list, so codes and correlation ids are read off extensions instead of parsed back out of a formatted message. Embedders catching gql.transport.exceptions.TransportQueryError around SDK calls must catch PipefyGraphQLError instead; genuine transport failures (non-2xx, timeouts) still raise gql TransportError subclasses unchanged. Part of #354.
  • CLI: a non-permission GraphQL error from an Internal API command (the portal sub-portal group) exits 1 with a single-line message (code), instead of exiting 2. Exit 2 is the usage-error code, so a server-side failure claiming it was wrong; this aligns Internal API command failures with public API ones. Permission errors are unchanged. Part of #354.

Fixed

  • MCP: the mcp dependency is capped below 2 (mcp[cli]>=1.25.0,<2). The constraint was open-ended, so a fresh install resolved mcp 2.0.0, which restructures the SDK and drops the mcp.server.fastmcp module the server imports at startup — pipefy-mcp-server failed with ModuleNotFoundError before serving anything. FastMCP ships inside the mcp distribution rather than as its own package, so its version is governed entirely by this constraint. uv.lock pins 1.25.0 for development, which is why the test suite never saw it; the packaging smoke install now covers the MCP wheel and launches pipefy-mcp-server, so a resolution that only breaks outside the lock fails CI instead of the release workflow.
  • Installer: Claude Code next-steps print /pipefy:pipefy-login (and the full plugin slash sequence) instead of the stale /pipefy-login label.
  • SDK: both S3 upload legs — the attachment pipeline and the knowledge-base document upload — now require a 2xx PUT status instead of merely "not 4xx/5xx", so a 3xx no longer reads as a completed upload. Neither PUT follows redirects (re-sending the body to the Location host would ship file bytes to an unvalidated destination), so a wrong-region 301/307 used to pass the check: the card or table-record field was then updated with a storage path the bytes never reached, and the knowledge base registered a document URL for an object that was never written. Both now fail at step=s3_upload with the status attached, before the field update or the create mutation runs. Closes #511.
  • MCP: the service-account tools no longer report success for a GraphQL payload that says the operation did not happen. delete_service_account gates on deleteServiceAccount.success (a missing node or success: false is now a failure, matching every peer delete), and create_service_account now selects createServiceAccount.success (previously unrequested) and gates on it, then additionally requires a non-null serviceAccount carrying a non-empty client.secret before it claims the one-shot credentials were returned — when the account UUID arrives without a usable secret the failure surfaces that UUID (in the message and in error.details.service_account_uuid) so the caller can delete the unreachable account, and no payload value is echoed into the error. Closes #510.
  • CLI: pipefy service-account create and pipefy service-account delete no longer exit 0 on a GraphQL payload that says the operation did not happen. Both now gate on the mutation's non-null success flag and exit 1 when it is not true, joining the exit_1_on_unsuccessful convention that splices a top-level success onto the rendered result. create additionally fails closed when a reported success carries no non-empty client.secret: the one-shot secret cannot be read back, so a create that returns without it is unusable, and the failure surfaces the account UUID (when the payload carried one) so the stray account can be deleted. No failure path renders the payload, so a secret riding along in a failed create is never printed. Closes #514.