nat.plugins.mcp.server.front_end_config#
Attributes#
Classes#
MCP front end configuration. |
Module Contents#
- logger#
- class MCPFrontEndConfig(/, **data: Any)#
Bases:
nat.data_models.front_end.FrontEndBaseConfigMCP 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.selfis explicitly positional-only to allowselfas a field name.- transport: Literal['sse', 'streamable-http'] = 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 ‘/’.
- validate_security_configuration()#
Validate security configuration to prevent accidental misconfigurations.