MCPcopy Index your code
hub / github.com/shareAI-lab/learn-claude-code / normalize_mcp_name

Function normalize_mcp_name

s19_mcp_plugin/code.py:688–690  ·  view source on GitHub ↗

Replace non [a-zA-Z0-9_-] with underscore.

(name: str)

Source from the content-addressed store, hash-verified

686
687
688def normalize_mcp_name(name: str) -> str:
689 """Replace non [a-zA-Z0-9_-] with underscore."""
690 return _DISALLOWED_CHARS.sub('_', name)
691
692
693def _mock_server_docs():

Callers 1

assemble_tool_poolFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected