This repository was archived by the owner on Aug 3, 2026. It is now read-only.
Commit 8b9625d
authored
fix: add CI and MCP to MetaOrigin enum (#73)
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.1 parent 62b3392 commit 8b9625d
1 file changed
Lines changed: 6 additions & 0 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
353 | 359 | | |
354 | 360 | | |
355 | 361 | | |
| |||
0 commit comments