Enumerations Classes
Smarter API MCPClient Manifest - enumerated datatypes.
- class smarter.apps.mcpclient.manifest.enum.SAMMCPClientAuthType(*values)[source]
Bases:
SmarterEnumAbstractHow an MCPClient authenticates with its MCP server.
none: no authentication.api_key: the credential is sent in theapiKeyHeaderHTTP header.bearer_token: the credential is sent asAuthorization: Bearer <credential>.oauth2: an OAuth access token, sent asAuthorization: Bearer <token>. Smarter does not yet perform the OAuth authorization flow, nor refresh tokens, so the token must be obtained elsewhere and stored in a Smarter Secret.
- API_KEY = 'api_key'
- BEARER_TOKEN = 'bearer_token'
- NONE = 'none'
- OAUTH2 = 'oauth2'
- class smarter.apps.mcpclient.manifest.enum.SAMMCPClientTransport(*values)[source]
Bases:
SmarterEnumAbstractThe transport with which an MCPClient reaches its MCP server.
http: Streamable HTTP, the MCP transport for remote servers.sse: the legacy HTTP+SSE transport, which some remote servers still use.stdio: a local subprocess. Reserved. Smarter does not run MCP servers as subprocesses, so manifests with this transport are rejected.
- HTTP = 'http'
- SSE = 'sse'
- STDIO = 'stdio'