nat.plugins.mcp.server.front_end_config#

Attributes#

Classes#

MCPFrontEndConfig

MCP front end configuration.

Module Contents#

logger#
class MCPFrontEndConfig(/, **data: Any)#

Bases: nat.data_models.front_end.FrontEndBaseConfig

MCP front end configuration.

A simple MCP (Model Context Protocol) front end for NeMo Agent toolkit.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

name: str = None#
host: str = None#
port: int = None#
debug: bool = None#
log_level: str = None#
tool_names: list[str] = None#
transport: Literal['sse', 'streamable-http'] = None#
runner_class: str | None = None#
base_path: str | None = None#
server_auth: nat.authentication.oauth2.oauth2_resource_server_config.OAuth2ResourceServerConfig | None = None#
classmethod validate_base_path(v: str | None) str | None#

Validate that base_path starts with ‘/’ and doesn’t end with ‘/’.

enable_memory_profiling: bool = None#
memory_profile_interval: int = None#
memory_profile_top_n: int = None#
memory_profile_log_level: str = None#
validate_security_configuration()#

Validate security configuration to prevent accidental misconfigurations.