MCPcopy Create free account
hub / github.com/WJX20/claude-code / classifyMcpToolForCollapse

Function classifyMcpToolForCollapse

src/tools/MCPTool/classifyForCollapse.ts:595–604  ·  view source on GitHub ↗
(
  _serverName: string,
  toolName: string,
)

Source from the content-addressed store, hash-verified

593}
594
595export function classifyMcpToolForCollapse(
596 _serverName: string,
597 toolName: string,
598): { isSearch: boolean; isRead: boolean } {
599 const normalized = normalize(toolName)
600 return {
601 isSearch: SEARCH_TOOLS.has(normalized),
602 isRead: READ_TOOLS.has(normalized),
603 }
604}

Callers 1

isSearchOrReadCommandFunction · 0.85

Calls 2

normalizeFunction · 0.70
hasMethod · 0.45

Tested by

no test coverage detected