Skip to content

[EX-2672] Add experiments API v2 client methods - #28

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

mariamelo-iterable merged 1 commit into
mainfrom
EX-2672-MCP-experiments-api-v2

Conversation

@mariamelo-iterable

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

Copy link
Copy Markdown
Contributor

Summary

EX-2672

Adds the experiments API v2 client methods the MCP server needs: create, copy a variant, update settings, start, cancel, declare a winner, and delete, plus lifetime totals and trends. Aligns get-experiment and variant responses with the v2 payload (status, allocation, sizing, and template content), while keeping id and percentage aliases for existing callers. Bumps the package to 0.13.0.

Test plan

  • pnpm test:unit (285 tests passed)
  • Manual check against a live experiments API

Callers that still read template fields at the top of a variant (subject, htmlSource) will fail validation. Those fields now live under content.

Expose create, lifecycle, totals, and trends calls and align experiment
responses with the v2 payload so the MCP server can drive experiments.
@mariamelo-iterable
mariamelo-iterable marked this pull request as ready for review September 24, 2026 16:19
@mariamelo-iterable
mariamelo-iterable merged commit c6fc038 into main Sep 30, 2026
6 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