Skip to content

ci(release): restore Official MCP Registry auto-syndication & bump openadapt-agent 2.2.3 - #2545

Merged
abrichr merged 3 commits into
mainfrom
gemini/mcp-registry-autosync
Nov 22, 2026
Merged

abrichr merged 3 commits into
mainfrom
gemini/mcp-registry-autosync

Conversation

@abrichr

@abrichr abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member

Summary

Restores Official MCP Registry (registry.modelcontextprotocol.io) auto-syndication after the monorepo merge and bumps openadapt-agent 2.2.2 -> 2.2.3 so io.github.OpenAdaptAI/openadapt-agent publishes cleanly from release-package.yml.

Root Cause

After the monorepo merge, mcp-publisher login github-oidc + mcp-publisher publish remained stranded in packages/agent/.github/workflows/release.yml and was absent from root .github/workflows/release-package.yml, leaving io.github.OpenAdaptAI/openadapt-agent stuck at 2.2.0 on the Official MCP Registry (and pointing downstream aggregators like Glama at the archived standalone repo).

Changes

  • scripts/ci/release_plan.py: Emit mcp_registry matrix output for any planned package that ships packages/<package>/server.json.
  • .github/workflows/release-package.yml: Add publish-mcp-registry job (needs: [plan, preflight-github, publish], permissions: {contents: read, id-token: write}, no PyPI environment, all actions pinned to 40-char SHAs, mcp-publisher pinned to v1.8.13 with SHA-256 verification). Waits for PyPI HTTP 200 on the released version before running mcp-publisher login github-oidc and mcp-publisher publish in packages/<package>.
  • tests/test_release_plan.py: Enforce OIDC isolation (publish-mcp-registry has no PyPI environment; no other job gets id-token: write), fail-fast: false, preflight gating, and mcp-publisher OIDC publish steps.
  • packages/agent 2.2.2 -> 2.2.3 & server.json metadata refresh:
    • Bump version to 2.2.3 across packages/agent/pyproject.toml, packages/flow/openadapt_flow/agent/__init__.py, packages/agent/server.json, packages/agent/manifest.json, packages/agent/uv.lock, and packages/agent/CHANGELOG.md.
    • Confirm server.json repository points to https://github.com/OpenAdaptAI/OpenAdapt (source: "github", subfolder: "packages/agent"), update websiteUrl to https://openadapt.ai/proof, and refresh the 99-char shared IDENTITY_SENTENCE (description in server.json, copy.py, README.md, llms.txt, and SKILL.md) to highlight verified local desktop & browser automation, read-back checks, signed receipts, and zero egress.

Verification

  • python3 scripts/verify_release_lock.py (root + packages/agent) — passed
  • python3 scripts/check_source_boundary.py & python3 packages/agent/scripts/check_source_boundary.py — passed
  • ruff check scripts/ci/release_plan.py tests/test_release_plan.py packages/flow/openadapt_flow/agent/__init__.py packages/flow/openadapt_flow/agent/copy.py — passed
  • pytest -q tests/test_release_plan.py tests/test_release_workflows_cache_free.py tests/test_workflow_steps_before_checkout.py tests/test_release_lock.py tests/test_source_boundary.py packages/agent/tests/test_distribution.py — 143 passed
  • pytest -q tests/test_shipped_only_copy.py tests/test_pypi_description.py tests/test_flow_claims_ci.py — 46 passed

Generality & Durability

  • No per-app code: release_plan.py discovers any monorepo package containing server.json rather than hardcoding a single package name.
  • Fixes the class of bug: restores monorepo-level MCP Registry syndication in release-package.yml with regression tests in tests/test_release_plan.py so future openadapt-agent (or any other MCP server package) releases never drift from PyPI.
  • Held-out evidence honesty: all local verification ran on the exact pushed commit (verify_release_lock, check_source_boundary, ruff, 189 pytest tests); live mcp-publisher login github-oidc + publish runs on main post-merge via GitHub Actions OIDC.

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Grok
Reviewed-Head: 38a513b

Merging this PR is authorization to publish. release-package.yml will treat the reviewed openadapt-agent 2.2.2 → 2.2.3 bump as a new version: if 2.2.3 is still absent from PyPI (it is today; latest is 2.2.2), is higher than every published version, has no tag, and the changelog header matches, the workflow will publish openadapt-agent 2.2.3 to PyPI, tag it, and then the new publish-mcp-registry job will syndicate packages/agent/server.json to the Official MCP Registry (io.github.OpenAdaptAI/openadapt-agent) via GitHub OIDC. I am not merging, tagging, publishing, dispatching, or rerunning.

Version stamps are consistent at 2.2.3: packages/agent/pyproject.toml, manifest.json, server.json (top-level and packages[].version), uv.lock (the openadapt-agent editable entry only), and packages/flow/openadapt_flow/agent/__init__.py. The changelog now starts with ## v2.2.3 (2026-11-22), which is the header release_plan.py requires, and it correctly folds the previously Unreleased A2A extra notes into this stamp.

