divinatory
An MCP server providing AI agents with an entropy source modelled on traditional divination.
Getting started
Set up a 3.12 or later Python environment, then:
pip install divinatory
Then, from the root of a project:
divinatory init
That registers the server with Claude Code and GitHub Copilot CLI
(.mcp.json), Codex (.codex/config.toml) and Cursor (.cursor/mcp.json),
using an absolute path into the environment it was installed in. Only the
server's own entry is written. Re-run it after moving or rebuilding the
environment; --dry-run shows what would change. divinatory uninit
takes the entries out again.
Tools
secure_seed: a fresh 128-bit seed, as hex.secure_random: one-off integers, floats, choices from a list, or a deal without repeats, from the operating system's secure source.random: integers, floats or choices from a seed and offset, with replacement. Repeatable, and continued across calls from thenext_offseteach result gives.deal: a deck (a list, or the integerslowtohigh) shuffled by a seed and dealt without repeats, continued the same way.
Documentation
- The MCP tools: every tool's parameters, defaults and results, and the instructions the server gives a client.
- The command line:
divinatory initanduninit. - The API reference: the Python package, module by module.
All three are generated from the source and committed. After changing a docstring, a tool or the command line, regenerate them; the tests fail until they match:
pip install -e ".[docs]"
make -C docs documents
Development
conda env create -f environment.yml
conda activate divinatory
pip install -e ".[dev]"
pytest
ruff check . && ruff format --check .
Metadata
Release files for divinatory 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| divinatory-0.1.0.tar.gz | 219.7 kB | Without provenance | Details for divinatory-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| divinatory-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for divinatory-0.1.0-py3-none-any.whl |
Total release size: 246.3 kB
Release files / divinatory-0.1.0.tar.gz
| Download URL | divinatory-0.1.0.tar.gz |
|---|---|
| Size | 219.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
755f64448300891371cf565aebdb8b99ec33f417d0333561f7575af5e1e11b07
|
|
BLAKE2b-256 checksum How to use checksums |
42b4355f488438523c2e4e1e208ebe0070c40e389f3f28355484507dcd05ba22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / divinatory-0.1.0-py3-none-any.whl
| Download URL | divinatory-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8306aa19f8482c591b644a3c3dcf0c37888e62367bcca8e90cbf70ca45931ea
|
|
BLAKE2b-256 checksum How to use checksums |
437bdff8a5f8034c73851721d3e9140a25cfdaf80b6a2481d13e3488d99c27cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Security for divinatory 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.