Skip to content

@nogoo9/mcp-server-cloud-fs / createTransport

Function: createTransport()

createTransport(type, options): Promise<ManagedTransport>

Defined in: transports/index.ts:95

Create a managed transport based on type and runtime.

Dynamically imports the appropriate transport module to avoid loading unnecessary dependencies.

Parameters

type

TransportType

Transport protocol to use.

options

TransportOptions

Configuration for HTTP/WS transports.

Returns

Promise<ManagedTransport>

A ManagedTransport ready to be started.

Released under the PolyForm Shield 1.0.0 License.