chio-sdk
Stable Python SDK for Chio hosted MCP sessions, receipt queries, and invariant verification.
Installation
pip install chio-sdk
The distribution name is chio-sdk. The import package is chio.
Quickstart
from chio import ChioClient, ReceiptQueryClient
client = ChioClient.with_static_bearer("http://127.0.0.1:8931", "demo-token")
session = client.initialize()
try:
tools = session.list_tools()
print(tools)
receipts = ReceiptQueryClient("http://127.0.0.1:8940", "demo-token").query(
{"toolServer": "wrapped-http-mock", "limit": 5}
)
print(receipts["totalCount"])
finally:
session.close()
API Reference
ChioClientinitializes authenticated Chio MCP HTTP sessions.ChioSessionexposes typed helpers for tools, resources, prompts, logging, tasks, and explicit JSON-RPC envelopes.ReceiptQueryClientwrapsGET /v1/receipts/querywith typed parameters and pagination helpers.chio.invariantsprovides canonical JSON, hashing, signing, capability, receipt, and manifest verification helpers.
The full public reference lives in docs/reference/SDK_PYTHON_REFERENCE.md.
Official Example
The package-local governed example expects a running Chio hosted edge and trust service:
CHIO_BASE_URL=http://127.0.0.1:8931 \
CHIO_CONTROL_URL=http://127.0.0.1:8940 \
CHIO_AUTH_TOKEN=demo-token \
python packages/sdk/chio-py/examples/governed_hello.py
For a repo-local end-to-end verification run that boots those services automatically, use:
./scripts/check-sdk-publication-examples.sh
Canonical Example Links
../../../docs/guides/WEB_BACKEND_QUICKSTART.md../../../examples/hello-openapi-sidecar/README.md../../../examples/hello-fastapi/README.md
Release Checks
./scripts/check-chio-py.sh
./scripts/check-chio-py-release.sh
Release process details live in RELEASING.md.
Release files for chio-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chio_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / chio_sdk-0.1.0-py3-none-any.whl
| Download URL | chio_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61bd6433156e71b06ce991264f7e33e52058cdae0426ac3764a58f73c869043c
|
|
BLAKE2b-256 checksum How to use checksums |
6c8e04359f94531ccc09aaf6566b1d205828137c8450703c812f5d27d8a0345e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|