Repository navigation
v0.4.0-beta.2
·
826 commits
to main
since this release
[0.4.0-beta.2] - 2026-07-29
Added
- MCP: startup tool-surface selection —
--toolsets/PIPEFY_MCP_TOOLSETSnarrows 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). Thepowerprofile (aliasarchitect) 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_tooldispatches to each hidden tool through its own argument validation and error envelope, and cannot reach a tool the floor withholds.all/defaultor 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), andexpires_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 toupload_url, then storesstorage_pathon 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 afile_urlsource alongside the localfile_path. The SDK downloads the URL behind an SSRF guard — HTTPS + public hosts only (unless the deployment setsPIPEFY_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 asfile_path. Both tools are now remote-safe: on the hosted profilefile_pathis rejected per call andfile_urlis the upload path (the CLI stays local--fileonly). Thefile_readerror 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. Returnsid,uuid,name,planName,role,membersCount,pipesCount,createdAtper 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 checklistpipefy-toolkit-setup(path choice / ask-your-agent / verify — commands stay inREADME.md#installation, per #246). - Docs / skills: canonical Identifiers map — which tool/argument expects slug vs
internal_idvs 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_graphqlis now remote-safe (public GraphQL only), so the hostedpowerprofile 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):
McpRuntimeno longer exposes the resolvedSettingstree; 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#306import-linter contract guards it by construction. The removedMcpRuntime.settingswas an internal composition-root attribute — embedders usingbuild_pipefy_mcp_serverare unaffected. Closes #405. - MCP / CLI / SDK: automation
conditionis now a first-class, typed input oncreate_automationandupdate_automation(CLI--condition), instead of only riding opaquely insideextra_input. A newConditionExpressionInputtypes the expression interior (field_address= fieldinternal_id,operation,value,structure_id), the documented operations are exported asCONDITION_OPERATIONS(soft enum — any value passes, the API validates), and theexpressions_structureAND-of-ORs grouping is documented. An explicitconditionwins over anyconditioninextra_input;pipefy automation updateno longer requires--extra(pass--conditionand/or--extra). Closes #387. - SDK: a GraphQL response carrying
errorsnow raisesPipefyGraphQLError(exported frompipefy_sdk) for every endpoint, replacing the gqlTransportQueryErrorthe public and Interfaces endpoints leaked and theValueErrorcarrying a[code=…] [correlation_id=…]string that the Internal API endpoint raised. The exception carries the raw structurederrorslist, so codes and correlation ids are read offextensionsinstead of parsed back out of a formatted message. Embedders catchinggql.transport.exceptions.TransportQueryErroraround SDK calls must catchPipefyGraphQLErrorinstead; genuine transport failures (non-2xx, timeouts) still raise gqlTransportErrorsubclasses unchanged. Part of #354. - CLI: a non-permission GraphQL error from an Internal API command (the
portal sub-portalgroup) exits 1 with a single-linemessage (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
mcpdependency is capped below2(mcp[cli]>=1.25.0,<2). The constraint was open-ended, so a fresh install resolvedmcp2.0.0, which restructures the SDK and drops themcp.server.fastmcpmodule the server imports at startup —pipefy-mcp-serverfailed withModuleNotFoundErrorbefore serving anything. FastMCP ships inside themcpdistribution rather than as its own package, so its version is governed entirely by this constraint.uv.lockpins1.25.0for development, which is why the test suite never saw it; the packaging smoke install now covers the MCP wheel and launchespipefy-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-loginlabel. - 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
Locationhost 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 atstep=s3_uploadwith 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_accountgates ondeleteServiceAccount.success(a missing node orsuccess: falseis now a failure, matching every peer delete), andcreate_service_accountnow selectscreateServiceAccount.success(previously unrequested) and gates on it, then additionally requires a non-nullserviceAccountcarrying a non-emptyclient.secretbefore 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 inerror.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 createandpipefy service-account deleteno longer exit 0 on a GraphQL payload that says the operation did not happen. Both now gate on the mutation's non-nullsuccessflag and exit 1 when it is not true, joining theexit_1_on_unsuccessfulconvention that splices a top-levelsuccessonto the rendered result.createadditionally fails closed when a reported success carries no non-emptyclient.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.