feat(mcp): bill of materials read tools#7724
Open
andypalmi wants to merge 2 commits 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 #7724 +/- ##
==============================================================
Coverage 75.41% 75.42%
==============================================================
Files 426 427 +1
Lines 22551 22559 +8
Branches 5949 5949
==============================================================
+ Hits 17006 17014 +8
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:
|
16b0fea to
997d30a
Compare
8bfb22e to
9742987
Compare
997d30a to
880296b
Compare
Add read-only MCP tools for audit logs, instance and device history, instance resources and the application and team BOM, with unit and equivalence tests. Query-string building uses the shared appendQuery helper. Allow-list their scopes for the expert-mcp platform token.
880296b to
95b4963
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
Phase 1 read-only MCP tools for the bill of materials, in a new
forge/ee/lib/mcp/tools/bom.jsfile:platform_get_team_bom-GET /teams/:teamId/bomplatform_get_application_bom-GET /applications/:applicationId/bomBoth tools are
readOnlyHint: true, destructiveHint: false. BOM is plan-gated on feature keybom(default disabled); the tools surface a clear "feature not enabled for this team" message instead of a bare error when the team's plan does not have the feature. Team BOM results are filtered to the applications the caller can access.The audit-log, history, and resource-usage read tools are filed with the resource they describe (team audit log in
teams.js, hosted instance audit log/history/resources ininstances.js, remote instance audit log/history indevices.js, application audit-log export inapplications.js), following the one-file-per-resource convention.Scopes allow-listed for
user:expert-mcpinforge/routes/auth/permissions.js:team:bomapplication:bomCloses #7676
Test plan
eslintpasses on changed filesrequiresanity check)