Skip to main content

Module mcp_config

Module mcp_config 

Source
Expand description

Trusted MCP settings conversion and late child-environment resolution.

Structs§

McpArgumentResourceSettings
Serializable argument-to-resource mapping.
McpChildEnvironment
Exact, bounded child environment resolved from an empty map.
McpEnvironmentError
Name-only, value-independent MCP environment resolution failure.
McpEnvironmentValue
Bounded environment value whose debug output is always redacted.
McpLifecycleSettings
Sparse lifecycle timeout overrides in milliseconds.
McpLimitsSettings
Sparse protocol and output limit overrides.
McpReconnectSettings
Explicit bounded reconnect settings.
McpServerSettings
Strict serializable settings for one explicitly configured MCP server.
McpToolDeclarationSettings
Complete host-owned effects, resources, and execution declaration.
McpToolSettings
Strict settings for one exact remote MCP tool policy.
ProcessMcpEnvironmentResolver
Resolver that reads the live process environment only when called.
StaticMcpEnvironmentResolver
Hermetic map-backed resolver for embedders and tests.

Enums§

McpConcurrencySettings
Serializable tool concurrency setting.
McpEnvironmentErrorCode
Stable failure classification for late MCP environment resolution.
McpRetrySafetySettings
Serializable retry-safety setting.
McpTransportSettings
Supported serializable MCP transport settings.

Constants§

MAX_CONFIGURED_MCP_SERVERS
Maximum explicitly configured MCP servers in one resolved product profile.
MAX_MCP_ENVIRONMENT_VALUE_BYTES
Maximum bytes admitted from one resolved environment value.
MAX_MCP_ENVIRONMENT_VALUE_TOTAL_BYTES
Maximum aggregate bytes admitted into one MCP child environment.

Traits§

McpEnvironmentResolver
Object-safe late resolver for explicitly allowlisted environment names.

Functions§

resolve_mcp_environment
Resolves one server’s exact allowlist into an otherwise empty environment.