ORIONIS API REFERENCE

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

Enforce MCP origin and error rules around the existing HTTP pipeline.

Method __init__ Compile an origin set without capturing any request or identity.
Method before Validate Origin for preflight and unsupported methods as well as POST.
Async Method exception Report failures without calling the native HTML/debug presenter.
Async Method response Preserve protocol output and replace browser bodies with safe errors.
Class Variable __slots__ Undocumented
Class Variable monitor_disconnects Undocumented
Instance Variable _app Undocumented
Instance Variable _origins Undocumented
def __init__(self, app: IApplication, config: McpConfig): (source)

Compile an origin set without capturing any request or identity.

Parameters
app:IApplicationApplication container supplying configuration and dependencies.
config:McpConfigValidated configuration controlling this component.
Returns
NoneComplete the documented operation without returning a value.
def before(self, adapter: TransportAdapter) -> Response | None: (source)

Validate Origin for preflight and unsupported methods as well as POST.

Parameters
adapter:TransportAdapterValue supplied for adapter.
Returns
Response | NoneResult of the operation described above.
async def exception(self, exception: Exception, request: Request | TransportAdapter) -> Response: (source)

Report failures without calling the native HTML/debug presenter.

Parameters
exception:ExceptionException being inspected or reported.
request:Request | TransportAdapterCurrent request and its trusted execution context.
Returns
ResponseResult of the operation described above.
async def response(self, response: Response) -> Response: (source)

Preserve protocol output and replace browser bodies with safe errors.

Parameters
response:ResponseValue supplied for response.
Returns
ResponseResult of the operation described above.

Undocumented

_origins = (source)

Undocumented