Commit 2f0226c
[EX-2197] Add three new experiment MCP tools (#33)
* Add three new experiment MCP tools
Adds support for listing, getting, and retrieving variant content for experiments:
- list_experiments: List experiments with filtering by campaign, status, and date range
- get_experiment: Get detailed experiment information by ID
- get_experiment_variants: Get variant content including templates
Updates @iterable/api to 0.8.0 which includes the new experiment endpoints.
Adds comprehensive unit tests for all new tools.
Implements: EX-2197, EX-2198, EX-2199, EX-2200
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Use published @iterable/api@0.8.0 from npm
Removes local link and uses the published package from npm registry.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Add experiment tools to NON_PII and READ_ONLY tool filters
Adds the three new experiment tools to the appropriate filter lists:
- get_experiment: Read-only, non-PII
- get_experiment_variants: Read-only, non-PII
- list_experiments: Read-only, non-PII
Also regenerates pnpm-lock.yaml to fix overrides configuration mismatch
that was causing frozen lockfile CI failures.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Remove local api-client override from package.json
Removes the override that was linking to the local api-client directory.
Now uses the published @iterable/api@0.8.0 from npm.
Also updates TOOLS.md with the new experiment tools.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 039dc23 commit 2f0226c
6 files changed
Lines changed: 707 additions & 569 deletions
File tree
- src
- tools
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
0 commit comments