Repository navigation
v0.5.0-beta.1
·
631 commits
to main
since this release
[0.5.0-beta.1] - 2026-08-21
Added
- Cursor Marketplace plugin:
.cursor-plugin/plugin.jsonand rootmcp.jsonpackage the skill catalog plus the hosted MCP server (mcp.pipefy.com) with in-client OAuth. The Cursor manifest declares"commands": []so the Claude Code files incommands/are not discovered. Version lockstep and CI packaging lint cover the new manifest. The listing is submitted frommainafter this packaging is released.
Changed
- Skill authoring template: the copyable
SKILL.mdstarter lives at.github/skill-template/rather than underskills/, so the catalog directory is only published skills. - Skills (
pipefy-ai-agents):create_ai_knowledge_base_document,create_llm_provider, andupdate_llm_providertake a local file and are withheld on the hosted server. The skill now marks them local-profile-only so an agent on the Cursor Marketplace plugin (or any hosted URL) does not call tools the hosted floor omits. - Back-merge workflow (squashed back-merges, DCO): a back-merge that was squashed or rebased is now repaired without being asked. The next run sees its pull request merged while the divergence still stands, cuts
rc-dev/chore/back-merge-main-<short-sha>-ancestryfromdev, mergesmainwith-s ours, and opens that. The repair takes no files, because a squash applies every file and drops only the second parent —dev's tree is already current and ancestry is the sole thing missing. A plain merge there would duplicate textdevalready carries, since with no shared ancestry git reads one paragraph on each side as two independent additions. Squashing the repair in turn leaves the count where it was, and that is where the automation stops and records the loop rather than opening a third pull request for onemainhead. Separately, the generated pull request body now names any carried commit whose author disagrees with its ownSigned-off-by: a squash rewrites the author to the merging account's profile identity while the trailer is carried verbatim, so a commit that passed DCO on its own pull request fails it on every back-merge that carries it afterwards, and it cannot be rewritten once it is on the default branch. The check does not block the merge, and naming the commits keeps a red DCO from reading as a new problem. - MCP (destructive confirmation): every destructive preview now includes a required
confirmation_tokenkey, and 31 tool schemas gain an optionalconfirmation_tokenargument (29 dedicated destructive tools plusexecute_graphqlandcall_ipaas_tool). A first call withconfirm=trueand no valid token returns that preview instead of mutating. Existing clients that ignore unknown keys still parse the preview, and clients that omit the new argument still get a preview rather than an execute, so neither change is a parse break; both change the published contract. GraphQL mutations throughexecute_graphqland destructivecall_ipaas_toolcalls follow the same two-step. The GraphQL preview names the mutation and does not claim it is irreversible (the server cannot tell create from delete). iPaaSarguments.operationis stripped then casefolded before needle equality, and a catalog miss is unclassifiable so it takes the two-step rather than running one-shot. The CLI takes no tokens and keeps confirming with--yes(or an interactive prompt). - GraphQL (documents too nested to parse):
execute_graphqlandpipefy graphql execrefuse a document whose nesting exhausts the parser, and send nothing. Such a document cannot be classified as a query or a mutation, so running it could execute a mutation with no confirmation.pipefy graphql execexits 2 for it even with--yes, where it previously failed with an uncaughtRecursionError.
Fixed
- Release tooling (DCO):
release.pysigns off the release commit it writes. The commit was created with a plaingit commit -m, so the trailer arrived only from aprepare-commit-msghook the author happened to have — a fresh clone has none, and the release pull request then failed DCO. A trailer lives inside the commit message, so no additive commit repairs it: the only way out was an amend and a force-push on an open release pull request, which is what #635 needed.-stakes the identity fromuser.name/user.email, the same one git stamps as author, so the trailer matches by construction. Bothrelease-prandalpha-prreach the commit through_apply_prepare, so one call site covers every flow. (#636) - MCP (hosted
remoteprofile): per-session credential binding now discriminates per user.mcp2.0 refuses a request whose authorization context differs from the one that created its Streamable HTTP session, comparing the(client_id, issuer, subject)triple the SDK derives from the validated bearer.JwtTokenVerifiersupplied onlyclient_id, which for the hosted server is the one publicpipefy-mcpOAuth client every end user authorizes through, so the check could not tell two users of that client apart and either could present the other'smcp-session-id. The JWTsubis now mapped onto the SDK's ownsubjectfield andissis carried onclaims, the two components the comparison reads on top ofclient_id. The same triple also binds sealedrequestState.mcp1.27.2 added the ownership check and thesubject/claimsfields together, so a build resolving the toolkit's formermcp[cli]>=1.25.0,<2range to 1.27.2 or later ran the check against asubjectnothing populated, and compared the client alone. Releases before0.5.0-alpha.1are affected on the hostedremoteprofile; thelocalprofile validates no inbound bearer and is not.PipefyAccessTokenis removed, sincesubjectis a baseAccessTokenfield in 2.0 and the subclass that carriedsubunder 1.x is redundant. Part of #543, and closes #548. The mapping suppliessubjectfor everysubshape, not only astr. It had kept theisinstance(sub, str)guard from thePipefyAccessToken.subfield it replaced, wheresubfed request logging only and degrading toNonecost nothing; once the field became an ownership component that same line became a fail-open, collapsing{absent, null, every non-string}onto one principal. Two bearers of the one publicpipefy-mcpclient whosesublanded in that class produced an identical triple and the manager served one caller's request on the other's session (pingandtools/listboth 200 forsub101 vs 102, against the real manager). A non-stringsubis now coerced withstrrather than dropped, so an IdP emitting a numericsubkeeps distinguishing its users, the way the SDK's ownprincipal_componentscoerces a non-stringiss. An empty or whitespace-onlysubis rejected outright (401), not mapped toNone:Noneis the no-subject class, so folding a blanksubinto it would make two blank-subbearers share a context where they previously did not. A non-blank value is carried verbatim, never stripped. Not reachable through the deployed issuer, which emits a stringsubon every access token it mints; the exposure is a self-hostedPIPEFY_JWT_ISSUER_URLpointed at another IdP. A bearer carrying nosubat all still maps tosubject=None, and two such bearers of one client still share a context, waived deliberately: the identity precedence exists to accept a bearer whose only claim isazp/client_id, which names no end user, and it is the degradation the SDK documents for an unsupplied component. Deriving asubjectfromjtior a bearer hash was rejected, because it puts a credential id in the field every reader takes for an end user (the request log emits it assub) and breaks a caller's own session on every token refresh. The waiver is pinned against the real session manager. uninstall.sh(skills, project layout):skills addhas two layouts and only one was read. A global install keeps its lock at~/.agents/.skill-lock.json; an install run from inside a project keeps it at<project>/skills-lock.json, and the probe looked for the first name only. No lock meant no derived store, so the confinement guard correctly refused a target it had no store for and the content stayed — a real round trip left seventeenSKILL.mdfiles and the lock file behind while reporting success. Both names are read now, per base. The store is derived from the base rather than from the lock's own directory, since it is<base>/.agents/skillsin both layouts while the lock's place is what differs. The skills directory beside a project lock is swept too, so a project install is visible without a receipt as well as with one. The lock file isskills add's own and can record skills from several sources, so this run drops its own entries and removes the file only when those were the only ones in it — the contractrmdiralready uses for a directory. The confinement guard is unchanged: a link out of the store still costs the link and nothing more. Both lookups are keyed on the lock as well as the skill name, since a machine carrying a global and a project install has the same name in both: keyed on the name alone the first record answered for the other one's store, so a project skill was judged against the global root, read as outside it, and left behind on a run that exited 0. (#541)uninstall.sh(stderr noise): a scan no longer printsprintf: I/O error.client_rows,all_client_rowsandrecordsemit a line at a time, and five consumers stopped reading early — fourawk … exitand onebreakout of awhile read— which closes the pipe while the producer is still writing; dash reports that EPIPE. They read to the end and keep the first match instead, which for a four-row table costs nothing. A static check enforces the shape, because running the code cannot: whether the producer is still writing when the consumer leaves depends on what fits in the pipe buffer, so the same early exit reproduces on Linux and not on macOS.check_pipe_drain.pyruns beside the deletion guard in pre-commit and in CI and rejects an early exit in any pipeline fed by a function defined in the script; anexitinside an awkENDblock is not one, since END runs after the input is consumed. (#541)- CI (round-trip coverage): the install/uninstall round trip runs both scripts from
$HOME/roundtriprather thanRUNNER_TEMP.npx skills addwrites into the working directory, andRUNNER_TEMPsits under$HOMEinside the prunedworktree, so the skills the job installed were never part of the filesystem comparison it exists to make. The job now also asserts outright that the install produced skills and that none survive the teardown, so the guarantee does not rest on which directories stay pruned. (#541) uninstall.sh(skills): a skill is removed only where a record says this toolkit installed it. Teardown deleted every~/.claude/skills/pipefy-*directory under a tier-1 label promising a reinstall would restore it, which is false for anything this repository does not ship:pipefy-is a namespace anyone may write in, and a skill someone authored there went throughremove_pathwith no backup. The prefix is now read as a namespace rather than a claim of ownership. Provenance comes from two records and nothing else — the install receipt, which lists the skills a run added by difference against what was already there, and the lock fileskills addkeeps for the base it wrote into, whosesourceis compared for equality against this repository. Anything else under the same prefix is reported and left in place, including in heuristic mode, which is where most machines are and stay. A skill directory is usually a link into a shared store, so the store content and the lock entry now go with the link instead of being stranded behind a run that reported the skill gone. (#541)uninstall.sh(hosted token): the hosted OAuth logout runs where it can reach its target.claude mcp logout <name>resolves the name across scopes and takes no scope flag, so running it in the credentials phase — before any registration was touched — bound it to whichever entry outranked the hosted one and failed, leaving the token stored. Removal now has a phase for unshadowing local- and project-scope registrations, then the logout, then the hosted entry itself; the credentials-before-configs-before-tools-before-skills-before-state order it sits inside is unchanged. A logout that fails is reported as failed with the in-client fallback, never as a cleared credential. (#541)uninstall.sh(deletion guard):remove_pathresolves a path before judging it. It compared strings after stripping trailing slashes, so$HOME/..was neither/nor$HOMEas text and named the directory holding every account. Paths are now normalised —.and..cancelled, the surviving directory resolved through the shell so a symlink cannot hide behind it, the final segment deliberately left alone because a symlink is deleted as a link — and a path containing$HOMEis refused alongside/and$HOMEthemselves. (#541)uninstall.sh(marketplace clone): aninstallLocationread out ofknown_marketplaces.jsonis a claim to check, not a deletion target. With no marketplace CLI verb to delegate to, teardown deleted whatever absolute directory that registry named while the plan said only unregister marketplace. The path is now required to be the plugin directory's own clone, derived from the client table; anything else is reported and left, and the plan discloses the clone it will delete. (#541)uninstall.sh(Codex sub-tables):[mcp_servers.<name>.env]is a separate table header, invisible to a scan that stops at the next[, so excising the parent section left the sub-table and its secrets behind while the closing re-scan reported Codex clean. A section with any dotted child table is now treated as hand-edited: both are reported, both stay, and the run does not claim the file is clear. (#541)install.sh/uninstall.sh(JSON rewrites):ensure_ascii=Falseon everyjson.dump. Adding or removing one registration rewrote unrelated servers' UTF-8 values as\uXXXXescapes — semantically identical, and a change to a file the user did not ask to have rewritten. (#541)uninstall.sh(receipt keys): the receipt reader accepts the hyphen its writer emits.entry_created.claude-desktopandentry_created.claude-codefailed an^[a-z][a-z0-9_.]*$key check and were dropped as malformed, so the bit recording that a registration was already there never reached the decision, and teardown fell back to the heuristic and deleted an installer-shaped Claude Desktop entry the installer had explicitly recorded leaving alone. A parity test now expands the writer's key vocabulary over the advertised--clientvalues and asserts the reader's alphabet accepts every one. (#541)uninstall.sh(exit contract): a teardown that removed nothing while state remains no longer exits0.Nothing to remove.returned success on exactly the tree--scanexits1on — a hand-edited Codex section, a registration a receipt records as pre-existing — and skipped the report, so the Left alone notes explaining why nothing was planned never printed. Both now match--scan. (#541)uninstall.sh(Linux keychain): a missingsecret-toolreports the Secret Service as uninspected and exits2, as a missingsecurityalready did on macOS. A credential store nothing could read is not a store known to be empty, whatever the reason it could not be read. (#541)uninstall.sh(--client none): the word is refused instead of silently disarming every registration edit.--helpadvertisednonein the--clientallowlist, inherited frominstall.shwhere it means install without registering, but teardown narrows registration edits and nothing else — sononematched no client, skipped every config edit, and still removed the tools, leaving each registration the scan found pointing at a missing command. That is the stranding the phase order exists to prevent, and "tear down but touch no client config" has no coherent meaning, so the value is rejected with a message naming the difference rather than given a second one. The help text is generated from the client table alone. (#541)uninstall.sh(skill store): a skill entry that links out of the store is not licence to delete what it points at. Resolving the link and deleting the target gave the teardown unbounded reach — a skill linked to a checkout of the user's own would have had that checkout removed — which is the marketplaceinstallLocationproblem with a longer arm. The permitted root is derived the same way the marketplace clone's is, from the lock fileskills addkeeps rather than from a hardcoded path —<base>/.agents/skillsfor the base that lock was found at — and both sides are canonicalized before the comparison. A target outside it leaves the link removed, the directory untouched, and a report line naming what stayed and where, so nothing reads as "the skill is gone" while its content is still on disk. (#541)uninstall.sh(hosted token, reporting): an exit status is not proof for a store this run cannot read.execute_planreported any action exiting0asRemoved:, so aclaude mcp logoutthat did nothing produced a verified removal claim, set the credential-deleted flag, and let the process exit0— with the client's OAuth store opaque to the closing re-scan, nothing ever contradicted it. The clear is now recorded as invoked-but-unobservable: its own report group, no removal claim, no credential-deleted accounting, and an exit of1rather than0, since a machine with an unverifiable clear is not one this run can call clean. This is the rule the local credential path already followed. (#541)- Skills (onboarding): the toolkit-setup skill's verify step uses the
curlform ofuninstall.sh --scan. It required./uninstall.shat a repository root, which the hosted and plugin paths the skill leads with never produce. (#541) install.sh: a faileduv tool installis no longer swallowed.run_quietread$?after theifthat ran the command, which is theif's own status (0) when its condition failed, so every failure reported success and the install carried on to register a server binary that was never installed. (#540)uninstall.sh(matching rule): a registration is found whichever of its two fields identifies this toolkit, and a declared transporttypeis required for neither. An entry carrying aurland notypewas treated as malformed and skipped, which is Claude Code's reading of that shape — it reads a type-less entry as stdio and refuses to start it — applied to every client. Cursor and Codex serve a bareurlover HTTP, so a hosted registration in a Cursor config was invisible to the scan and survived a teardown, and the same shape was judged three different ways across the two client formats. An entry carrying both acommandand aurldiverged the same way in the other direction. The shape is now matched as written, described by whichever half is this toolkit's, and the per-client caveat comes from atyped-remotecapability in the client table rather than from a client id in the matcher. The rule is implemented twice — python for the JSON configs, shell for the Codex TOML, which must work without python3 — and a suite drives one case table into both formats and one scan, so the copies cannot drift again. (#541)- SDK (error hierarchy):
PipefyGraphQLErrornow subclassesPipefyAPIError, and soPipefyError. It previously subclassedExceptiondirectly, which left the declared hierarchy disconnected from what the SDK actually raises:PipefyErrorandPipefyAPIErrorare both exported frompipefy_sdk.__all__and documented as the base and the API-payload error, but neither was raised anywhere in the package, while every GraphQL failure arrived as aPipefyGraphQLErrorthatexcept PipefyErrordid not catch. A consumer following the documented root caught nothing it would ever see. This widens whatexcept PipefyErrorcatches, which is the point, but it is visible to a library consumer: code that catchesPipefyErrorfor a narrow purpose and expected GraphQL failures to pass through will now intercept them. CatchPipefyGraphQLErrorfirst where the distinction matters. The two handlers inpipefy_cli.commands._commonare reordered for exactly that reason, so the GraphQL formatter still runs and CLI stderr keeps itsmessage (CODE)shape rather than collapsing tostr(exc);test_portal_sub_portal_detach_graphql_error_exits_1guardsrun_cli_commandand fails on the reparent alone;test_run_pipefy_client_coroutine_graphql_error_keeps_the_code_suffixguards the sibling runner. The parentage itself is pinned bypackages/sdk/tests/test_exception_hierarchy.py.PortalPermissionErroris untouched and still subclassesValueError, which is what keeps a portal permission denial on exit code 2 while other GraphQL failures exit 1. No CLI or MCP behavior changes. The reparent is groundwork for #92 (replacing the ~190 broadexcept Exceptionhandlers in the tool layer with typed catches); no handler is migrated here. - CLI (
pipefy auth logout): a stored keychain entry that exists but cannot be parsed — stale, corrupt, or written by an older schema — is now deleted instead of being reported asNot signed in. Nothing to do.while surviving on disk. The decision comes from entry presence (session_entry_presenceinpipefy_auth.storage:present/absent/unknown) rather than fromload_session, which collapses all three into oneNone. Revocation needs a readable refresh token, so an unreadable entry is delete-only and stderr says the token stays valid at the IdP until natural expiry. When the presence probe itself fails and nothing is deleted, the command claims neither removal nor a clean machine and exits 1. Revoke-failure warnings, the revoke-then-delete order, and the exit-1 manual-removal hint on a rejected delete are unchanged. (#538) - AI agents (active lifecycle): create can start inactive (
create_ai_agent(active=false)/pipefy agent create --inactive) by sendingdisabledAton create and the chained update so the second step does not revive; routine update preservesdisabledAt(optionaldisabled_at/--disabled-atpass-through skips the re-read; usetoggle_ai_agent_status/pipefy agent toggleto activate or deactivate); create/update success payloads exposedisabled_atandactive; partial-failure envelopes surface shelldisabled_atand a toggle recovery hint. Skills document the contract. (#520) - Release workflow (validate, then publish):
.github/workflows/release.ymlcreated the GitHub Release before anything installed the wheels, so a failing smoke install left a published Release advertising artifacts that could not start.v0.4.0-beta.1was exactly that shape — the Release was created, the smoke install failed withModuleNotFoundError, the PyPI upload was skipped, and withdrawing the Release and the tag was manual work. The job now runs in two bands: build, bound the wheel set, stage the PyPI set, and install it into a clean virtualenv launching every console entry point — and only then create the GitHub Release and upload to PyPI. A validation failure now leaves nothing behind but the tag, which is unavoidable because the tag is what triggers the workflow. PyPI stays last within the publish band, since an upload cannot be taken back while a Release can be deleted — which leaves one narrower gap by choice, a failing upload leaving a Release with no matching PyPI artifacts — and a comment in the file states the boundary so later validation is not added between the two publish steps. The two hand-rolled wheel-set assertions the job carried — an inline Python check ondist/, and a five-glob bash check while staging — collapse ontosmoke_entry_points.py --check-wheels, already used by the CI and scheduled-smoke workflows, so every workflow reads one definition of the published-member list rather than three that can drift apart. Closes #535. - Release CLI (build before the boundary):
scripts/release.py publishpushed the tag — the one irreversible step — without ever having built or installed the artifacts it was about to release. Every guard before the confirmation prompt was about repository state (branch, working tree, tag collision); the first time a wheel existed was on the CI runner, past the point of no return, andverifyinspected the published result.publishnow builds all five wheels withuv build --all-packages --wheelinto a temporary directory, asserts one wheel per published member, installs them into a clean virtualenv, and launches every console entry point throughsmoke_entry_points.py— the same sequence the release workflow runs, moved to the side of the boundary where a failure costs nothing but a minute. The check sits in the shared irreversible half, after the repository-state guards so a wrong checkout still fails in a second rather than after a build, and before the confirmation prompt so the operator answers it knowing the artifacts start; nothing can reach a tag push without crossing it. A failure names which step broke and states that nothing was tagged, pushed, or published.v0.4.0-beta.1is the shape this catches:mcp2.0.0 removed a module the MCP server imports at startup, so a fresh resolve produced a server that could not start — detectable locally in about a minute, and invisible in the release commit's diff, because nothing in the repository changed to cause it. Building into a temporary directory rather thandist/keeps a stale local build from being mistaken for a fresh one and leaves nothing behind. The confirmation prompt states that the built wheels install and launch, so what was checked is in front of the operator answering it. The check resolves third-party dependencies from PyPI rather thanuv.lock, so it will occasionally pick a newer permitted version than the lock pins — that divergence is its subject, not a defect — and it needs the index, so a cut cannot be made while PyPI is unreachable. The wheel setverifyrequires on the GitHub Release is now derived from the published-member list insmoke_entry_points.pyvia awheel_stemhelper, so the escaped filename forms are no longer a hand-written third copy of that list. Closes #534.
Added
- CI / docs (shell script coverage and teardown documentation):
install.shanduninstall.share linted rather than trusted.shellcheck --shell=shandsh -nrun from.pre-commit-config.yamland from a CI job that addsdash -n, since/bin/shon macOS forgives what a Debian-family/bin/shrejects; the hook comes fromshellcheck-pyso a contributor without Docker still gets it. A check asserts everyrmandrmdirinuninstall.shsits insideremove_path, and that the guard still refuses an empty argument, a relative path,/, and$HOME. A parity suite observes both scripts instead of reading them, snapshotting a fixtureHOMEaround a real install and a real teardown per--client, so a file a new installer step writes has to be one teardown accounts for. A Linux round-trip job proves completeness against a real install with real network and real uv; its allowlist is explicit and each entry carries its reason.docs/uninstall.mddocuments the scan, the tiered teardown, heuristic mode, what is never removed by design, and the per-channel switching recipes; the removal one-liners scattered across the READMEs and the onboarding skill point at it, and the skill's prose invariant becomes a--scanrun, in thecurlform the hosted and plugin paths can actually reach. (#541) install.sh/uninstall.sh(install receipt):install.shappends onekey=valuerecord per run to${XDG_STATE_HOME:-~/.local/state}/pipefy/install-receipt, recording theUV_TOOL_DIRit used, whether it installed uv, whether it created each client registration or found one already there, where the skills landed, the release tag, and a schema version. It is installer state rather than user configuration, so it sits outside~/.config/pipefy, which holds the user's ownconfig.toml. Each line is written as its step succeeds and the closingrecord=endmarks a finished run, so a crashed install still leaves a usable record; records accumulate, so a second run with a different--clientdoes not erase the first, and the merge takes the union of tool and skills directories because two runs with different--prefixboth need tearing down. The format is parsed with POSIX text tools alone — teardown does not inherit the installer's python3 dependency — and a value carrying a space, an=, a tab or a newline round-trips through a defined escape.uninstall.shprefers the receipt and falls back to heuristic mode when there is none: heuristic mode is permanent rather than transitional, since every install made before the receipt existed has none, and it removes less — in a config the installer writes it deletes a registration only where the value is exactly the single command the installer writes, and it never treats uv as this toolkit's. A record from an unknown schema is skipped whole rather than half-read, a malformed line is dropped, and no value from the receipt ever names something to delete: it only picks which tool directory to ask uv about, which skills directory to enumerate, and whether a registration the structural scan already found may be removed. The receipt is itself in the teardown inventory. Closes #540.- CI: the
main→devback-merge pull request now opens itself (.github/workflows/backmerge.yml). Anything merged straight intomain— a hotfix, a docs fix, a LICENSE — leftdevbehind until a human remembered to reconcile it, and nothing on the GitHub side noticed.release-prrefuses to cut while that is true, so forgotten drift did not corrupt a release; it blocked one, at the least convenient moment, for whoever happened to be cutting rather than whoever caused it. On every push tomain, daily, and on demand, the workflow countsorigin/dev..origin/mainand, when it is non-zero, cutsrc-dev/chore/back-merge-main-<short-sha>fromorigin/dev, mergesorigin/mainin, and opens a pull request intodev. The branch name is derived from themainhead, which is what makes a re-run idempotent: the same drift resolves to the same branch, so an existing branch or pull request is recognized and left alone rather than pushed over — the ruleset blocks non-fast-forward pushes, and rewriting a branch under review destroys the reviewer's incremental diff. A closed back-merge pull request is neither reopened nor re-pushed, since closing one is a human decision, but its unresolved drift is recorded on the tracking issue rather than treated as handled — #564 and #565 were both closed without merging and the divergence then sat unnoticed for days. A conflict is treated as a normal outcome rather than an error: release drift conflicts onCHANGELOG.mdby construction and binary assets conflict whenever both branches touched one, neither is resolvable automatically (-X oursand-X theirsboth silently discard real work), so the merge is aborted, nothing is pushed, and an issue labelledback-mergecarries the conflicting paths and the resolution commands. That issue is one thread found by its label, closes on its own once the branches are back in sync or when a later pull request answers it, and stays silent on a re-run that would say exactly the same thing. The run exits zero when either the pull request or the tracking issue landed, because a red X on every release trains people to ignore it — and non-zero when neither did, since exiting zero is defensible only while the issue is the compensating signal, and a green run that surfaced nothing at all is the silent drift this removes. The pull request carries no CI checks by default and says so plainly — GitHub does not triggeron: pull_requestfor a pull request opened withGITHUB_TOKEN— and aBACKMERGE_TOKENsecret turns checks on with no change to the workflow. The pull request body requires a merge commit: a squash or rebase discards the second parent, sodevgains the content ofmain's commits but never their ancestry, the count never reaches zero, and the workflow reproposes the same back-merge forever. When a merged pull request is found alongside surviving drift, the tracking issue names the squash as the cause and gives the commands to redo it. The decision logic is unit-tested intests/test_backmerge.py, and thepull_requesttrigger that exercises the workflow's own changes runs as a dry run, so editing it cannot open a genuine back-merge off the branch under review. Closes #561. - CI: the packaging smoke install now also runs on a daily schedule (
.github/workflows/packaging-smoke.yml), not only on push and pull request.uv.lockpins every dependency, so the suite passes against known-good versions no matter what is published, and this is the only gate that resolves from PyPI — which left the window between merges with no observer at all. A breakage published upstream armed itself with zero commits here and detonated on whatever release came next, regardless of content;mcp2.0.0 was caught by the release workflow's own smoke step, after the tag was pushed and the GitHub Release created. Two jobs run, because they see different failures: wheels built from the checkout catch an upstream release outside the declared bounds (the failure that would land on the next release), and the wheels already on PyPI, installed by name the way a user installs them, catch a broken or incomplete upload plus upstream breakage against the bounds of the release that already shipped. A failure opens an issue labelledpackaging-smoke-failure, or comments on the open one, so a break persisting across days stays one thread rather than a daily pile. Two limits are documented rather than solved: the schedule fires from the default branch only, so a change ondevis inert until promoted, and the gate proves process startup, not behaviour — a dependency release that breaks behaviour without breaking imports passes it, and the locked suite would not see it either. Closes #531. - CI:
scripts/smoke_entry_points.pybecomes the single definition of "every published console entry point", shared by the CI, release, and scheduled-smoke workflows, which each carried their own launch list. It reads installed distribution metadata rather than the checkout, so it fails when a published member is missing from the install or when a wheel stops shipping its script — a wheel-filename glob could not see either. Its--check-wheelsmode runs before the install and asserts one wheel per member, because an incomplete set is not an error forpip: the sibling==pins let it satisfy the absent member from the index, and the smoke then passes against a wheel the build never produced. Every discovered script is launched, so a newly added entry point is covered with no edit, while an explicit floor catches a lost one; the suite asserts both of its constants still match the workspace'spyproject.tomlfiles, so adding a package or a script fails a test instead of quietly narrowing what the packaging gate checks. - Skills: thin
pipefy-buildingrouter (skills/building/pipefy-building/) maps build/configure intent to the correct domain skill; catalog and authoring domain list includebuilding. Consulting-onlypipefy-process-designlinks execution asks to the router instead of growing a delivery playbook. - Skills (Builder guardrails):
pipefy-automationsrequires event×actiontriggerEventschecks before create, documents the known non-firingfield_updated+move_single_cardcombo, and consolidates a did-not-fire / empty-logs debug checklist;pipefy-ai-agents(and AI automations) require an explicit AI ask plus post-write active/disabledAtre-read;pipefy-ipaasroutes external-integration asks away from native automations/AI by default;pipefy-pipes-and-cardsstates phase connections are UI-only and requires verify-after-write before reporting success. - Release process: alpha releases ship from
dev, beta and stable releases frommain.scripts/release.py alpha-pr <bump>branches offorigin/dev, bumps the lockstep version, and opens a release PR intodev; once merged,publishfromdevtags the commit and pushes the tag, whose wheels reach PyPI as a pre-release so the hosted MCP server's deployment wrapper can pin an exact version and exercise a release in staging before it ships.release-pr betathen promotes the alpha to the first beta of the sameX.Y.Z(0.5.0-alpha.3->0.5.0-beta.1) through thedev->mainrelease PR, andpublishfrommainships it.alpha-prisrelease-prbased ondev, so both lines take the same reviewed path — a repository ruleset requires a pull request onmainanddevalike, and no flow pushes a release branch: the bump always arrives via a merged PR andpublishpushes only the tag, asserting the branch matches its remote so an unmerged release PR is reported as such. An alpha deliberately does not stampCHANGELOG.md:## [Unreleased]keeps accumulating acrossalpha.1..alpha.Nand is what the Release workflow uses as an alpha's release body, so the beta promotion still stamps the whole set into one section. Which branch a release ships from is derived from the version's own pre-release track rather than the operator's checkout, and enforced before the bump, again before the tag, and in the Release workflow itself, which asserts the tagged commit is an ancestor oforigin/devfor an alpha ororigin/mainotherwise before any wheel is built. - SDK / MCP: outbound Pipefy requests now carry the client deployment beside the surface, so hosted MCP traffic can be told apart from local installs. The two axes are orthogonal: the surface says which entry point ran (
mcp,cli,sdk), the deployment says where it runs (local,hosted). With both,User-Agentreadspipefy-sdk/<version> (<surface>; <deployment>)and a parsedX-Client-Deploymentjoins theX-Client-Name/X-Client-Versionpair, so a consumer never matches on theUser-Agentstring to group traffic. The MCP server derives the deployment from its resolved profile (remote→hosted, otherwiselocal) at the composition root: it is never read from env or TOML and noPIPEFY_*_DEPLOYMENTknob exists, keeping the property #336 established for the surface. Both sides are labelled explicitly, so a bare(mcp)unambiguously reads as a client older than this change rather than a local one — the one-time cost is that the existing(mcp)series is renamed rather than continued. The CLI keeps plain(cli)and sends noX-Client-Deployment(a CLI is local by definition), direct SDK use keeps plain(sdk), and OAuth requests to the sign-in host are unchanged: the IdP path has neither a surface nor a deployment. Closes #550.
Changed (breaking, internal API)
- MCP: ported to the
mcpSDK 2.x (mcp[cli]==2.0.*), superseding both the>=1.29.0,<2floor bump and the<2cap entry listed below in this same cycle, whose closing note that the upper bound stays no longer describes the shipped pin. 2.0 removes themcp.server.fastmcpmodule and renamesFastMCPtoMCPServer, so the pin could not move without the port. Nothing changes for a caller using the server over stdio or HTTP: the 187-tool surface, the--toolsetsselections, the remote-safe floor, the tool-error envelope, and the structured log shapes are all unchanged, verified by the full suite plus a live smoke against the API. What changes is the code that embeds this package.- The tool-call middleware seam moved onto the SDK's own. The chain used to wrap the low-level server's private
request_handlers[CallToolRequest]slot; 2.0 removes that dict and shipsMCPServer(middleware=[...])instead.install_tool_call_middlewarebecomesbuild_tool_call_middleware, which returns oneServerMiddlewarefor the composition root to pass to the constructor.extra_tool_middlewaresonbuild_pipefy_mcp_serveris unchanged, so an embedder registering middleware needs no edit; an embedder that calledinstall_tool_call_middlewaredirectly does. Three shape changes for a middleware author.ToolCallContext.reqis gone (readtool_nameandarguments, now raw pre-validation values off the params). The seam's return type is the SDK'sHandlerResult(BaseModel | dict[str, Any] | None) rather than atypes.ServerResult, and a middleware that short-circuits returns the serialized wire dictshort_circuit_errorbuilds, not a model. AndToolCallContextcarries a requiredprotocol_version:short_circuit_errorshapes its result against it, so any code constructing a context by hand (a middleware test fixture, a synthetic call) has to supply one. serverInfo.versionnow reports this package's version (pipefy_mcp.__version__) instead of the SDK's. FastMCP neither accepted nor forwarded a version, so the advertised string trackedmcpitself;MCPServertakes one.host,transport_security, andjson_responseleave the server constructor for the per-transport call, sowire_hosted_observabilitytakes them.portis unaffected: it only ever reached the uvicorn bind. An embedder that callsstreamable_http_app()itself must passjson_responsethere, or its POST replies become SSE-framed instead of plain JSON.core/fastmcp_tool_lifecycle.pyis deleted in favour of the publicMCPServer.remove_tool.transport_security_forpairs the resource-server URL parse with the allowlist build in one place.context_from_requestis renamedcontext_from_server_request, and its input changes from atypes.CallToolRequestmodel to aServerRequestContext. An embedder importing the old name frompipefy_mcp.core.tool_middlewaregets anImportError; the arguments and request id are read off the context (ctx.params,ctx.request) rather than offreq.params.McpRuntime.transport_securityis removed. The SDK takes the DNS-rebinding allowlist per transport, onstreamable_http_app(), so it no longer travels on the runtime; reading the attribute raisesAttributeError. Resolve it withtransport_security_for(settings)frompipefy_mcp.core.transport_securityand pass the result to the serving call, asrun_serverdoes.- What
call_nextreturns inside a tool-call middleware is now polymorphic. The SDK's own handler returns the serialized wire dict, keyedisErrorin camelCase, and so doesshort_circuit_error; aCallToolResultmodel, with a snake_caseis_error, only arrives from an inner middleware that built its result by hand. Read the flag throughresult_is_error(result), the supported accessor. A 1.x-style attribute read silently returns the default on the dict, so every real tool failure reads as a success. That exact read caused a regression during this port. - A short-circuiting middleware owns its response envelope, and
short_circuit_errornow shapes one. The SDK shapes a handler's result for the wire per negotiated revision inside the middleware chain, so a middleware that returns without awaitingcall_nextis never shaped. Returned as aCallToolResult, its 2.0resultTypedefault ("complete", a 2026-07-28 field) reached the wire on a connection that negotiated 2025-11-25, invisibly, because a client's surface validation ignores unknown fields.short_circuit_errornow takes theToolCallContextas its first argument and returns the wire dict, shaped by the SDK's ownserialize_server_resultagainstctx.protocol_version. A middleware author updates the call (short_circuit_error(ctx, "quota exceeded", code="RATE_LIMITED")); nothing changes for a client.ToolCallContextgainsprotocol_version. - A
tools/callthat names no tool is logged undertool: "<unnamed>"rather than an empty string, so it does not share a dashboard bucket with the real tool names. The call still reaches the middleware chain, andctx.tool_nameis still"", the raw view of what the client sent. - Mounting the HTTP app carries a lifespan obligation. The app
wire_hosted_observabilityreturns owns the lifespan that enterssession_manager.run(). Serving it directly (whatrun_serverdoes, and what a uvicorn deployment does) needs nothing extra. An embedder thatMounts it under a host Starlette or FastAPI app must enterapp.session_manager.run()from the host's own lifespan, because Starlette does not run a mounted app's lifespan; skipping it leaves the session manager unstarted and every request fails. - The 4 MiB Streamable HTTP body limit (a
413above it) carries forward from the 1.29.0 floor bump documented below, unchanged: the wiring passes nomax_request_body_size, so the SDK default stands. Attachments are unaffected (no tool takes bytes or base64); a long free-text argument is the reachable case. A hosted deployment that needs a larger body raises it on thestreamable_http_app()call. - The pin is the 2.0 patch line, not
<3. Two of the surfaces this package builds on sit outside what SemVer covers: theMCPServer(middleware=[...])list, which upstream marks provisional, and theTool.runpatch behind the argument-validation envelope. A minor release can move either with no signal, and no CI job resolves pastuv.lock, so nothing would catch it before a release. Patch releases are accepted; widening to a new minor is a deliberate change that re-tests both surfaces. - Transitive dependency changes worth noting for image builds: the SDK now uses
httpx2rather thanhttpx(this package still declareshttpxitself, and nothing hands an httpx object into the SDK), and addsmcp-types,opentelemetry-api, andtruststorewhile droppinghttpx-sse.truststorevalidates TLS against the OS trust store, so a minimal container with no system CA store needsSSL_CERT_FILE. Two transitive majors arrive together:starlette0.46.1 to 1.3.1 andsse-starlette2.2.1 to 3.4.6.starletteis now a declared dependency ofpipefy-mcp-server(starlette>=1.3.1,<2) rather than an undeclared transitive, because four modules import it directly (theStarletteappwire_hosted_observabilityreturns, and theRequestannotation onMcpRuntime.session_for_requestand the two identity resolvers), so an SDK release that dropped or vendored it would have broken those imports with no bound to catch it.uvicornis now declared for the same reason (uvicorn>=0.34.0,<1):run_serverimports it and builds theConfig/Serverpair on the--transport httppath, while the SDK requires it only under asys_platform != 'emscripten'marker, so the transitive guarantee was conditional. - The SDK deprecates the logging capability in the 2026-07-28 revision (SEP-2577), so every
ctx.debugcall in the tool modules emitsMCPDeprecationWarning— around a thousand warning records in a suite run, against a previously clean baseline. Migrating those calls is a behavior change deserving its own review, so the suite carries one scopedfilterwarningsignore instead, matched on the message rather than the class so the SDK's other deprecation subjects still surface. The ignore is bounded by construction: when the SDK removes the capability the calls break outright and the suite fails regardless. - Part of #543. The server negotiates
2025-11-25on theinitializehandshake, but a client that opens with the envelopedserver/discoverreaches2026-07-28, which a defaultmcp2.xClient(mode="auto") does. Adopting that revision as the served default is still separate work; what changed here is that the tools now behave correctly on both.
- The tool-call middleware seam moved onto the SDK's own. The chain used to wrap the low-level server's private
Changed (installer)
- Installer:
install.shresolves the newest GitHub Release whose tag is not an alpha, so a staging alpha published fromdevnever becomes what a defaultcurl … | shinstall hands out; the public install path stays on the beta line. Alphas are also flagged as GitHub pre-releases, keeping the "Latest" badge on the newest beta. Filtering is by tag shape rather than the API'sprereleaseflag, because the whole pre-1.0 line is betas that must stay installable.install.sh --version vX.Y.Z-alpha.Nstill installs an alpha on purpose.
Fixed
- Release process:
release-pr(andalpha-pr, which delegates to it) now refuses to cut whenorigin/maincarries commits absent fromorigin/dev, naming the count and prescribing the back-merge. The existing staleness guard compared version strings, so it only saw divergence that moved the version; work merged straight intomainwithout a bump — a doc fix, a CI workflow — passed it unnoticed. Since the cut branches offdevand the released notes come fromdev's## [Unreleased]alone, those entries were stamped out of the release section and left orphaned under## [Unreleased]onmain, and the resulting tag covered a combination only ever exercised by the PR merge check. The new guard runs before the branch is created, so a staledevcosts nothing to walk away from.prepareis unaffected: it runs onmainand stampsmain's own section, never consultingdev. Closes #528.