llm-refract
Provider-neutral Python instrumentation for AI applications, plus an optional MCP interface to the
Refract execution engine. Export portable .rfr files or submit snapshots to the Refract REST service.
Install
pip install llm-refract
MCP support is an optional extra:
pip install "llm-refract[mcp]"
SDK usage
import refract
with refract.run("agent", path="run.rfr"):
refract.event(type="generation", name="answer", output={"text": "Hello"})
See the usage guide.
MCP server
Executable stdio interface to the Rust Refract API: ten read-only tools, plus import/fork tools when
REFRACT_MCP_ALLOW_WRITES=1. Requires the mcp extra above. Start with:
refract-mcp
See configuration, tool inventory and limits. Implementation: server.py.
Release files for llm-refract 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llm_refract-0.1.2.tar.gz | 11.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_refract-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.2 kB
Release files / llm_refract-0.1.2.tar.gz
| Download URL | llm_refract-0.1.2.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
546d89a8a2f593dc7e7ec1a4526816cbc1823e1744d043d2f79a4074e5546e30
|
|
BLAKE2b-256 checksum How to use checksums |
a023352c76e46ed1f031e80c1effd74e3814f292f0400f02e3d85bd13750283b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 19, 2026.
Transparency logRelease files / llm_refract-0.1.2-py3-none-any.whl
| Download URL | llm_refract-0.1.2-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
182bbeb8c25e00db368b2b27a492a79a72753c3617e58f2d013cf92e3b301b53
|
|
BLAKE2b-256 checksum How to use checksums |
d1ae5db61531ed41ca0e5d2bd765b23f707bad0f2196021bcc8e94004499378b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 19, 2026.
Transparency log