( fullName: string, serverName: string, )
| 73 | * @returns The display name without the MCP prefix |
| 74 | */ |
| 75 | export function getMcpDisplayName( |
| 76 | fullName: string, |
| 77 | serverName: string, |
| 78 | ): string { |
| 79 | const prefix = `mcp__${normalizeNameForMCP(serverName)}__` |
| 80 | return fullName.replace(prefix, '') |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Extracts just the tool/command display name from a userFacingName |
no test coverage detected