Skip to main content
MCP client transports over a unix-domain socket + the transport selector. The UDS transports implement the contract Transport Protocol; get_mcp_transport picks between them, fastmcp’s remote transports for URL servers, or fastmcp’s stdio transport for command servers, whose bare command resolve_stdio_command finds on a PATH or among the commands the declared StdioLaunch provider exposes, and whose child’s stderr is this process’s standard error descriptor (see tai42_kit.transport.stdio_launch).

BaseUDSTransport

tai42_kit.transport.base_uds_transport.BaseUDSTransport
MCP client transport that connects over a Unix domain socket at socket_path. Attributes

HTTPUDSTransport

tai42_kit.transport.http_uds_transport.HTTPUDSTransport
MCP transport speaking streamable-HTTP over a Unix domain socket.

Members

connect_session

tai42_kit.transport.http_uds_transport.HTTPUDSTransport.connect_session
Open an MCP client session over the socket, yielding it for the block. Parameters

SSEUDSTransport

tai42_kit.transport.sse_uds_transport.SSEUDSTransport
MCP client transport that speaks Server-Sent Events over a Unix domain socket.

Members

connect_session

tai42_kit.transport.sse_uds_transport.SSEUDSTransport.connect_session
Open an MCP client session over the socket’s SSE endpoint. Parameters

declare_stdio_launch

tai42_kit.transport.stdio_launch.declare_stdio_launch
Declare the stdio launch provider for this process. The owner of the install locations calls it; a later declaration replaces the earlier one. Parameters

declared_stdio_launch

tai42_kit.transport.stdio_launch.declared_stdio_launch
The stdio launch provider declared in this process (one exposing no commands when none was declared).

get_mcp_transport

tai42_kit.transport.utils.get_mcp_transport
Build the fastmcp transport for one MCP server config. A UDS server connects over a unix socket; uds_protocol selects the MCP wire protocol carried on it (http = streamable-http, sse = SSE) — the caller (which owns the runtime/CLI) supplies it, so it arrives unvalidated and any other value raises. A URL server gets fastmcp’s SSE or streamable-http transport, chosen by fastmcp’s own URL inference, carrying only the config’s headers and built on mcp_http_client; it ignores uds_protocol. A command server gets fastmcp’s stdio transport running the executable resolve_stdio_command finds for it (a bare name with no executable match raises) with the config’s args and its env exactly as declared; the child’s stderr is this process’s standard error descriptor (stdio_child_stderr). A config that sets none of uds, url and command raises ValueError naming the server. Parameters

resolve_stdio_command

tai42_kit.transport.stdio_launch.resolve_stdio_command
Return the executable a stdio server launched as command with env runs. A command with a directory part is returned unchanged. A bare name resolves to the first executable match on env’s PATH when it sets one, then the command of that name the declared provider exposes now, then on this process’s PATH when env sets none. With no executable match, raises PermissionError when a match is not an executable file, else FileNotFoundError, naming the PATH searched and the exposed command names. Parameters