Skip to content

feat(mcp): search read tools#7717

Open
andypalmi wants to merge 1 commit into
feat/mcp-tools-shared-schemasfrom
feat/mcp-tools-search-read
Open

feat(mcp): search read tools#7717
andypalmi wants to merge 1 commit into
feat/mcp-tools-shared-schemasfrom
feat/mcp-tools-search-read

Conversation

@andypalmi

Copy link
Copy Markdown
Contributor

Summary

Adds Phase 1 read-only MCP tools for the search scope (Story 5, #7232).

Tool file: forge/ee/lib/mcp/tools/search.js

Tools added:

  • platform_search_team_resources - GET /api/v1/search - search across a team's applications, hosted instances, and remote instances (devices)
  • platform_search_instances - GET /api/v1/search/instances - search a team's hosted and remote instances

Both tools are read-only (readOnlyHint: true, destructiveHint: false) and require teamId and query.

Scopes allow-listed in IMPLICIT_TOKEN_SCOPES['user:expert-mcp'] (forge/routes/auth/permissions.js):

  • team:search

Closes #7677

@codecov

codecov Bot commented Jul 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.42%. Comparing base (103f9ae) to head (b6831b5).

Additional details and impacted files
@@                        Coverage Diff                        @@
##           feat/mcp-tools-shared-schemas    #7717      +/-   ##
=================================================================
+ Coverage                          75.41%   75.42%   +0.01%     
=================================================================
  Files                                426      427       +1     
  Lines                              22551    22562      +11     
  Branches                            5949     5949              
=================================================================
+ Hits                               17006    17017      +11     
  Misses                              5545     5545              
Flag Coverage Δ
backend 75.42% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andypalmi andypalmi force-pushed the feat/mcp-tools-search-read branch from 5ee0c36 to ee4873a Compare July 4, 2026 13:33
@andypalmi andypalmi linked an issue Jul 6, 2026 that may be closed by this pull request
@andypalmi andypalmi force-pushed the feat/mcp-tools-shared-schemas branch from 8bfb22e to 9742987 Compare July 6, 2026 13:13
@andypalmi andypalmi force-pushed the feat/mcp-tools-search-read branch from ee4873a to 13df351 Compare July 6, 2026 16:39
Add read-only MCP tools for global team search and instance search, with unit and equivalence tests. Query-string building uses the shared appendQuery helper. Allow-list their scopes for the expert-mcp platform token.
@andypalmi andypalmi force-pushed the feat/mcp-tools-search-read branch from 13df351 to b6831b5 Compare July 6, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5.8 Search

1 participant