MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getMcpDisplayName

Function getMcpDisplayName

src/services/mcp/mcpStringUtils.ts:75–81  ·  view source on GitHub ↗
(
  fullName: string,
  serverName: string,
)

Source from the content-addressed store, hash-verified

73 * @returns The display name without the MCP prefix
74 */
75export 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

Callers 2

MCPToolDetailViewFunction · 0.85
MCPToolListViewFunction · 0.85

Calls 1

normalizeNameForMCPFunction · 0.85

Tested by

no test coverage detected