Table of Contents

Constructor StdioTransport

Namespace
LMKit.Mcp.Transport
Assembly
LM-Kit.NET.dll

StdioTransport(string, string)

Initializes a new stdio transport with the specified command.

public StdioTransport(string command, string arguments = null)

Parameters

command string

The command to execute (e.g., "npx", "python").

arguments string

Command-line arguments (optional).

Exceptions

ArgumentException

Thrown when command is null or whitespace.

StdioTransport(StdioTransportOptions)

Initializes a new stdio transport with detailed options.

public StdioTransport(StdioTransportOptions options)

Parameters

options StdioTransportOptions

The transport configuration options.

Exceptions

ArgumentNullException

Thrown when options is null.

ArgumentException

Thrown when options are invalid.