-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
[Bug Fix] Validate the MCP server name after splitting MCP {serverName}-{toolName} #17010
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
base: main
Are you sure you want to change the base?
[Bug Fix] Validate the MCP server name after splitting MCP {serverName}-{toolName} #17010
Conversation
|
@aaron-chen-aips is attempting to deploy a commit to the CLERKIEAI Team on Vercel. A member of the Team first needs to authorize it. |
|
@aaron-chen-aips this feels a bit clunky and error prone, can we try another separator? e.g. |
Hey thanks @krrishdholakia - of course, just not sure if it's used in the URL somewhere as |
|
@aaron-chen-aips I was thinking that we could apply a similar approach when calling tools — i.e., if there is only one allowed_mcp_server, we can omit the prefix, and if there are multiple, we can extract the server name from the prefix. |
Hey thanks @uc4w6c - I am not sure this would solve the issue. My current situation is I have multiple MCP servers in the config and one of them having |
|
can we just check if the split string actually exists as a valid server name? |
|
Thanks - updated the PR to check if split serverName exists @krrishdholakia @uc4w6c |



Title
Validate the MCP server name after splitting MCP {serverName}-{toolName}, as some MCP tool has hyphen (default separator) in the toolName and Litellm proxy will take the first part as the server name
Relevant issues
Fixes #16908
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unitType
🐛 Bug Fix
Changes