Repository navigation
docs(mcp): scan tool descriptions on discovery and pin a server's tool list - #1750
Merged
mateo-berri merged 3 commits intoSep 26, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
bugbot run |
4 of 7 tasks
…on overrides are scanned
Contributor
Author
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 5eb874b. Configure here.
mateo-berri
deleted the
litellm_mcp_tool_description_scan_and_pin_docs
branch
September 26, 2026 21:07
This branch was successfully deployed
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.
TLDR
Documents two new MCP gateway controls: tool descriptions and input schemas now run through the
pre_mcp_callguardrails when a client discovers a server's tools, and admins can pin a server's tool list and descriptions so the gateway serves the pinned catalog and alerts on upstream driftWhat changed
docs/mcp_guardrail.mdgets a "Scanning Tool Descriptions on Discovery" section: which texts are scanned, what a block, a mask, and themcp_tool_description_blockedalert look like, a config example, and thelist_mcp_toolscall type custom guardrails seedocs/mcp_control.mdgets a "Pin a Server's Tool List" section: thePOSTandDELETE /v1/mcp/server/{server_id}/pinroutes with example responses, thepinned_toolsconfig mapping, the serving behavior, and themcp_pinned_tools_changeddrift alertdocs/mcp_config_reference.mdlinks both sections anddocs/proxy/alerting.mdlists the two new alert typesCompanion PR
The feature lands in BerriAI/litellm; this PR merges once that one does. BerriAI/litellm#43283
Note
Low Risk
Documentation-only changes with no runtime or security behavior in this repository.
Overview
Docs-only update for two MCP gateway security features (implementation in the companion litellm PR).
Discovery guardrail scanning (
mcp_guardrail.md): Documents thatpre_mcp_callguardrails now evaluate upstream tool descriptions and input-schema description fields duringtools/list(including REST and LLM-driven discovery). Blocked tools are omitted from listings; masked text is served;mcp_tool_description_blockedalerts fire. Adds config/curl examples, custom-guardraillist_mcp_toolshook details, and a cross-link from OpenAPI description overrides.Tool catalog pinning (
mcp_control.md): Documents freezing tool names, descriptions, and input schemas viaPOST/DELETE /v1/mcp/server/{server_id}/pinorpinned_toolsin config, client-visible behavior (403 for unpinned tools), andmcp_pinned_tools_changeddrift alerts. Notes interaction with discovery guardrails,allowed_tools, andtool_name_to_description.Cross-links:
mcp_config_reference.mdrelated-docs entries; new MCP Gateway Alerts rows inproxy/alerting.md.Reviewed by Cursor Bugbot for commit 5eb874b. Bugbot is set up for automated code reviews on this repo. Configure here.