Skip to main content

opencontextengine-client

Standalone synchronous Python client for OpenContextEngine workspace and blob management. The package owns local inventory, ignore rules, upload planning, checkpoint state, and retrieval adapters. It does not depend on Auggie SDK.

Install the distribution package with uv add opencontextengine-client (or pip install opencontextengine-client). The installed command remains oce-client.

Version Information

Run oce-client --version to print the installed client version.

Item Value
PyPI distribution opencontextengine-client
Python package oce_client
CLI oce-client
MCP server oce-client-mcp (separate interface)
Version command oce-client --version

The authoritative version is declared in pyproject.toml and mirrored by oce_client.__version__.

Release Preparation

The first release uses the current version because the repository has no release tag yet:

uv run python scripts/release.py 0.1.0 --dry-run
uv run python scripts/release.py 0.1.0

For later releases, use major, minor, patch, or an exact higher version. The script updates version metadata, generates the changelog, builds the package, creates a release commit, and creates an annotated tag locally. It never pushes or publishes automatically; review the result before pushing the branch and tag.

CLI

Install the package with uv and configure the service endpoint and key through the environment:

# These are the built-in defaults; override them only when needed.
$env:OCE_API_URL = "http://127.0.0.1:8986"
$env:OCE_API_KEY = "sk-opencontextengine"
$env:OCE_WORKSPACE = (Get-Location).Path
uv run oce-client sync
uv run oce-client retrieve "where is request authentication implemented?"

If unset, OCE_API_URL defaults to http://127.0.0.1:8986 and OCE_API_KEY defaults to sk-opencontextengine. status is local-only and does not require an API key. observe and remove stage explicit editor changes in SQLite; run sync to publish them. Add --json to sync, status, retrieve, observe, or remove for machine-readable output. CLI options are placed before the subcommand, for example oce-client --root C:\src\project sync; --root falls back to OCE_WORKSPACE, and --api-url, --state-path, and repeated --ignore override OCE_API_URL, OCE_STATE_PATH, and OCE_IGNORE.

The two interfaces have different lifecycles:

Interface Workspace selection State selection Index lifecycle
CLI one --root or OCE_WORKSPACE --state-path or OCE_STATE_PATH explicit sync, optional watch
MCP repeated --workspace, OCE_WORKSPACE, or OCE_WORKSPACES one --state-path, or per-workspace --state-dir process-owned background and incremental sync

MCP

Install the optional MCP extra and expose the stdio server to an MCP host:

uv sync --extra mcp
uv run oce-client-mcp --workspace C:\path\to\workspace

The server exposes one tool, codebase-retrieval. Workspace indexing belongs to the MCP process rather than the coding agent: the server starts the initial index in the background, watches the filesystem, and synchronizes only changed paths. Unchanged files are identified by stored filesystem metadata and are not read or rehashed on restart.

Declare each allowed workspace with a repeated --workspace argument. With one workspace, the tool's workspace_folder input is optional. With multiple workspaces it is required and must exactly match an allowed path. Other paths are rejected. For an environment-only setup, use OCE_WORKSPACE for one path or OCE_WORKSPACES with paths separated by the platform path separator. MCP does not fall back to the process current directory.

oce-client-mcp `
  --workspace C:\src\project-a `
  --workspace C:\src\project-b `
  --state-dir $env:LOCALAPPDATA\oce-client `
  --initial-sync background `
  --debounce-ms 500 `
  --ready-timeout 3

--initial-sync accepts background (default), blocking, or off; off defers initialization until the first retrieval call. A tool call waits up to --ready-timeout seconds for the latest observed filesystem generation. Its result status is ready, indexing, or error; only a ready result contains retrieval context. OCE_API_URL, OCE_API_KEY, OCE_STATE_PATH, OCE_STATE_DIR, OCE_IGNORE, OCE_DEBOUNCE_MS, OCE_INITIAL_SYNC, OCE_READY_TIMEOUT, and OCE_LOG_LEVEL provide environment equivalents. --state-path and OCE_STATE_PATH are for one workspace; use --state-dir or OCE_STATE_DIR for multiple workspaces. Keep the API key in the environment rather than command arguments.

The service endpoint, API key, and ignore patterns are shared through the same environment variables. State selection follows the interface table above. A Codex-ready skill with the host configuration and command guidance is included at skills/oce-client/SKILL.md.

After installing a wheel, locate or install that skill with:

uv run oce-client skill path
uv run oce-client skill install

The default installation target is $CODEX_HOME/skills/oce-client or $HOME/.codex/skills/oce-client. Existing skill directories are preserved; pass --force only when intentionally updating one.

Keep OCE_API_KEY in the host's environment or secret manager; do not commit it to an MCP configuration file.

Metadata

Release files for opencontextengine-client 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 opencontextengine-client 0.1.0
File Size Uploaded Provenance Actions
opencontextengine_client-0.1.0.tar.gz 93.0 kB With provenance Details for opencontextengine_client-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opencontextengine-client 0.1.0
File Interpreter ABI Platform Actions
opencontextengine_client-0.1.0-py3-none-any.whl Python 3 none any Details for opencontextengine_client-0.1.0-py3-none-any.whl

Total release size: 129.3 kB

Release files / opencontextengine_client-0.1.0.tar.gz

Download URL opencontextengine_client-0.1.0.tar.gz
Size 93.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9f106dbce777a884ef5d1699ca64ff63c7319028a9ee45ebb6fa94c6d49f223b
BLAKE2b-256 checksum
How to use checksums
36886e24700eaff6de2beae542364d5fd5311d5186b7094906f57fbc3b7efc00
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 Aug 30, 2026.

Transparency log

Release files / opencontextengine_client-0.1.0-py3-none-any.whl

Download URL opencontextengine_client-0.1.0-py3-none-any.whl
Size 36.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
122a57778837af44af681a139b882d4fca675948c6d06939fa1a7dd5885fc5f9
BLAKE2b-256 checksum
How to use checksums
dd070ec07486e615ca95d4aaae8b58b7d4c6d7fbcb26d37d90202826a5f71c75
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 Aug 30, 2026.

Transparency log

Security for opencontextengine-client 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for opencontextengine_client-0.1.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 Aug 30, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full 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