feat(mcp): team read tools - #7722
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 @@
## feat/mcp-tools-shared-schemas #7722 +/- ##
=================================================================
+ Coverage 75.41% 75.73% +0.32%
=================================================================
Files 426 426
Lines 22551 22592 +41
Branches 5949 5950 +1
=================================================================
+ Hits 17006 17110 +104
+ Misses 5545 5482 -63
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
Add read-only MCP tools for team lookup, dashboards, audit log, members and invitations, with unit and equivalence tests. Query params are url-encoded via the shared appendQuery helper. Allow-list their scopes for the expert-mcp platform token.
andypalmi
force-pushed
the
feat/mcp-tools-teams-read
branch
from
July 6, 2026 22:01
9f4845e to
aff2226
Compare
The 5 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 being tracked and shipped in a separate PR instead. Remove them and the redactDatabaseCredentials helper, their tests, and the team:database:list scope that only backed these tools.
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)