MCPcopy Index your code
hub / github.com/simstudioai/sim / createMcpToolId

Function createMcpToolId

apps/sim/lib/mcp/utils.ts:181–184  ·  view source on GitHub ↗
(serverId: string, toolName: string)

Source from the content-addressed store, hash-verified

179 * Create standardized MCP tool ID from server ID and tool name
180 */
181export function createMcpToolId(serverId: string, toolName: string): string {
182 const normalizedServerId = isMcpTool(serverId) ? serverId : `${MCP.TOOL_PREFIX}${serverId}`
183 return `${normalizedServerId}-${toolName}`
184}
185
186/**
187 * Parse MCP tool ID to extract server ID and tool name

Callers 2

utils.test.tsFile · 0.90
buildMcpToolMethod · 0.90

Calls 1

isMcpToolFunction · 0.90

Tested by

no test coverage detected