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

Function isMcpServerNameEntry

src/utils/settings/types.ts:1109–1113  ·  view source on GitHub ↗
(
  entry: AllowedMcpServerEntry | DeniedMcpServerEntry,
)

Source from the content-addressed store, hash-verified

1107 * Type guard for MCP server entry with serverName
1108 */
1109export function isMcpServerNameEntry(
1110 entry: AllowedMcpServerEntry | DeniedMcpServerEntry,
1111): entry is { serverName: string } {
1112 return 'serverName' in entry && entry.serverName !== undefined
1113}
1114
1115/**
1116 * Type guard for MCP server entry with serverCommand

Callers 2

isMcpServerDeniedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected