mcp调试完成

This commit is contained in:
2026-01-20 01:51:39 +08:00
parent 7c99e67a7f
commit 860ada3334
5 changed files with 236 additions and 65 deletions

View File

@@ -11,6 +11,9 @@ def normalize_url(url: str) -> str:
2. 移除 fragment (#后面的内容)
3. 移除 query 参数 (视业务需求而定,这里假设不同 query 是同一页面)
4. 移除尾部斜杠
示例:
"https://www.example.com/path/" -> "https://www.example.com/path"
"https://www.example.com/path?query=1" -> "https://www.example.com/path"
"""
if not url:
return ""