Skip to content

Add get_fme_feature_flag tool#36

Open
joe-hagerman wants to merge 1 commit intoharness:masterfrom
joe-hagerman:expose-get_fme_feature_flag
Open

Add get_fme_feature_flag tool#36
joe-hagerman wants to merge 1 commit intoharness:masterfrom
joe-hagerman:expose-get_fme_feature_flag

Conversation

@joe-hagerman
Copy link

Summary

Exposes the Split.io "Get feature flag" API endpoint (GET /internal/api/v2/splits/ws/{wsId}/{feature_flag_name}) as a new MCP tool.

The new get_fme_feature_flag tool retrieves basic metadata for a single feature flag — without requiring an environment. This complements the existing get_fme_feature_flag_definition tool, which returns environment-specific data (treatments, rules, traffic allocation) and requires an environment parameter.

Changes

  • common/client/fme.go: Added GetFeatureFlag() service method on FMEService
  • common/pkg/tools/fme.go: Added GetFMEFeatureFlagTool() handler with ws_id and feature_flag_name as required parameters
  • common/pkg/modules/fme.go: Registered the new tool in the fme toolset
  • README.md: Documented the new tool in the FME toolset section

@rgrassian-split
Copy link
Contributor

Thank you for the suggestions! I can take things from here and get this implemented.

thisrohangupta added a commit to thisrohangupta/harness-mcp-v2 that referenced this pull request Mar 6, 2026
Adds a get operation for FME feature flags via the Split.io API
(GET /internal/api/v2/splits/ws/{wsId}/{flagName}). Returns basic
metadata (name, description, traffic type, tags, rollout status)
without requiring an environment parameter.

Parity with harness/mcp-server#36.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
thisrohangupta added a commit to thisrohangupta/harness-mcp-v2 that referenced this pull request Mar 6, 2026
feat: add fme_feature_flag resource type (parity with harness/mcp-server#36)
Copy link

@MontaEllis8 MontaEllis8 left a comment

Choose a reason for hiding this comment

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

✅ Code Review 通过

添加 get_fme_feature_flag 工具。

建议合并。

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.

3 participants