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

Function isMcpServerCommandEntry

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

Source from the content-addressed store, hash-verified

1116 * Type guard for MCP server entry with serverCommand
1117 */
1118export function isMcpServerCommandEntry(
1119 entry: AllowedMcpServerEntry | DeniedMcpServerEntry,
1120): entry is { serverCommand: string[] } {
1121 return 'serverCommand' in entry && entry.serverCommand !== undefined
1122}
1123
1124/**
1125 * Type guard for MCP server entry with serverUrl

Callers 2

isMcpServerDeniedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected