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.
module documentation
Provide mcp transport operations.
Includes McpProtocolResponse, origin_allowed, McpHttpPolicy.
| Class | |
Enforce MCP origin and error rules around the existing HTTP pipeline. |
| Class | |
Mark encoded protocol output to keep adaptation constant-time. |
| Function | _error |
Use public status names rather than exception messages or middleware bodies. |
| Function | origin |
Accept absent origins and one explicitly configured serialized origin. |
| Constant | _AUTHENTICATION |
Authentication headers used by policy. |
| Constant | _CLIENT |
Client error start value used by policy. |
| Constant | _EXCEPTION |
Exception status definitions used by policy. |
| Constant | _JSON |
application/json. |
| Constant | _REDIRECTION |
Redirection start value used by policy. |
| Constant | _REPLACED |
Replaced headers used by policy. |
| Constant | _SERVER |
Server error start value used by policy. |
Use public status names rather than exception messages or middleware bodies.
| Parameters | |
status:int | Value supplied for status. |
| Returns | |
orionis.mcp.transport.policy.McpProtocolResponse | Result of the operation described above. |
Accept absent origins and one explicitly configured serialized origin.
| Parameters | |
headers:orionis.http.payload.estructures.headers.Headers | Value supplied for headers. |
origins:frozenset[str] | Value supplied for origins. |
| Returns | |
bool | Result of the operation described above. |
Exception status definitions used by policy.
| Value |
|
Replaced headers used by policy.
| Value |
|