MCPcopy
hub / github.com/codeaashu/claude-code / isMcpTool

Function isMcpTool

src/services/mcp/utils.ts:245–247  ·  view source on GitHub ↗
(tool: Tool)

Source from the content-addressed store, hash-verified

243 * @returns True if the tool is from an MCP server
244 */
245export function isMcpTool(tool: Tool): boolean {
246 return tool.name?.startsWith('mcp__') || tool.isMcp === true
247}
248
249/**
250 * Checks if a command belongs to any MCP server

Callers 5

getMcpServerBucketsFunction · 0.85
ToolSelectorFunction · 0.85
runPostToolUseHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected