@modelcontextprotocol/sdk
    Preparing search index...

    Function resourceUrlFromServerUrl

    • Converts a server URL to a resource URL by removing the fragment. RFC 8707 section 2 states that resource URIs "MUST NOT include a fragment component". Keeps everything else unchanged (scheme, domain, port, path, query).

      Parameters

      • url: string | URL

      Returns URL