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

Uploaded Python 3

File details

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

File metadata

  • Download URL: olane_copass_local-0.3.2.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.2.tar.gz
Algorithm Hash digest
SHA256 636928db14340311d1ccf01279e8d429d46b21f15baa4459fd2ff09dfeb997d0
MD5 1e8cd7bdc7ef258834e2212067b72e53
BLAKE2b-256 934766ca3be448b801b82aac8a0757758238253c2d7473cb28c0c075b3421fdd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for olane_copass_local-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5dccbe3e5fe84711d00f6b7812f194aecbd9d6bea01209d4c0b799d61dad899b
MD5 2e9562fb732c7937fa6601106a181fad
BLAKE2b-256 4b5048a5e111d3e76e8e0907871cd55edbc3f1c4ee29584b4791d7e9ac5981d8

See more details on using hashes here.

Provenance

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