Skip to content

[EX-2197] Add experiments list, get, and get variants endpoints#14

Merged
gmethvin merged 3 commits intomainfrom
EX-2197-MCP-Add-experiments_list-tool-to-MCP-server
Mar 17, 2026
Merged

[EX-2197] Add experiments list, get, and get variants endpoints#14
gmethvin merged 3 commits intomainfrom
EX-2197-MCP-Add-experiments_list-tool-to-MCP-server

Conversation

@marcomorais33
Copy link
Contributor

Adds three new experiment endpoints to support MCP server tools:

  • listExperiments: List experiments with filtering by campaign, status, and date range
  • getExperiment: Get detailed experiment information by ID
  • getExperimentVariants: Get variant content including templates

Includes comprehensive unit tests for all new methods.

Related tickets: EX-2197, EX-2198, EX-2199

marcomorais33 and others added 3 commits March 17, 2026 14:33
Adds three new experiment endpoints to support MCP server tools:
- listExperiments: List experiments with filtering by campaign, status, and date range
- getExperiment: Get detailed experiment information by ID
- getExperimentVariants: Get variant content including templates

Includes comprehensive unit tests for all new methods.

Related tickets: EX-2197, EX-2198, EX-2199

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Make limit and offset truly optional with .optional().default()
- Use optional chaining for array access in tests

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Using .default() after .optional() still makes fields required in the input type.
The API will handle default values for limit and offset.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@gmethvin gmethvin merged commit 12f3462 into main Mar 17, 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