feat(mcp): catalog read tools - #7721
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 #7721 +/- ##
==========================================
+ Coverage 76.17% 76.38% +0.20%
==========================================
Files 440 440
Lines 23604 23618 +14
Branches 6285 6285
==========================================
+ Hits 17981 18040 +59
+ Misses 5623 5578 -45
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-catalog-read
branch
from
July 4, 2026 13:33
439e08b to
5d7e091
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-catalog-read
branch
from
July 6, 2026 16:38
5d7e091 to
a46d91f
Compare
andypalmi
force-pushed
the
feat/mcp-tools-catalog-read
branch
from
July 6, 2026 22:01
a46d91f to
138f496
Compare
andypalmi
marked this pull request as draft
July 30, 2026 08:20
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-catalog-read
branch
from
August 3, 2026 15:32
0bc2dce to
62ad4f3
Compare
andypalmi
marked this pull request as ready for review
August 3, 2026 15:47
Add read-only MCP tools to list and get stacks, hosted instance types, templates, blueprints and team types by id, allow-listing their scopes for the expert-mcp platform token.
andypalmi
force-pushed
the
feat/mcp-tools-catalog-read
branch
from
August 3, 2026 15:57
62ad4f3 to
d91efd2
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
Read tools for the platform catalogs, added to
forge/ee/lib/mcp/tools/platform.js. Adds get-by-id lookups (the list variants already exist) and the team-type catalog reads:platform_get_template-GET /templates/:templateIdplatform_get_blueprint-GET /flow-blueprints/:flowBlueprintIdplatform_list_team_types-GET /team-typesplatform_get_team_type-GET /team-types/:teamTypeIdNo stack or instance-type get-by-id tools: the existing
platform_list_hosted_instance_typesalready returns every project-type nested with its full stacks and adefaultStack, and accepts aprojectTypeargument to narrow to one type.GET /project-types/:idandGET /stacks/:iduse the sameviews.ProjectType.projectTypeandviews.ProjectStack.stackviews that tool already returns, soplatform_get_hosted_instance_type,platform_get_stack, and a standaloneplatform_list_stackswould be redundant and are not added.Team types are a global platform catalog with no team in the path, mirroring project-types, so they are filed with the platform catalog tools following the one-file-per-resource convention. All tools are
readOnlyHint: true, destructiveHint: false.Scopes allow-listed for
user:expert-mcpinforge/routes/auth/permissions.js:template:readflow-blueprint:readteam-type:listteam-type:readCloses #7679
Test plan
eslinton changed files passes