mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
test fix _get_mcp_servers_in_path
This commit is contained in:
parent
d187343d29
commit
7d91df4dbe
1 changed files with 1 additions and 1 deletions
|
|
@ -635,7 +635,7 @@ if MCP_AVAILABLE:
|
|||
# Match /mcp/<servers>/<optional_path>
|
||||
# Where <servers> can be comma-separated list of server names
|
||||
# Server names can contain slashes (e.g., "custom_solutions/user_123")
|
||||
mcp_path_match = re.match(r"^/mcp/([^?#]+?)(/[^?#]*)?(?:\?.*)?(?:#.*)?$", path)
|
||||
mcp_path_match = re.match(r"^/mcp/([^?#]+)(/[^?#]*)?(?:\?.*)?(?:#.*)?$", path)
|
||||
if mcp_path_match:
|
||||
mcp_servers_str = mcp_path_match.group(1)
|
||||
optional_path = mcp_path_match.group(2)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue