feat(mcp): snapshot read tools - #7720
Draft
andypalmi wants to merge 1 commit into
Draft
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feat/mcp-tools-shared-schemas #7720 +/- ##
=================================================================
+ Coverage 75.41% 75.54% +0.13%
=================================================================
Files 426 426
Lines 22551 22557 +6
Branches 5949 5943 -6
=================================================================
+ Hits 17006 17041 +35
+ Misses 5545 5516 -29
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:
|
andypalmi
force-pushed
the
feat/mcp-tools-snapshots-read
branch
from
July 4, 2026 13:33
5fa6a86 to
84edc1f
Compare
andypalmi
force-pushed
the
feat/mcp-tools-shared-schemas
branch
from
July 6, 2026 13:13
8bfb22e to
9742987
Compare
andypalmi
force-pushed
the
feat/mcp-tools-snapshots-read
branch
from
July 6, 2026 16:39
84edc1f to
64a8111
Compare
Add read-only MCP tools to get hosted and remote instance snapshots and the instance snapshot/device target, with unit and equivalence tests. Entity ids use the shared schema fragments. Allow-list their scopes for the expert-mcp platform token.
andypalmi
force-pushed
the
feat/mcp-tools-snapshots-read
branch
from
July 6, 2026 22:01
64a8111 to
09497ea
Compare
andypalmi
marked this pull request as draft
July 30, 2026 08:20
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
Adds the phase 1 read-only snapshot tools to
forge/ee/lib/mcp/tools/snapshots.js:platform_get_hosted_instance_snapshot—GET /api/v1/projects/:instanceId/snapshots/:snapshotIdplatform_get_remote_instance_snapshot—GET /api/v1/devices/:deviceId/snapshots/:snapshotIdplatform_get_snapshot—GET /api/v1/snapshots/:idplatform_get_snapshot_full—GET /api/v1/snapshots/:id/fullplatform_list_instance_target_devices—GET /api/v1/projects/:instanceId/devicesplatform_get_instance_device_settings—GET /api/v1/projects/:instanceId/devices/settingsAll tools are annotated
readOnlyHint: true, destructiveHint: false.Allow-lists the backing scopes for the
user:expert-mcptoken type inforge/routes/auth/permissions.js:project:snapshot:read,device:snapshot:read,snapshot:meta,snapshot:full.Base is
feat/mcp-tools-shared-schemassince this depends on the shared pagination schema fragments; it will retarget tomainonce that PR merges.Closes #7687
Test plan
eslinton changed files (also ran via pre-commit hook)forge/ee/lib/mcp/tools/snapshots.jsto confirm all tool definitions export correctly