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 generationcom.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:
generate_session_token— Called at session start withmaster_keyandaccess_token. Returns an opaque session token.encrypt_payload/encrypt_file— Called before each API request to encrypt data with AES-256-GCM.- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f85f378e3f4f199050613f45684daf0a80dcae66d3e5e249f3134f86dfbeb2b2
|
|
| MD5 |
8b3cb45ec6f75d4d9d7fe568e58e9b14
|
|
| BLAKE2b-256 |
0592b2d6b16803cf69c0a8bf4eea44a71b2b3dca8da1709aa0056334830503a4
|
Provenance
The following attestation bundles were made for olane_copass_local-0.3.1.tar.gz:
Publisher:
publish.yml on olane-labs/cosync-local
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
olane_copass_local-0.3.1.tar.gz -
Subject digest:
f85f378e3f4f199050613f45684daf0a80dcae66d3e5e249f3134f86dfbeb2b2 - Sigstore transparency entry: 1038468500
- Sigstore integration time:
-
Permalink:
olane-labs/cosync-local@f973cbd0cf6a6a6db19e7e7eadedbc7669bd4f06 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/olane-labs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f973cbd0cf6a6a6db19e7e7eadedbc7669bd4f06 -
Trigger Event:
push
-
Statement type:
File details
Details for the file olane_copass_local-0.3.1-py3-none-any.whl.
File metadata
- Download URL: olane_copass_local-0.3.1-py3-none-any.whl
- Upload date:
- Size: 30.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbe2409aa2786bfc9cc76a38b9ff338cb13360a6b3972d4c7aa2e3c4bdc258e3
|
|
| MD5 |
5b86952df64aa57277f557911e4808e7
|
|
| BLAKE2b-256 |
b03bbc68a35015ed8d13bc5c934629391301f3e0fe27b13fa044a2ff7f11466e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
olane_copass_local-0.3.1-py3-none-any.whl -
Subject digest:
cbe2409aa2786bfc9cc76a38b9ff338cb13360a6b3972d4c7aa2e3c4bdc258e3 - Sigstore transparency entry: 1038468572
- Sigstore integration time:
-
Permalink:
olane-labs/cosync-local@f973cbd0cf6a6a6db19e7e7eadedbc7669bd4f06 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/olane-labs
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f973cbd0cf6a6a6db19e7e7eadedbc7669bd4f06 -
Trigger Event:
push
-
Statement type: