MCPcopy Create free account
hub / github.com/modelcontextprotocol/typescript-sdk / isHttpsUrl

Function isHttpsUrl

src/client/auth.ts:622–630  ·  view source on GitHub ↗
(value?: string)

Source from the content-addressed store, hash-verified

620 * Validate that the client_id is a valid URL with https scheme
621 */
622export function isHttpsUrl(value?: string): boolean {
623 if (!value) return false;
624 try {
625 const url = new URL(value);
626 return url.protocol === 'https:' && url.pathname !== '/';
627 } catch {
628 return false;
629 }
630}
631
632export async function selectResourceURL(
633 serverUrl: string | URL,

Callers 2

auth.test.tsFile · 0.85
authInternalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…