Repository navigation
feat(mcp): add mcp_tool_search virtual tools for large tool catalogs #31777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
krrish-berri-2
merged 20 commits into
litellm_internal_staging
from
litellm_mcp_tool_search_support
Jul 1, 2026
Merged
Changes from 19 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
a304c0b
feat(mcp): add tool search virtual tools for large catalogs
krrish-berri-2 8839192
fix(mcp): persist mcp_tool_search_enabled and route tool_call by name
krrish-berri-2 2c52662
fix(mcp): filter list_tools to virtual tools on the protocol path
krrish-berri-2 85852f0
fix(mcp): enforce IP + server filtering on virtual tool search/call
krrish-berri-2 60f7f7f
fix(ci): ruff format server.py and sync dashboard API types
krrish-berri-2 64f003a
style(mcp): drop quoted annotations and sort imports
krrish-berri-2 d6c8dc3
Merge remote-tracking branch 'origin/litellm_internal_staging' into w…
krrish-berri-2 3a43ae5
refactor(mcp): extract virtual-tool dispatch and host progress capture
krrish-berri-2 57d3f6d
test(mcp): cover SSE virtual-tool dispatch and host progress helpers
krrish-berri-2 03e9265
fix(mcp): forward per-request auth headers through virtual tool handlers
krrish-berri-2 457e941
fix(mcp): preserve requested server scope in virtual tool calls
krrish-berri-2 51e8146
fix(mcp): convert virtual tool errors to isError on the protocol path
krrish-berri-2 d74a6fb
fix(mcp): spend-log virtual tool calls on the REST path
krrish-berri-2 5636acc
fix(mcp): reject virtual tool call when key has no accessible servers
krrish-berri-2 de701cf
Merge remote-tracking branch 'origin/litellm_internal_staging' into w…
krrish-berri-2 3be4fba
docs(mcp): document virtual tool_search module and parity rule in AGE…
krrish-berri-2 cff61f0
style(mcp): apply ruff format at repo line-length (120)
krrish-berri-2 c4fd312
fix(mcp): add mcp_tool_search_enabled to ObjectPermissionDict and cus…
krrish-berri-2 9989516
chore: trigger CI
krrish-berri-2 899e9b6
fix(mcp): mirror pre-call pipeline, guard imports, coerce top_k, hono…
krrish-berri-2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
.../litellm_proxy_extras/migrations/20260626120000_add_mcp_tool_search_enabled/migration.sql
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| -- AlterTable | ||
| ALTER TABLE "LiteLLM_ObjectPermissionTable" ADD COLUMN "mcp_tool_search_enabled" BOOLEAN; |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.