Skip to main content

Copass Local — local encryption MCP plugin for session token generation and AES-256-GCM encryption

Project description

olane-copass-local

Copass Local — local encryption MCP plugin for Copass / Twin Brain. Runs on the user's machine via stdio transport — keys never leave the local environment.

Part of the Olane MCP suite (com.olane/*):

  • com.olane/copass-local (this package) — Local encryption and session token generation
  • com.olane/copass-remote — Knowledge graph ontology and context retrieval

Tools

Tool Description
generate_session_token Wrap DEK with access-token-derived key to produce an opaque session token
encrypt_payload AES-256-GCM encrypt a text payload
encrypt_file AES-256-GCM encrypt a file's contents
setup_project Write hooks, scripts, config, and merge settings for a project
update_auth_token Persist a fresh auth token to .olane/config.json
set_copass_encryption_key Write a user-provided master key (migration/team sharing)

Installation

From PyPI:

pip install olane-copass-local

From source:

pip install -e .

Configuration

Claude Desktop / Claude Code

Add to your MCP settings:

{
  "mcpServers": {
    "copass-local": {
      "command": "olane-copass-local",
      "transport": "stdio"
    }
  }
}

VS Code (Copilot MCP)

Add to .vscode/mcp.json:

{
  "servers": {
    "copass-local": {
      "command": "olane-copass-local",
      "transport": "stdio"
    }
  }
}

Usage

The Copass Ontology MCP (remote) orchestrates calls to this local plugin:

  1. generate_session_token — Called at session start with master_key and access_token. Returns an opaque session token.
  2. encrypt_payload / encrypt_file — Called before each API request to encrypt data with AES-256-GCM.
  3. The session token and encrypted payloads are forwarded to the Twin-Brain API.

Development

# Install in editable mode
pip install -e .

# Run tests
pytest tests/ -v

# Run the server directly (waits for JSON-RPC on stdin)
python -m olane_copass_local

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

olane_copass_local-0.3.0.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

olane_copass_local-0.3.0-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

Details for the file olane_copass_local-0.3.0.tar.gz.

File metadata

  • Download URL: olane_copass_local-0.3.0.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for olane_copass_local-0.3.0.tar.gz
Algorithm Hash digest
SHA256 caf94fc67ea17bb6852685b9e7c967f9a6d6cdea1ec93e524bcbc7fb741d23aa
MD5 d70dbda18a98654beac7decc0ce71ebd
BLAKE2b-256 29e875cbb8245ffa6fd66cab35dfcac7d0b333ac68cb49121a817387ca42396b

See more details on using hashes here.

Provenance

The following attestation bundles were made for olane_copass_local-0.3.0.tar.gz:

Publisher: publish.yml on olane-labs/cosync-local

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file olane_copass_local-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for olane_copass_local-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09695d1969c1417dae371e2714a6293c11b83278712e27fc53113071c453e6ae
MD5 fab8559a29d6fd121520761776a180db
BLAKE2b-256 165d118459d49724cf458ab7d058829176cd5f25126a0b3234b18f5243cfcd7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for olane_copass_local-0.3.0-py3-none-any.whl:

Publisher: publish.yml on olane-labs/cosync-local

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page