agent: Sanitize MCP tool names for stricter provider naming rules (#60154)

Closes #59038

Release Notes:

- agent: Fixed an issue where MCP servers with specific tool names would
cause errors when using Anthropic/OpenAI models
03125da544Bennet Bo Fenner committed on 7/1/2026, 7:41:49 AM· committed by GitHubparent40d2003
2 files changedLine totals unavailable