Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
outputs:
matrix: ${{ steps.plan.outputs.matrix }}
release: ${{ steps.plan.outputs.release }}
mcp_registry: ${{ steps.plan.outputs.mcp_registry }}
any: ${{ steps.plan.outputs.any }}
steps:
- name: Require main
Expand Down Expand Up @@ -560,3 +561,79 @@ jobs:
--repo "$GITHUB_REPOSITORY"
done
echo "Published https://github.com/$GITHUB_REPOSITORY/releases/tag/$RELEASE_TAG"

publish-mcp-registry:
name: publish ${{ matrix.project }} ${{ matrix.version }} to MCP Registry
needs: [plan, preflight-github, publish]
if: ${{ !cancelled() && needs.plan.outputs.mcp_registry != '[]' && needs.plan.outputs.mcp_registry != '' }}
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.plan.outputs.mcp_registry) }}
permissions:
contents: read
id-token: write # OIDC for `mcp-publisher login github-oidc`
steps:
- name: Checkout the exact published commit
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ matrix.commit }}
persist-credentials: false

- name: Require this package's hosting checks
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: preflight-${{ matrix.package }}
path: preflight/

- name: Wait for the PyPI package to be installable
env:
PROJECT: ${{ matrix.project }}
VERSION: ${{ matrix.version }}
run: |
set -euo pipefail
url="https://pypi.org/pypi/${PROJECT}/${VERSION}/json"
for attempt in $(seq 1 20); do
code="$(curl --silent --output /dev/null --write-out '%{http_code}' "$url")"
if [ "$code" = "200" ]; then
echo "${PROJECT} ${VERSION} is live on PyPI."
exit 0
fi
echo "Attempt ${attempt}: PyPI returned ${code} for ${PROJECT} ${VERSION}; waiting 15s..."
sleep 15
done
echo "::error::${PROJECT} ${VERSION} did not appear on PyPI in time." \
"The MCP registry validates package existence, so it would reject" \
"this publish. Check the PyPI publish job." >&2
exit 1

- name: Install the pinned mcp-publisher CLI
id: mcp-publisher
run: |
set -euo pipefail
archive=/tmp/mcp-publisher_linux_amd64.tar.gz
curl --fail --location --silent --show-error \
https://github.com/modelcontextprotocol/registry/releases/download/v1.8.13/mcp-publisher_linux_amd64.tar.gz \
--output "$archive"
echo "7a708f418788d962a1ca3d6744d4cf86ed95f790d33c7abf562916ff83be61d2 $archive" \
| sha256sum --check --strict
tar --extract --gzip --file "$archive" --directory /tmp mcp-publisher
cli=/tmp/mcp-publisher
test -x "$cli"
echo "path=$cli" >> "$GITHUB_OUTPUT"

- name: Authenticate to the MCP Registry (OIDC)
env:
MCP_PUBLISHER: ${{ steps.mcp-publisher.outputs.path }}
working-directory: packages/${{ matrix.package }}
run: |
"$MCP_PUBLISHER" login github-oidc

- name: Publish server.json to the MCP Registry
env:
MCP_PUBLISHER: ${{ steps.mcp-publisher.outputs.path }}
working-directory: packages/${{ matrix.package }}
run: |
"$MCP_PUBLISHER" publish
2 changes: 1 addition & 1 deletion llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ The MCP server section follows; the other packages are listed at the end.

## MCP server: openadapt-agent (`uvx openadapt-agent serve --bundles <dir>`, MCP Registry `io.github.OpenAdaptAI/openadapt-agent`)

> Your AI agent decides what to enter. OpenAdapt enters it in the app and checks that it saved.
> Verified local desktop & browser automation with read-back checks and signed receipts. Zero egress.

Use this when an AI agent has decided what to enter in a web, desktop or remote-desktop app with no usable API. EMRs and payer portals are examples of highly regulated settings where it fits. OpenAdapt enters the values in the same screens staff use, on a computer the customer controls, then reads the saved record back. When something doesn't match, it stops and a person decides. A normal run makes no AI model calls.

