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 protocol operations.
Includes validate_meta_key, validate_metadata, validate_client_capabilities, validate_implementation.
| Function | _baggage |
Check W3C baggage grammar without interpreting application values. |
| Function | _capability |
Validate the nested settings of a known client capability. |
| Function | _trace |
Accept W3C version zero and forward-compatible future versions. |
| Function | _trace |
Check ordered tracestate members, including unique vendor keys. |
| Function | validate |
Validate known capabilities without closing the protocol's open set. |
| Function | validate |
Check the standard client/server implementation record. |
| Function | validate |
Check the specification's prefix and name grammar. |
| Function | validate |
Preserve unknown metadata while validating its names and trace formats. |
| Constant | _LABEL |
[A-Za-z](?:[A-Za-z0-9-]*[A-Za-z0-9])?. |
| Constant | _MAX |
Max trace members value used by metavalidation. |
| Constant | _MAX |
Max trace value value used by metavalidation. |
| Constant | _META |
Compiled pattern used to recognize meta key. |
| Constant | _NAME |
(?:[A-Za-z0-9](?:[A-Za-z0-9_.-]*[A-Za-z0-9])?)?. |
| Constant | _STATE |
Compiled pattern used to recognize state key. |
| Constant | _TOKEN |
Compiled pattern used to recognize token. |
| Constant | _TRACE |
Compiled pattern used to recognize trace parent. |
def _capability_settings(key:
str, value: Mapping[ str, object], children: tuple[ str, ...]):
(source)
¶
Validate the nested settings of a known client capability.
| Parameters | |
key:str | Capability name. |
value:collections.abc.Mapping[str, object] | Settings advertised by the client. |
children:tuple[str, ...] | Known child settings for closed capability names. |
| Returns | |
None | Nested settings and extension names have been checked. |
| Raises | |
ValueError | If a setting is not a mapping or an extension name is invalid. |
Validate known capabilities without closing the protocol's open set.
| Parameters | |
capabilities:collections.abc.Mapping[str, object] | Value supplied for capabilities. |
| Returns | |
None | Complete the documented operation without returning a value. |
Compiled pattern used to recognize meta key.
| Value |
|
(?:[A-Za-z0-9](?:[A-Za-z0-9_.-]*[A-Za-z0-9])?)?.
| Value |
|
Compiled pattern used to recognize state key.
| Value |
|
Compiled pattern used to recognize trace parent.
| Value |
|