perf(mcp): fast external MCP capability search#2570
Closed
reachjalil wants to merge 7 commits into
Closed
Conversation
Contributor
|
@reachjalil is attempting to deploy a commit to the Different AI Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
reachjalil
marked this pull request as ready for review
July 13, 2026 18:55
reachjalil
marked this pull request as draft
July 17, 2026 08:22
Collaborator
Author
|
Superseded by #2967, rebuilt on current dev as a bounded search-only external MCP discovery cache that preserves current schemas and live execution behavior. |
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.
Warning
Queue audit (2026-07-17): returned to draft — do not merge this revision. Bounded capability discovery remains valuable, but this 18-file / 10k-line cache implementation predates the current OAuth recovery, connection diagnostics, and capability-source behavior. Reslice it after measuring current search latency; start with cache semantics/invalidation tests and add persistence only if the benchmark justifies it.
Manager summary
This makes External MCP capability discovery fast and bounded by caching derived
tools/listmanifests. A warm search reads tenant/principal-scoped cache rows instead of calling every remote MCP server, while execution still performs live authorization and invokes the provider directly.What changed
Performance evidence
Focused benchmark on the current branch:
tools/listcallsThe branch preserves the upstream 16-connection cap, concurrency 4, and lifecycle deadline. The obsolete branch-specific discovery-concurrency knob was removed during the upstream integration.
Security and correctness
execute_capabilitystill checks grants and credentials live and calls the remote server directly.in_progressrather than duplicating refresh work.Validation
0037_tranquil_big_bertha; after another schema PR merges, rebase and regenerate it before landing.Reviewer focus