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 McpStdioTransport: (source)
Constructor: McpStdioTransport(app, compiled, config, bus)
Keep the reader available while bounded request tasks execute independently.
| Method | __init__ |
Prepare request-local task ownership without touching process streams. |
| Async Method | _accept |
Stop queued output without joining a potentially blocked OS writer. |
| Method | _cancel |
Ignore malformed, unknown and already completed cancellation messages. |
| Method | _done |
Remove completed task ownership and notify the reader of I/O failures. |
| Async Method | _invoke |
Execute one call in its own DI scope, sanitizing only application errors. |
| Async Method | _read |
Race each cancellable read against a failed request's transport I/O. |
| Async Method | _stream |
Preserve backpressure and close an owned producer on all exits. |
| Async Method | _write |
Serialize frames and suppress output after EOF or owner shutdown. |
| Async Method | run |
Run until EOF, joining all owned request cleanup before returning. |
| Async Method | run |
Bind portable daemon-backed streams and keep application prints on stderr. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _active |
Undocumented |
| Instance Variable | _app |
Undocumented |
| Instance Variable | _closing |
Undocumented |
| Instance Variable | _config |
Undocumented |
| Instance Variable | _dispatcher |
Undocumented |
| Instance Variable | _failed |
Undocumented |
| Instance Variable | _failure |
Undocumented |
| Instance Variable | _lock |
Undocumented |
| Instance Variable | _running |
Undocumented |
IApplication, compiled: CompiledMcpServer, config: McpConfig, bus: IMcpEventBus):
(source)
¶
Prepare request-local task ownership without touching process streams.
| 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. |
Stop queued output without joining a potentially blocked OS writer.
| Parameters | |
data:bytes | Value supplied for data. |
writer:LineWriter | Output stream receiving complete messages with backpressure. |
| Returns | |
None | Complete the documented operation without returning a value. |
Ignore malformed, unknown and already completed cancellation messages.
| Parameters | |
request:JsonRpcRequest | Current request and its trusted execution context. |
| Returns | |
None | Complete the documented operation without returning a value. |
Remove completed task ownership and notify the reader of I/O failures.
| Parameters | |
requeststr | int | Value supplied for request_id. |
task:asyncio.Task[None] | Value supplied for task. |
| Returns | |
None | Complete the documented operation without returning a value. |
Execute one call in its own DI scope, sanitizing only application errors.
| Parameters | |
request:JsonRpcRequest | Current request and its trusted execution context. |
writer:LineWriter | Output stream receiving complete messages with backpressure. |
| Returns | |
None | Complete the documented operation without returning a value. |
Race each cancellable read against a failed request's transport I/O.
| Parameters | |
reader:LineReader | Input stream supplying bounded messages. |
writer:LineWriter | Output stream receiving complete messages with backpressure. |
| Returns | |
None | Complete the documented operation without returning a value. |
Preserve backpressure and close an owned producer on all exits.
| Parameters | |
writer:LineWriter | Output stream receiving complete messages with backpressure. |
source:AsyncIterator[bytes] | Source whose values or lifecycle are consumed by this operation. |
| Returns | |
None | Complete the documented operation without returning a value. |
Serialize frames and suppress output after EOF or owner shutdown.
| Parameters | |
writer:LineWriter | Output stream receiving complete messages with backpressure. |
data:bytes | Value supplied for data. |
| Returns | |
None | Complete the documented operation without returning a value. |
Run until EOF, joining all owned request cleanup before returning.
| Parameters | |
reader:LineReader | Input stream supplying bounded messages. |
writer:LineWriter | Output stream receiving complete messages with backpressure. |
| Returns | |
None | Complete the documented operation without returning a value. |
Bind portable daemon-backed streams and keep application prints on stderr.
| Returns | |
None | Complete the documented operation without returning a value. |