Skip to content

fix: add CI and MCP to MetaOrigin enum#73

Merged
vdusek merged 1 commit into
masterfrom
feat/meta-origin-add-ci-mcp
Jul 8, 2026
Merged

fix: add CI and MCP to MetaOrigin enum#73
vdusek merged 1 commit into
masterfrom
feat/meta-origin-add-ci-mcp

Conversation

@vdusek

@vdusek vdusek commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Add the two MetaOrigin values the platform already emits but the Python enum was missing, bringing it to parity with apify-shared-js:

  • MCP — runs started through the Apify client triggered from the Apify MCP server.
  • CI — runs started from a CI/CD pipeline (e.g. GitHub Actions).

Without MCP, any Actor invoked via the Apify MCP server crashes at startup: the released SDK line (apify 3.4.x) validates run.meta.origin against apify_shared.consts.MetaOrigin, and an unknown value raises a pydantic.ValidationError before user code runs.

Related: apify/apify-sdk-python#1032. The API OpenAPI spec is fixed in parallel (apify/apify-docs#2752), which covers the SDK master line that reads the enum from apify-client v3.

@vdusek vdusek added t-tooling Issues with this label are in the ownership of the tooling team. adhoc Ad-hoc unplanned task added during the sprint. labels Jul 8, 2026
@vdusek vdusek self-assigned this Jul 8, 2026
@vdusek vdusek changed the title feat: add CI and MCP to MetaOrigin enum fix: add CI and MCP to MetaOrigin enum Jul 8, 2026
@vdusek vdusek requested a review from Pijukatel July 8, 2026 12:37
@vdusek vdusek marked this pull request as ready for review July 8, 2026 12:37
@vdusek vdusek merged commit 8b9625d into master Jul 8, 2026
25 checks passed
@vdusek vdusek deleted the feat/meta-origin-add-ci-mcp branch July 8, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants