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

Function isToolFromMcpServer

src/services/mcp/utils.ts:232–238  ·  view source on GitHub ↗
(
  toolName: string,
  serverName: string,
)

Source from the content-addressed store, hash-verified

230 * @returns True if the tool belongs to the specified server
231 */
232export function isToolFromMcpServer(
233 toolName: string,
234 serverName: string,
235): boolean {
236 const info = mcpInfoFromString(toolName)
237 return info?.serverName === serverName
238}
239
240/**
241 * Checks if a tool belongs to any MCP server

Callers 1

queryModelFunction · 0.85

Calls 1

mcpInfoFromStringFunction · 0.85

Tested by

no test coverage detected