Skip to content

@nogoo9/mcp-server-cloud-fs / path-utils / parseUri

Function: parseUri()

parseUri(uri): ParsedRoot

Defined in: path-utils.ts:15

Parse a cloud URI string into its component parts.

Supported schemes: s3://, az://, gs://, mem://, sqlite://.

Parameters

uri

string

Cloud URI, e.g. "s3://my-bucket/prefix".

Returns

ParsedRoot

Parsed root with scheme, bucket, prefix, and original URI.

Throws

If the URI does not match a supported scheme.

Released under the PolyForm Shield 1.0.0 License.