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.1.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.1-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: olane_copass_local-0.3.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f85f378e3f4f199050613f45684daf0a80dcae66d3e5e249f3134f86dfbeb2b2
MD5 8b3cb45ec6f75d4d9d7fe568e58e9b14
BLAKE2b-256 0592b2d6b16803cf69c0a8bf4eea44a71b2b3dca8da1709aa0056334830503a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for olane_copass_local-0.3.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for olane_copass_local-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cbe2409aa2786bfc9cc76a38b9ff338cb13360a6b3972d4c7aa2e3c4bdc258e3
MD5 5b86952df64aa57277f557911e4808e7
BLAKE2b-256 b03bbc68a35015ed8d13bc5c934629391301f3e0fe27b13fa044a2ff7f11466e

See more details on using hashes here.

Provenance

The following attestation bundles were made for olane_copass_local-0.3.1-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