MCPcopy Create free account
hub / github.com/cortexkit/magic-context / isValidPort

Function isValidPort

packages/plugin/src/shared/rpc-utils.ts:80–82  ·  view source on GitHub ↗
(port: number)

Source from the content-addressed store, hash-verified

78}
79
80function isValidPort(port: number): boolean {
81 return Number.isInteger(port) && port > 0 && port <= 65535;
82}

Callers 1

parseRpcPortFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected