feat(mcp): remote instance (device) read tools - #7726
Open
andypalmi wants to merge 3 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7726 +/- ##
==========================================
+ Coverage 76.17% 76.27% +0.10%
==========================================
Files 440 440
Lines 23604 23615 +11
Branches 6285 6286 +1
==========================================
+ Hits 17981 18013 +32
+ Misses 5623 5602 -21
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-team-data-read
branch
from
July 4, 2026 13:33
9ccc25a to
6a6f4cb
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-team-data-read
branch
from
July 6, 2026 16:39
6a6f4cb to
9d267f6
Compare
andypalmi
force-pushed
the
feat/mcp-tools-team-data-read
branch
from
July 6, 2026 22:01
9d267f6 to
737394c
Compare
andypalmi
marked this pull request as draft
July 30, 2026 08:21
andypalmi
force-pushed
the
feat/mcp-tools-shared-schemas
branch
from
August 3, 2026 13:19
103f9ae to
5773bdb
Compare
Add forge/ee/lib/mcp/schemas.js, a shared module of composable zod fragments the platform read tools import instead of redefining entity-id and pagination/search/sort/audit-log query fields in each tool file. - entity-id params: teamId, applicationId, hostedInstanceId (UUID), remoteInstanceId, snapshotId - query fragments composed per route by spreading only the params the backing finder honors: cursorParam/limitParam (basePagination), pageParam, searchQuery, sortParams, auditLogFilters - appendQuery serialises a tool's supported params onto the request URL The module lives one level above tools/ so the tool loader does not register it as a tool module. Closes #7669
andypalmi
force-pushed
the
feat/mcp-tools-shared-schemas
branch
from
August 3, 2026 14:13
eae081f to
e04360f
Compare
andypalmi
force-pushed
the
feat/mcp-tools-team-data-read
branch
from
August 3, 2026 15:32
4cc7f56 to
2e3e1d6
Compare
andypalmi
marked this pull request as ready for review
August 3, 2026 15:47
andypalmi
force-pushed
the
feat/mcp-tools-team-data-read
branch
from
August 4, 2026 10:52
2e3e1d6 to
312b18b
Compare
This was referenced Aug 4, 2026
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 remote instance (device) resource, added to
forge/ee/lib/mcp/tools/devices.js:platform_get_remote_instance_audit_log-GET /devices/:deviceId/audit-log, takes aformat: 'json' | 'csv'argument.jsonreads audit-log entries;csvexports the CSV viaGET /devices/:deviceId/audit-log/export.platform_list_team_provisioning_tokens-GET /teams/:teamId/devices/provisioningEach tool describes the device resource, so all are filed with the existing device tools, following the one-file-per-resource convention. All tools are annotated
readOnlyHint: true, destructiveHint: false.platform_list_team_provisioning_tokensreturns the summary view, which omits the token secret.Scopes allow-listed in
IMPLICIT_TOKEN_SCOPES['user:expert-mcp'](forge/routes/auth/permissions.js):device:audit-logteam:device:provisioning-token:listWrite, delete, and credential-issuing endpoints for this resource are out of scope for this PR.
Closes #7708
Consolidation notes
platform_list_instance_http_tokensandplatform_get_instance_historytools on feat(mcp): hosted instance read tools #7727. Each takes aninstanceType: 'hosted' | 'remote'argument and so serves remote instances (devices) too, removing the need for remote-only variants here. Theproject:historyscope and the remote HTTP-tokens scope move with those tools to feat(mcp): hosted instance read tools #7727.platform_get_remote_instance_audit_logtool via aformat: 'json' | 'csv'argument:jsonreads entries andcsvexports the CSV through the/exportroute.Test plan
eslinton changed files passes with no errorsmochaon changed files passes