yuce
Verifiable audit server (yuce / yuce mcp) and thin Python client (import yuce) of YuCe.
Standard library only on the Python side, Python 3.10 or newer.
Prebuilt platform wheels bundle the native yuce executable for Windows x86_64, Linux x86_64 (glibc 2.35+), and macOS (arm64 and x86_64).
Install
pip install organetic-yuce
You import the client as yuce, and run the server as yuce (or organetic-yuce, which is an alias for uvx organetic-yuce).
Do not run pip install yuce: that name on PyPI belongs to an unrelated project.
Run the MCP server
yuce --version
yuce mcp --docs ./docs --ask "What is the refund policy?"
Or without installing globally via uvx:
uvx organetic-yuce mcp --docs ./docs --ask "What is the refund policy?"
Connecting from an MCP catalog or registry: configure --docs (the folder of documents to audit) and --ask (a question with at least one content word of 4+ letters; for very short or CJK questions, also pass --about term1,term2). Both --flag value and --flag=value forms are accepted. Starting yuce mcp without --docs and --ask exits with code 2 before the MCP handshake. When restarting against a folder that already contains <docs>/.yuce/run.wal, yuce mcp resumes that journal and keeps the original question recorded in it (ignoring any changed --ask with a resuming notice on stderr); delete or rename .yuce/run.wal, or pass a new --wal, to start a different question.
For multi-agent runs (yuce audit-serve), see the main README.
A reader
import yuce
with yuce.Client("127.0.0.1:8787", token="replace-with-a-secret-1") as agent:
task = agent.acquire(max_wait_ms=10_000)
if task["status"] == "DIRECTIVE":
p = task["local_id_prefix"]
reply = agent.submit(task["task_id"], [
yuce.observe(p + "o1", "the document id", "a quote, byte for byte", terms=["a term"]),
yuce.claim(p + "c1", "What the quote says.", "a subject", [p + "o1"]),
])
print(reply["status"])
task["prompt"] is the directive to give a model: it holds the section to read and the form of the lines to send back.
examples/reader.py is the whole loop with your model in one function.
The owner
with yuce.Client("127.0.0.1:8787", token="replace-with-a-secret-4") as owner:
print(owner.status())
owner.revoke(quote_id) # the source no longer holds
print(owner.record(claim_id)["grounded"]) # False: the claim rested on that quote
What comes back
A tool's answer is a dict, and a refusal of the kernel is an answer: submit gives REPAIR_REQUIRED with the reason, and you send only the
lines after the accepted ones. An exception means the call itself failed:
| Exception | Meaning |
|---|---|
yuce.RpcError |
the server refused the call: code is yuce.UNAUTHORIZED (the token), yuce.FORBIDDEN (the role's tools) or a JSON-RPC code |
TimeoutError |
no answer within timeout_s, 60 s by default. The call may still have reached the server |
yuce.ConnectionClosed |
the connection ended. Open a new Client |
Use one Client per agent and one thread at a time. Every tool has its method; agent.call("audit_status") calls one by name, and
agent.tools() lists what this agent's role may call. The role comes from the token, and the server decides it: agent.subject shows it.
The connection is plain TCP, as the server has no TLS: the token travels unencrypted, so keep the server on loopback or inside a network you trust.
Metadata
Release files for organetic-yuce 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| organetic_yuce-0.3.2-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for organetic_yuce-0.3.2-py3-none-win_amd64.whl |
| organetic_yuce-0.3.2-py3-none-manylinux_2_35_x86_64.whl | Python 3 | none | Linux glibc 2.35+ x86-64 | Details for organetic_yuce-0.3.2-py3-none-manylinux_2_35_x86_64.whl |
| organetic_yuce-0.3.2-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for organetic_yuce-0.3.2-py3-none-macosx_11_0_arm64.whl |
| organetic_yuce-0.3.2-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details for organetic_yuce-0.3.2-py3-none-macosx_10_12_x86_64.whl |
| organetic_yuce-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for organetic_yuce-0.3.2-py3-none-any.whl |
Total release size: 22.5 MB
Release files / organetic_yuce-0.3.2-py3-none-win_amd64.whl
| Download URL | organetic_yuce-0.3.2-py3-none-win_amd64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
24c375ecffba9fd435a6079de53ad0cf91577246ee626c0b799b9dfbfc704da7
|
|
BLAKE2b-256 checksum How to use checksums |
6c98e59a4947335a032f9005e314986fd35f1b8c98b13ac444cec961cdd10e2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logRelease files / organetic_yuce-0.3.2-py3-none-manylinux_2_35_x86_64.whl
| Download URL | organetic_yuce-0.3.2-py3-none-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 6.0 MB |
| Tags | Linux glibc 2.35+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
635dafb9e1884b55d8e3632362070625d7c9555a432075a00437720d9022d657
|
|
BLAKE2b-256 checksum How to use checksums |
d86ef1413819c7a155f607ad908f995c089e3fc3e1446fac6fec458f12a715b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logRelease files / organetic_yuce-0.3.2-py3-none-macosx_11_0_arm64.whl
| Download URL | organetic_yuce-0.3.2-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
cdea5c64fcd3f4f0260ddabfe3efb55813a7d617eb2f71bb72cdcce69e404fc6
|
|
BLAKE2b-256 checksum How to use checksums |
5971105106bbd756fd5a10ac7e8d266c8d028a2cb69ec2964214ea210d8ba97b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logRelease files / organetic_yuce-0.3.2-py3-none-macosx_10_12_x86_64.whl
| Download URL | organetic_yuce-0.3.2-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 5.8 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
6e01556bbf1e131e949c86351bd374583d78875615567f993402bb1d481f55c1
|
|
BLAKE2b-256 checksum How to use checksums |
fa71e5ffdaab5413d2a36d154ebad1f6cc913dfc18c79ac75304f51517a49b78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logRelease files / organetic_yuce-0.3.2-py3-none-any.whl
| Download URL | organetic_yuce-0.3.2-py3-none-any.whl |
|---|---|
| Size | 13.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2cdcbc7920b26a1286606f9e4bccbcd4319c20d9c0bc23393b5a2a72f97b4682
|
|
BLAKE2b-256 checksum How to use checksums |
cd2502ef3bac6b0fc81a45d8fa8bad3b0c1c931131fbba8b6d9aebc55cc01b82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logSecurity for organetic-yuce 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 5 files in this release have been uploaded with provenance metadata.
Attestation for organetic_yuce-0.3.2-py3-none-win_amd64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.