MCPcopy Index your code
hub / github.com/codeaashu/claude-code / detectCodeIndexingFromMcpServerName

Function detectCodeIndexingFromMcpServerName

src/utils/codeIndexing.ts:196–206  ·  view source on GitHub ↗
(
  serverName: string,
)

Source from the content-addressed store, hash-verified

194 * detectCodeIndexingFromMcpServerName('filesystem') // returns undefined
195 */
196export function detectCodeIndexingFromMcpServerName(
197 serverName: string,
198): CodeIndexingTool | undefined {
199 for (const { pattern, tool } of MCP_SERVER_PATTERNS) {
200 if (pattern.test(serverName)) {
201 return tool
202 }
203 }
204
205 return undefined
206}
207

Callers 1

callMCPToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected