Skip to main content

severino-vault-engine

PyPI Python License: MIT

A domain-agnostic vault-governance engine — the reusable core behind severino-vault-mcp and severino-edu-mcp. It governs a Git-backed, frontmatter-tagged Markdown vault (Obsidian-style) and exposes that governance both as a library and as a composable MCP tool surface.

Building your own MCP on this engine? Read AGENTS.md — a drop-in recipe an AI coding agent can follow to stand up a conformant server in minutes.

What's in it

  • SchemaProfile — a vault's frontmatter contract (doc-types, statuses, id-prefixes, task lifecycle, and composable per-document field rules), with a versioned complete contract and deterministic fingerprint. One engine, many profiles: a different vault is a different profile, not a fork.
  • Index + search — a lenient frontmatter index and ranked, section-scoped retrieval (find_sections) that returns menus, never raw bodies.
  • Task ledger — doc_type: task docs derived from the index, with a validated write path.
  • Atomic writes — a single serializer and atomic_create_text / atomic_write_text / transactional_replace, so every writer shares one escaping + durability rule and concurrent creates never replace each other.
  • Governance contracts — deterministic fingerprints, stale-safe reviewable plans, and body-free mutation receipts shared by CLI, MCP, audit, and projection consumers.
  • register_core(mcp, ctx) — composes the generic MCP tools (search, doc read with a sensitivity gate, project inventory, daily progress, the task ledger, schema-validated frontmatter writes) onto any FastMCP server.

Install

pip install severino-vault-engine        # or:  uv add severino-vault-engine

The import package is vault_engine; the distribution on PyPI is severino-vault-engine.

Use

from vault_engine.config import Config
from vault_engine.context import GovernanceContext
from vault_engine.core_tools import register_core
from mcp.server.fastmcp import FastMCP

ctx = GovernanceContext(Config.from_env())      # your vault + profile
mcp = FastMCP("my-vault-mcp")
register_core(mcp, ctx)                          # + your own tool groups

The servers in the family own only their domain (writeup tools, course tools) and a thin entrypoint; everything generic lives here.

One governance runtime, many adapters

MCP is the governed AI surface, not an implementation dependency for the CLI. Both adapters compose the same in-process runtime:

CLI ─┐
     ├─> GovernanceContext ─> application services ─> governed stores
MCP ─┘

Configuration is injectable for deterministic multi-vault composition:

ctx = GovernanceContext.load(
    "~/.config/my-vault/config.toml",
    env={"SVMC_CACHE_SECONDS": "10"},
    profile=MY_PROFILE,
)

ServerContext remains a backward-compatible subclass. See docs/governance-runtime.md for the extension model and contracts.

Security

Releases are published to PyPI from GitHub Actions via OIDC Trusted Publishing (no long-lived API tokens) with PEP 740 attestations. To report a vulnerability, see SECURITY.md.

License

MIT © Joe Severino

Metadata

Release files for severino-vault-engine 1.0.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 severino-vault-engine 1.0.0
File Size Uploaded Provenance Actions
severino_vault_engine-1.0.0.tar.gz 79.4 kB With provenance Details for severino_vault_engine-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for severino-vault-engine 1.0.0
File Interpreter ABI Platform Actions
severino_vault_engine-1.0.0-py3-none-any.whl Python 3 none any Details for severino_vault_engine-1.0.0-py3-none-any.whl

Total release size: 150.8 kB

Release files / severino_vault_engine-1.0.0.tar.gz

Download URL severino_vault_engine-1.0.0.tar.gz
Size 79.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1c9483222b77f46b2336e5be2f5cfa24473f6260d26d746c73ab2e194959500c
BLAKE2b-256 checksum
How to use checksums
e1369e61782a6d1c9e7a96d4b8a69c73bc866e618cf7533e2349997692d50ea6
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 Oct 3, 2026.

Transparency log

Release files / severino_vault_engine-1.0.0-py3-none-any.whl

Download URL severino_vault_engine-1.0.0-py3-none-any.whl
Size 71.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43e7f89d8979721b0bdcd01536d2221b32a148bce1ac29cf15672b6d12764b9f
BLAKE2b-256 checksum
How to use checksums
ef3fca1dec7422fe1aa4fd37bc3552b1182af308d6273244abe85ae25377b8f7
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 Oct 3, 2026.

Transparency log

Security for severino-vault-engine 1.0.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for severino_vault_engine-1.0.0.tar.gz

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 Oct 3, 2026.

Transparency log

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.

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