feat(mcp): device group read tools#7719
Open
andypalmi wants to merge 1 commit into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feat/mcp-tools-shared-schemas #7719 +/- ##
=================================================================
+ Coverage 75.41% 75.42% +0.01%
=================================================================
Files 426 427 +1
Lines 22551 22565 +14
Branches 5949 5949
=================================================================
+ Hits 17006 17020 +14
Misses 5545 5545
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
9420520 to
6d62562
Compare
8bfb22e to
9742987
Compare
6d62562 to
d1583af
Compare
Add read-only MCP tools to list application and team device groups, with unit and equivalence tests. Query-string building uses the shared appendQuery helper. Allow-list their scopes for the expert-mcp platform token.
d1583af to
f462226
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Phase 1 read-only MCP tools for fleet device groups, per Story 5 sub-issue 5.6-a.
Tools added (
forge/ee/lib/mcp/tools/deviceGroups.js):platform_list_application_device_groups—GET /api/v1/applications/:applicationId/device-groupsplatform_get_application_device_group—GET /api/v1/applications/:applicationId/device-groups/:groupIdplatform_list_team_device_groups—GET /api/v1/teams/:teamId/device-groupsAll three routes require the
deviceGroupsteam feature; when disabled they return the platform's existing 404 gate response.Scopes allow-listed for
user:expert-mcpinforge/routes/auth/permissions.js:application:device-group:listapplication:device-group:readteam:device-group:listWrite, membership, settings, and delete tools are tracked separately in sub-issues 5.6-b/c and are not part of this PR.
Closes #7699
Test plan
eslinton changed filesforge/ee/routes/index.js,applicationDeviceGroups/index.js,teamDeviceGroups/index.js