Skip to content

[EX-2672] Add campaign experiment lifecycle tools - #45

Merged
mariamelo-iterable merged 2 commits into
mainfrom
EX-2672-MCP-experiments-api-v2
Sep 30, 2026
Merged

mariamelo-iterable merged 2 commits into
mainfrom
EX-2672-MCP-experiments-api-v2

Conversation

@mariamelo-iterable

@mariamelo-iterable mariamelo-iterable commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

EX-2672

Adds MCP tools for campaign experiment lifecycle and reporting: create, copy a variant, update settings, start, cancel, declare a winner, delete, totals, and trends. Declares @iterable/api 0.13.0.

pnpm-lock.yaml still resolves 0.12.0 because 0.13.0 is not published yet. CI install is expected to fail until that version is on the registry and the lockfile is updated.

Testing

  • Unit tests: pnpm test:unit passed locally (40 suites, 254 tests) against an installed 0.13.0 client
  • CI is expected to fail until @iterable/api@0.13.0 is published

Agents need create, run, and reporting actions once @iterable/api 0.13.0 is published.
@ItMenoita
ItMenoita requested a review from a team September 28, 2026 12:53
@mariamelo-iterable
mariamelo-iterable marked this pull request as ready for review September 30, 2026 09:47
Comment thread src/tools/experiments.ts
createTool({
name: "get_experiment_totals",
description:
"Get lifetime send and conversion totals for a campaign experiment. Holdout is omitted, missing counts are 0, and lift and confidence are not included.",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to include or will it have a major rework, or is it out of scope?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lift and confidence? Out of scope, might be added when we change our data source further down the road

@mariamelo-iterable
mariamelo-iterable merged commit daf1994 into main Sep 30, 2026
9 checks passed
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.

2 participants