Skip to main content

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

Release files for olane-copass-local 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for olane-copass-local 0.3.2
File Size Uploaded
olane_copass_local-0.3.2.tar.gz 27.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for olane-copass-local 0.3.2
File Interpreter ABI Platform
olane_copass_local-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 57.8 kB

Release files / olane_copass_local-0.3.2.tar.gz

Download URL olane_copass_local-0.3.2.tar.gz
Size 27.0 kB
Tags Source
SHA-256 checksum
How to use checksums
636928db14340311d1ccf01279e8d429d46b21f15baa4459fd2ff09dfeb997d0
BLAKE2b-256 checksum
How to use checksums
934766ca3be448b801b82aac8a0757758238253c2d7473cb28c0c075b3421fdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 5, 2026.

Transparency log

Release files / olane_copass_local-0.3.2-py3-none-any.whl

Download URL olane_copass_local-0.3.2-py3-none-any.whl
Size 30.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5dccbe3e5fe84711d00f6b7812f194aecbd9d6bea01209d4c0b799d61dad899b
BLAKE2b-256 checksum
How to use checksums
4b5048a5e111d3e76e8e0907871cd55edbc3f1c4ee29584b4791d7e9ac5981d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

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