Skip to main content

final class atoti_ai.HttpMcpServerConfig

The configuration of an MCP server reached over HTTP. The Streamable HTTP transport is used, which is the one Atoti Server serves by default.
Declaring a server says where it is, never that it belongs to this deployment. Choose an authentication of "atoti-jwt" only for servers under the same ownership: the minted token is accepted by every server sharing the deployment’s JWT signing key. A third party given one holds a working credential for the whole deployment, in the name of a real user.
See also: The other McpServerConfig implementations.

authentication : Literal[‘none’, ‘atoti-jwt’, ‘pass-through’] = ‘none’

How the session authenticates itself against the server. "none" sends no credential, for a server that is genuinely unauthenticated. "atoti-jwt" sends a JWT minted for the calling user, carrying their username and authorities, and requires the server to share this session’s JWT signing key (see atoti.JwtConfig). "pass-through" forwards the calling user’s own bearer token unchanged, for a server validating tokens against an external identity provider.

endpoint : str | None = None

The path at which the server speaks the MCP protocol. Defaults to "/mcp", which is the path Atoti Server serves it at.

url : str

The address of the server, without the MCP endpoint. For example "https://pnl.example.com".