Expand Down
4 changes: 3 additions & 1 deletion packages/agent/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

Releases up to v2.2.0 are recorded in the [openadapt-agent repository](https://github.com/OpenAdaptAI/openadapt-agent/blob/main/CHANGELOG.md).

## Unreleased
## v2.2.3 (2026-11-22)

- Restore Official MCP Registry (`registry.modelcontextprotocol.io`) auto-syndication from the monorepo `release-package.yml` workflow via GitHub OIDC (`mcp-publisher`) for packages shipping `server.json`.
- Refresh `server.json` metadata (`websiteUrl` -> `https://openadapt.ai/proof` and verified local execution / read-back checks / signed receipts / zero-egress description).
- New `a2a` extra for `openadapt-agent serve --a2a`, the A2A (Agent2Agent)
protocol adapter in openadapt-flow (docs/A2A.md). `--handoffs` adds
`get_handoff` and `verify_handoff`. Both need an openadapt-flow that has
Expand Down
2 changes: 1 addition & 1 deletion packages/agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Python](https://img.shields.io/pypi/pyversions/openadapt-agent)](https://pypi.org/project/openadapt-agent/)
[![License: MIT](https://img.shields.io/badge/license-MIT-green)](https://github.com/OpenAdaptAI/OpenAdapt/blob/main/packages/agent/LICENSE)

Your AI agent decides what to enter. OpenAdapt enters it in the app and checks that it saved.
Verified local desktop & browser automation with read-back checks and signed receipts. Zero egress.

Use it if your agent works out what belongs in a record, but a person still types the result into a web, desktop or remote-desktop app with no usable API. An electronic medical record (EMR) and a payer portal are examples of highly regulated settings where it fits. This package is the tool your agent calls to do that typing.

Expand Down
2 changes: 1 addition & 1 deletion packages/agent/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": "0.4",
"name": "openadapt-agent",
"display_name": "OpenAdapt",
"version": "2.2.2",
"version": "2.2.3",
"description": "Lets your AI agent enter information in an app with no API and get back whether it saved.",
"long_description": "Your agent sends a workflow name, its inputs, and its own request id. OpenAdapt enters the values in the app's own screens on this computer, reads the saved record back, and returns done, needs review, not sure if saved, or did not run. The same request id never writes twice. Workflow files and evidence stay on this computer.",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion packages/agent/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "openadapt-agent"
version = "2.2.2"
version = "2.2.3"
description = "Let your AI agent enter information in apps with no API and get back whether it saved (MCP and Agent Skills)"
readme = "README.md"
# openadapt-flow pins <3.13 (rapidocr-onnxruntime); this package inherits it.
Expand Down
8 changes: 4 additions & 4 deletions packages/agent/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"name": "io.github.OpenAdaptAI/openadapt-agent",
"title": "OpenAdapt: your agent decides, OpenAdapt enters it and checks it saved",
"description": "Your AI agent decides what to enter. OpenAdapt enters it in the app and checks that it saved.",
"websiteUrl": "https://docs.openadapt.ai",
"description": "Verified local desktop & browser automation with read-back checks and signed receipts. Zero egress.",
"websiteUrl": "https://openadapt.ai/proof",
"repository": {
"url": "https://github.com/OpenAdaptAI/OpenAdapt",
"source": "github",
"subfolder": "packages/agent"
},
"version": "2.2.2",
"version": "2.2.3",
"packages": [
{
"registryType": "pypi",
"registryBaseUrl": "https://pypi.org",
"identifier": "openadapt-agent",
"version": "2.2.2",
"version": "2.2.3",
"runtimeHint": "uvx",
"transport": {
"type": "stdio"
Expand Down
2 changes: 1 addition & 1 deletion packages/agent/skills/openadapt-gui-write/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: openadapt-gui-write
description: "Your AI agent decides what to enter. OpenAdapt enters it in the app and checks that it saved."
description: "Verified local desktop & browser automation with read-back checks and signed receipts. Zero egress."
---

# OpenAdapt: enter it in the app and check that it saved
Expand Down
2 changes: 1 addition & 1 deletion packages/agent/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/flow/openadapt_flow/agent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
for a trusted client in the same data boundary.
"""

__version__ = "2.2.2"
__version__ = "2.2.3"

__all__ = ["__version__"]
2 changes: 1 addition & 1 deletion packages/flow/openadapt_flow/agent/copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from __future__ import annotations

IDENTITY_SENTENCE = "Your AI agent decides what to enter. OpenAdapt enters it in the app and checks that it saved."
IDENTITY_SENTENCE = "Verified local desktop & browser automation with read-back checks and signed receipts. Zero egress."

SKILL_WHEN_TO_USE = (
"Use this when your agent has decided what to enter and the app has no usable "
Expand Down
6 changes: 6 additions & 0 deletions scripts/ci/release_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@ def main(argv: list[str] | None = None) -> int:
handle.write(f"matrix={json.dumps(matrix)}\n")
releases = [item for item in matrix if item["action"] == "release"]
handle.write(f"release={json.dumps(releases)}\n")
mcp_registry = [
item
for item in matrix
if (ROOT / "packages" / item["package"] / "server.json").is_file()
]
handle.write(f"mcp_registry={json.dumps(mcp_registry)}\n")
handle.write(f"any={'true' if matrix else 'false'}\n")
if args.dispatch and refused:
print("\n".join(["Refusing:", *refused]), file=sys.stderr)
Expand Down
24 changes: 21 additions & 3 deletions tests/test_release_plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,30 @@ def test_the_workflow_runs_on_main_after_packages_on_a_schedule_and_on_dispatch(
jobs = workflow["jobs"]
assert "release_plan.py" in jobs["plan"]["steps"][-1]["run"]
assert jobs["plan"]["permissions"] == {"contents": "read", "actions": "read"}
# Only the publish job may mint a PyPI token, in the package's environment.
# Only the publish job may mint a PyPI token, in the package's environment;
# publish-mcp-registry mints a separate GitHub OIDC token (no PyPI env)
# strictly for packages that ship a server.json MCP Registry manifest.
assert jobs["publish"]["environment"]["name"] == "pypi-${{ matrix.package }}"
assert jobs["publish"]["permissions"] == {"id-token": "write"}
assert "environment" not in jobs["publish-mcp-registry"]
assert jobs["publish-mcp-registry"]["permissions"] == {
"contents": "read",
"id-token": "write",
}
for name, job in jobs.items():
if name != "publish":
if name not in {"publish", "publish-mcp-registry"}:
assert "id-token" not in (job.get("permissions") or {}), name


def test_each_package_chain_gates_on_its_own_legs() -> None:
jobs = yaml.safe_load(WORKFLOW.read_text(encoding="utf-8"))["jobs"]
for name in ("build", "preflight-github", "publish", "publish-github"):
for name in (
"build",
"preflight-github",
"publish",
"publish-github",
"publish-mcp-registry",
):
assert jobs[name]["strategy"]["fail-fast"] is False, name

def downloads(job: str) -> set[str]:
Expand All @@ -187,6 +200,11 @@ def downloads(job: str) -> set[str]:
assert "preflight-${{ matrix.package }}" in downloads("publish")
assert "dist-${{ matrix.package }}" in downloads("publish")
assert "preflight-${{ matrix.package }}" in downloads("publish-github")
assert "preflight-${{ matrix.package }}" in downloads("publish-mcp-registry")
mcp_runs = "\n".join(
step.get("run", "") for step in jobs["publish-mcp-registry"]["steps"]
)
assert "login github-oidc" in mcp_runs and '"$MCP_PUBLISHER" publish' in mcp_runs
runs = "\n".join(step.get("run", "") for step in jobs["publish-github"]["steps"])
# It tags only what PyPI serves, at the built (or already tagged) commit.
assert "pypi_dist.py compare" in runs and "pypi_dist.py fetch" in runs
Expand Down