Skip to main content

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 the next_offset each result gives.
  • deal: a deck (a list, or the integers low to high) shuffled by a seed and dealt without repeats, continued the same way.

Documentation

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)

Source distribution for divinatory 0.1.0
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)

Table of built distributions (wheels) for divinatory 0.1.0
File Interpreter ABI Platform Actions
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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page