Skip to content

AgentPrismMcpOptions

Namespace AgentPrism · Assembly AgentPrism.Mcp.dll

Options for connecting to remote MCP servers.

public sealed class AgentPrismMcpOptions

objectAgentPrismMcpOptions

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

public AgentPrismMcpOptions()

The default name of the configuration section.

public const string SectionName = "AgentPrism:Mcp"

string

The upper time bound for connecting to a server and listing its tools.

public TimeSpan ConnectionTimeout { get; set; }

TimeSpan

Whether MCP tool discovery is on. When turned off, no server is connected to and only the tools registered in code are visible.

public bool Enabled { get; set; }

bool

In Mode A (AgentDefinition.McpResourceUris), the maximum number of bytes added to the context from a single resource. Content beyond this limit is trimmed.

public int MaxResourceBytesPerResource { get; set; }

int

In Mode A, the total byte limit across all resources of an agent definition. Resources beyond this limit are trimmed; resources beyond the total limit are skipped entirely.

public int MaxResourceBytesTotal { get; set; }

int

The maximum number of tools accepted from a single server. Tools beyond this limit are dropped and a warning is logged.

public int MaxToolsPerServer { get; set; }

int

The remote server is treated as untrusted. An unbounded tool list would produce uncontrolled growth both in the model context and in the UI.

The base URI of the OAuth Mode 1 (authorization code) callback addresses. Example: https://myapp.example.com/. Must already be registered with the provider. When null, no connection is made to a server with OAuth enabled, and /oauth/start returns McpOAuthOperationStatus.NotConfigured.

public Uri? OAuthCallbackBaseUri { get; set; }

Uri?

The refresh interval of the tool list. A remote server may change its tool definitions; discovery repeats at this interval.

public TimeSpan RefreshInterval { get; set; }

TimeSpan