fix(mcp): preserve IPv6 brackets when redacting URLs
This commit is contained in:
@@ -1247,6 +1247,7 @@ async def test_connect_mcp_servers_enabled_tools_matches_sanitized_name(
|
||||
[
|
||||
("https://user:secret@host.example/sse", "https://host.example/sse"),
|
||||
("https://host.example:8443/mcp?token=abc#frag", "https://host.example:8443/mcp"),
|
||||
("https://user:secret@[::1]:8443/sse?token=abc", "https://[::1]:8443/sse"),
|
||||
("https://host.example/sse", "https://host.example/sse"),
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user