THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
class McpHttpTransport: (source)
Constructor: McpHttpTransport(app, compiled, config, bus)
Serve a registered endpoint without owning routes, sessions or identities.
| Method | __init__ |
Retain immutable server metadata and one shared protocol dispatcher. |
| Method | _error |
Encode a sanitized protocol error with its required HTTP status. |
| Method | _params |
Decode method parameters and validate compiled tool parameter headers. |
| Async Method | _read |
Bound the native body stream before allocating the complete message. |
| Method | _release |
Release a single request or response-stream admission slot. |
| Method | _validate |
Reject origins and unsupported media types before reading a body. |
| Async Method | handle |
Validate HTTP metadata, dispatch once, and return native response objects. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _active |
Undocumented |
| Instance Variable | _compiled |
Undocumented |
| Instance Variable | _config |
Undocumented |
| Instance Variable | _dispatcher |
Undocumented |
| Instance Variable | _origins |
Undocumented |
def __init__(self, app:
IApplication, compiled: CompiledMcpServer, config: McpConfig, bus: IMcpEventBus):
(source)
¶
Retain immutable server metadata and one shared protocol dispatcher.
| Parameters | |
app:IApplication | Application container supplying configuration and dependencies. |
compiled:CompiledMcpServer | Precompiled metadata shared by request executions. |
config:McpConfig | Validated configuration controlling this component. |
bus:IMcpEventBus | Value supplied for bus. |
| Returns | |
None | Complete the documented operation without returning a value. |
def _error(self, exception:
McpProtocolException, request_id: str | int | msgspec.UnsetType) -> Response:
(source)
¶
Encode a sanitized protocol error with its required HTTP status.
| Parameters | |
exception:McpProtocolException | Exception being inspected or reported. |
requeststr | int | msgspec.UnsetType | Value supplied for request_id. |
| Returns | |
Response | Result of the operation described above. |
Decode method parameters and validate compiled tool parameter headers.
| Parameters | |
request:Request | Current request and its trusted execution context. |
envelope:JsonRpcRequest | Value supplied for envelope. |
| Returns | |
RequestParams | Result of the operation described above. |
Release a single request or response-stream admission slot.
| Returns | |
None | Complete the documented operation without returning a value. |