Update litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Prithvi Monangi 2026-05-05 19:10:05 -07:00 committed by GitHub
parent 76d8d29951
commit c34337157e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -291,8 +291,8 @@ class SemanticMCPToolFilter:
# A unique-ID segment contains no separator at all (it's a
# short hex or alphanumeric string). Reject remainders that
# contain either underscore or dash, since both are valid
# separators in MCP tool names regardless of the configured
# MCP_TOOL_PREFIX_SEPARATOR.
if remainder and remainder[0] in ("_", "-"):
rest = remainder[1:]
if "_" not in rest and "-" not in rest:
return True