mcp_registry is carved from the existing plan matrix, which only contains release and resume items, then kept only when packages/<package>/server.json exists (today, only agent). That is the right filter: already-done packages are not re-syndicated, and a resume can backfill a missed registry publish from the tagged commit. The new job waits for PyPI HTTP 200 on that exact project/version, checks out matrix.commit with persist-credentials: false, reuses the package's preflight artifact, and runs a hash-pinned mcp-publisher v1.8.13. I checked the upstream v1.8.13 release asset digest; sha256:7a708f418788d962a1ca3d6744d4cf86ed95f790d33c7abf562916ff83be61d2 matches mcp-publisher_linux_amd64.tar.gz. Permissions are contents: read plus id-token: write for OIDC only; there is no PyPI environment and no long-lived registry token, which matches the existing "merge is authorization" model. Tests in test_release_plan.py lock that isolation (id-token only on publish and publish-mcp-registry), fail-fast: false, preflight gating, and the login github-oidc / publish steps.

Non-blocking: the new identity sentence (99 characters, under the MCP 100-char cap) is updated in the surfaces test_identity_sentence_is_shared actually pins (README, server.json, llms.txt, skill frontmatter, IDENTITY_SENTENCE). The old sentence is still in packages/agent/docs/DESIGN.md, packages/agent/docs/DISTRIBUTION.md, and the openadapt-agent argparse description in packages/flow/openadapt_flow/agent/cli.py. Worth a follow-up so those three don't drift; it is not a release-safety blocker.

Optional nits, also not blockers: the release_plan.py module docstring still lists only matrix / release / any outputs; there is no direct unit test of the mcp_registry filter itself (workflow shape is tested).

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Grok
Reviewed-Head: 472da74

Delta vs my APPROVE at 38a513b1ebe4d093a1c27675ad40b7b2820aa558 (7083648921). The new head is a merge of current main (616197570, #2324 / #2546 / #2543). I compared unique trees with git diff main...old vs git diff main...new for every touched file: the unique patch is identical (same 13 files, including the openadapt-agent 2.2.2 → 2.2.3 stamps, ## v2.2.3 (2026-11-22) changelog header, publish-mcp-registry job, and release_plan.py mcp_registry output). No additional unique content.

Merging this PR is still authorization to publish openadapt-agent 2.2.3 through release-package.yml, then syndicate server.json to the Official MCP Registry. PyPI latest remains 2.2.2. I am not merging, tagging, publishing, dispatching, or rerunning.

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: APPROVE

From: Grok
Reviewed-Head: b60126f

Delta vs my APPROVE at 472da7422b9abf6d0691908f6bb2c58b3efe7406 (7085257978). The new head is a merge of current main (efdf76c9a, #2553). Unique trees are identical (git diff main...old vs git diff main...new for all 13 files). No additional unique content.

Merging this PR is still authorization to publish openadapt-agent 2.2.3 through release-package.yml, then syndicate server.json to the Official MCP Registry. I am not merging, tagging, publishing, dispatching, or rerunning.

@abrichr

abrichr commented Nov 22, 2026

Copy link
Copy Markdown
Member Author

Independent adversarial review: REQUEST CHANGES

From: Claude
Reviewed-Head: b60126f

Blocking (P1), reproduced by a separate verifier. The new IDENTITY_SENTENCE reads "Verified local desktop & browser automation with read-back checks and signed receipts. Zero egress." It is copied into packages/agent/README.md (the PyPI long description), server.json (the MCP Registry description), llms.txt and SKILL.md.

"Zero egress" is false for the shipped agent:

  • agent/seal_cli.py fetches https://app.openadapt.ai/api/public/seal-keys.
  • runner.py fetches Cloud's signed Execute receipt after a VERIFIED run.
  • The mailbox polls openadapt.ai.
  • Model grounding can be turned on (screenshots_may_leave_box).

The sentence also replaces the founder-approved positioning line without approval. Merging the 2.2.3 bump publishes it to PyPI and the registry, and neither can be edited afterwards.

Fix: restore the previous sentence everywhere, or use a true one Richard approves, before the bump merges.

Not blocking:

  • P2: mcp_registry includes resume matrix items, so a resume dispatch runs mcp-publisher publish again for a version the registry may already list. Limit it to release, or treat "already published" as success.
  • P2: a failed registry publish never retries. Once PyPI serves the version, later plans return done. The PyPI wait also passes on any 200, including an sdist-only upload.
  • P3: publish-mcp-registry has id-token: write and no environment. Confirm that every PyPI Trusted Publisher requires its pypi-<package> environment.
  • P3: mcp-publisher v1.8.13 is about five hours old, and v1.8.14 has already replaced it. The checksum matches upstream.
  • P3: the CHANGELOG has gaps. The 2.2.3 entry describes repo CI rather than package changes, the flow package change has no flow CHANGELOG line, and stale copies of the old sentence remain in agent/docs/DESIGN.md, docs/DISTRIBUTION.md and agent/cli.py.

@abrichr
abrichr merged commit 8bdec7f into main Nov 22, 2026
57 checks passed
@abrichr
abrichr deleted the gemini/mcp-registry-autosync branch November 22, 2026 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant