Table of Contents

Method WithEnvironment

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

WithEnvironment(string, string)

Adds an environment variable for the subprocess (stdio transport only).

public McpClientBuilder WithEnvironment(string name, string value)

Parameters

name string

The environment variable name.

value string

The environment variable value.

Returns

McpClientBuilder

This builder instance for method chaining.

WithEnvironment(IDictionary<string, string>)

Sets multiple environment variables for the subprocess (stdio transport only).

public McpClientBuilder WithEnvironment(IDictionary<string, string> environment)

Parameters

environment IDictionary<string, string>

A dictionary of environment variables.

Returns

McpClientBuilder

This builder instance for method chaining.