test fix _get_mcp_servers_in_path

This commit is contained in:
Ishaan Jaffer
2025-09-20 10:09:59 -07:00
parent d187343d29
commit 7d91df4dbe
@@ -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)