Start with CLI workflows. MCP continuity_help exposes parameters and continuity_plan manages collaboration metadata without a prior State Session. continuity-mcp and continuity-search-mcp are independent stdio entrypoints; see deployment for local/remote setup.
The command line interface provides local initialization, integrity checks, and authorized state reads:
continuity init --root . --project-id my-project
continuity verify --root .
continuity doctor --root .
continuity state show --root .Lower-level modules expose versioned contracts for integrations.
from continuity_plane.sqlite_state_store import SQLiteStateStore
from continuity_plane.source_registry import SourceRegistry
registry = SourceRegistry("project-a")
store = SQLiteStateStore(".continuity/state.sqlite3")
snapshot = store.read_project("my-project")State integrations should use the service boundary rather than mutating snapshots directly. Supply a trusted request context, expected revision, and stable request ID for every authority-bearing operation.
The optional PostgreSQL adapter is available through the postgres extra:
from continuity_plane.postgres_state_store import PostgresStateStore
store = PostgresStateStore("postgresql://localhost/context")
store.initialize()The package is alpha. Import paths outside the documented API may change before the first stable release; wire schemas retain explicit versions and migration requirements.