Skip to content

Conversation

@jonathannorris
Copy link
Member

@jonathannorris jonathannorris commented Jul 23, 2025

Add Support for Results Endpoints in MCP Tools

This PR adds support for DevCycle's evaluation results endpoints to the Model Context Protocol (MCP) server, enabling AI agents to query feature flag evaluation analytics.

✨ New Features

  • Feature Total Evaluations: Get evaluation analytics for a specific feature flag
  • Project Total Evaluations: Get evaluation analytics across all features in a project

🔧 API Endpoints Added

  • GET /v1/projects/{project}/features/{feature}/results/total-evaluations
  • GET /v1/projects/{project}/results/total-evaluations

@jonathannorris jonathannorris requested a review from a team as a code owner July 23, 2025 20:24
queries: z.infer<typeof FeatureTotalEvaluationsQuerySchema> = {},
) => {
return apiClient.get(
'/v1/projects/:project/features/:feature/results/total-evaluations',
Copy link
Member

Choose a reason for hiding this comment

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

we should rate limit this endpoint - or start caching the results from snowflake. If MCP servers are calling this with any frequency they'll get rate-limited.

Copy link
Member Author

Choose a reason for hiding this comment

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

yea we can keep an eye on that through DD, and add a rate limit if needed to the API

@jonathannorris jonathannorris merged commit 2ac42b6 into feat-mcp-server Jul 24, 2025
9 checks passed
@jonathannorris jonathannorris deleted the feat-add-result-mcp-tools branch July 24, 2025 13:41
jonathannorris added a commit that referenced this pull request Jul 25, 2025
* feat: add result endpoints to MCP tools

* fix: yarn build

* fix: revert feature tools changes
jonathannorris added a commit that referenced this pull request Aug 11, 2025
* feat: add result endpoints to MCP tools

* fix: yarn build

* fix: revert feature tools changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants