feat(mcp): team read tools - #7722
Open
andypalmi wants to merge 3 commits into
Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7722 +/- ##
==========================================
+ Coverage 76.17% 76.21% +0.04%
==========================================
Files 440 440
Lines 23604 23645 +41
Branches 6285 6286 +1
==========================================
+ Hits 17981 18022 +41
Misses 5623 5623
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-teams-read
branch
from
July 4, 2026 13:33
8721ef6 to
a6ff64d
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-teams-read
branch
from
July 6, 2026 16:39
a6ff64d to
9f4845e
Compare
andypalmi
force-pushed
the
feat/mcp-tools-teams-read
branch
from
July 6, 2026 22:01
9f4845e to
aff2226
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
Expose read-only team, membership, audit-log, and shared-data tools on the platform automation MCP surface.
andypalmi
force-pushed
the
feat/mcp-tools-teams-read
branch
from
August 3, 2026 15:30
b675d3f to
516c3cb
Compare
andypalmi
marked this pull request as ready for review
August 3, 2026 15:48
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 team resource, added to
forge/ee/lib/mcp/tools/teams.js. This covers team lookups, membership, the team audit log, and team-scoped data and packages:platform_get_team_by_slug-GET /teams/slug/:teamSlugplatform_get_team_instance_counts-GET /teams/:teamId/instance-countsplatform_check_team_slug_availability-POST /teams/check-slugplatform_get_team_membership-GET /teams/:teamId/userplatform_list_team_members-GET /teams/:teamId/membersplatform_list_team_invitations-GET /teams/:teamId/invitationsplatform_get_team_audit_log-GET /teams/:teamId/audit-logplatform_export_team_audit_log-GET /teams/:teamId/audit-log/exportplatform_list_team_npm_packages-GET /teams/:teamId/npm/packagesplatform_list_team_git_tokens-GET /teams/:teamId/git/tokensplatform_list_library_entries-GET /storage/library/:libraryId/*Each tool describes the team resource, so the membership tools and the team-data tools all fold into
teams.js, following the one-file-per-resource convention (rather than separatemembers.js/teamData.jsfiles). All tools are annotatedreadOnlyHint: true, destructiveHint: false.platform_check_team_slug_availabilityusesPOSTbut performs no mutation, so it is annotated read as well.The team-data surfaces (
npm,gitIntegration,shared-library) are plan-gated; the tools turn a feature-disabled 404 into a clear "feature not enabled" message.Scopes allow-listed on
IMPLICIT_TOKEN_SCOPES['user:expert-mcp']inforge/routes/auth/permissions.js:team:user:listteam:user:inviteteam:audit-logteam:packages:readteam:git:tokens:listlibrary:entry:listteam:create(
team:readwas already present.)Tools that describe a different resource are filed elsewhere: instance lists in
instances.js, application statuses inapplications.js, provisioning tokens indevices.js, and team types inplatform.js. Their backing scopes move with them.FlowFuse Tables tools (
platform_list_team_databases,platform_get_team_database,platform_list_database_tables,platform_get_database_table,platform_query_database_table_data) are split out to #7990, tracked by #7989.Write, destructive, and admin-only tools for this resource are out of scope for this PR.
Closes #7693
Test plan
eslinton changed files passesrequiresmoke check)