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.

module documentation

Provide mcp operations through DispatchResult, McpDispatcher.

Class DispatchResult Encoded JSON or a lazy stream of encoded notifications and final result.
Class McpDispatcher Perform no connection negotiation and retain no request or identity.
Async Function _close Await a source's asynchronous close hook when one is available.
Constant _CURSOR_FIELDS Cursor fields value used by dispatcher.
Constant _DISCOVER_METHOD server/discover.
Constant _INTERNAL_ERROR Internal error.
Constant _INTERNAL_ERROR_CODE JSON-RPC code identifying an unexpected application failure.
Constant _MAX_COMPLETIONS Max completions value used by dispatcher.
Constant _PROMPT_METHOD prompts/get.
Constant _RESULT_TYPES Result types definitions used by dispatcher.
Constant _TOOL_METHOD tools/call.
Constant _UNAVAILABLE_STATUS Expected admission rejection when bounded server capacity is unavailable.
Type Alias TransportName Type alias for Literal['http', 'stdio', 'test'].
async def _close(source: object): (source)

Await a source's asynchronous close hook when one is available.

Parameters
source:objectObject optionally exposing an awaitable aclose method.
Returns
NoneFinish the close hook, or do nothing when aclose is absent.
Raises
BaseExceptionIf the asynchronous close hook fails or is cancelled.
_CURSOR_FIELDS: int = (source)

Cursor fields value used by dispatcher.

Value
2
_DISCOVER_METHOD: str = (source)

server/discover.

Value
'server/discover'
_INTERNAL_ERROR: str = (source)

Internal error.

Value
'Internal error'
_INTERNAL_ERROR_CODE: int = (source)

JSON-RPC code identifying an unexpected application failure.

Value
-32603
_MAX_COMPLETIONS: int = (source)

Max completions value used by dispatcher.

Value
100
_PROMPT_METHOD: str = (source)

prompts/get.

Value
'prompts/get'
_RESULT_TYPES = (source)

Result types definitions used by dispatcher.

Value
{_TOOL_METHOD: CallToolResult,
 'resources/read': ReadResourceResult,
 _PROMPT_METHOD: GetPromptResult}
_TOOL_METHOD: str = (source)

tools/call.

Value
'tools/call'
_UNAVAILABLE_STATUS: int = (source)

Expected admission rejection when bounded server capacity is unavailable.

Value
503

Type alias for Literal['http', 'stdio', 'test'].

Value
Literal['http', 'stdio', 'test']