-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
[Feat] MCP Gateway - Allow setting MCP Servers as Private/Public available on Internet #20607
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
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
2640df0
update MCPAuthenticatedUser
ishaan-jaff 5eee751
add available_on_public_internet for MCPs
ishaan-jaff 95284dd
update claude.md
ishaan-jaff 3c61dd9
init IPAddressUtils
ishaan-jaff 2904ef5
init available_on_public_internet
ishaan-jaff 7e364f4
add on REST endpoints
ishaan-jaff 784342e
filter with IP
ishaan-jaff a925d41
TestIsInternalIp
ishaan-jaff 46a7cab
_extract_mcp_headers_from_request
ishaan-jaff fc483ea
init get_mcp_client_ip
ishaan-jaff 769df00
_get_general_settings
ishaan-jaff 4118fad
allowed_server_ids
ishaan-jaff 6d665c2
address PR comments
ishaan-jaff 35614ac
get_mcp_server_by_name fix
ishaan-jaff 0ad94af
fix server
ishaan-jaff 4252e9b
fix review comments
ishaan-jaff 490995d
get_public_mcp_servers
ishaan-jaff 7c48b80
address _get_allowed_mcp_servers
ishaan-jaff d57b991
Merge branch 'main' into litellm_mcp_control_internet
ishaan-jaff 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Server alias lookup regression
get_mcp_server_by_name()only matchesserver.server_name == server_nameand ignoresaliaseven though servers can be addressed via alias elsewhere. After this PR, multiple request paths (e.g., OAuth endpoints and dynamic MCP routes) rely onget_mcp_server_by_name(..., client_ip=...), so any client using an alias will now get a 404 even if the server exists and is allowed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you need me to change / edit @greptile ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add alias matching to
get_mcp_server_by_name(). Change:This preserves the existing alias lookup behavior while adding IP filtering.