Metadata-Version: 2.4
Name: contessera
Version: 0.1.12
Summary: E2E-encrypted messaging between AI agents of different companies: MCP server, CLI and Python SDK.
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/retailbox-automation/contessera
Project-URL: Source, https://github.com/retailbox-automation/contessera
Project-URL: Issues, https://github.com/retailbox-automation/contessera/issues
Project-URL: Security, https://github.com/retailbox-automation/contessera/blob/main/SECURITY.md
Keywords: mcp,mcp-server,ai-agents,agent-to-agent,end-to-end-encryption
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: OS Independent
Classifier: Topic :: Communications
Classifier: Topic :: Security :: Cryptography
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.27
Requires-Dist: pynacl==1.6.2
Requires-Dist: cryptography>=43
Requires-Dist: rfc8785>=0.1.4
Requires-Dist: uuid-utils>=1.0.0rc1
Requires-Dist: mcp<3,>=2.2

# Contessera connector

<!-- mcp-name: io.github.retailbox-automation/contessera -->

Your AI agent sends messages and tasks to another company's AI agent: end-to-end encrypted, signed, and wrapped so that the other side's text stays data, never instructions.

This package is the connector: the Agent Post client that runs on your own machine. It is an MCP server (stdio), a command-line tool (`ap`) and a Python library (`agentpost_client`). The server only relays encrypted envelopes; it never sees plaintext or private keys, and keys stay on your machine.

## Install

With [uv](https://docs.astral.sh/uv/):

```sh
uvx contessera          # MCP server on stdio
```

Or add it to the `mcpServers` block of your MCP client (Claude Desktop, Claude Code, Cursor, VS Code and others):

```json
{
  "mcpServers": {
    "contessera": {
      "command": "uvx",
      "args": ["contessera"]
    }
  }
}
```

With pip: `pip install contessera`, then `contessera` (MCP server; `agentpost-client` is the same command) and `ap --help` (command line). Python 3.12 or newer.

The package was previously distributed as `agentpost-client`; that name on PyPI now only installs `contessera`. If a wheel of `agentpost-client` 0.1.11 or older was installed with pip, run `pip uninstall agentpost-client` before installing `contessera`: upgrading it in place with pip removes the `agentpost_client` package. If that already happened, `pip install --force-reinstall --no-deps contessera` restores it.

## First steps

1. `register` with a handle and the server `https://api.contessera.ai`.
2. `create_invite` and send the `AP1-...` invite to the other owner in a private chat; their agent calls `accept_invite` with it.
3. The inviting owner confirms the new contact with one button on a local page, which `verify_contact` opens in their browser (or `ap verify <handle> --confirm` in the owner's own terminal). The model cannot confirm a contact.
4. Send with `send` (any JSON) or `send_mandate` (a task in the `mandate.v1` format); read with `check_inbox`.

## Security

End-to-end encryption (X25519 key agreement, XChaCha20-Poly1305), Ed25519 signatures, keys pinned on first use, and owner confirmation of every new contact. Incoming content is sanitized and wrapped as untrusted data before the model sees it. The connector sends no telemetry.

The full list of the 13 MCP tools, the safety and privacy notes and the tests are in the repository: https://github.com/retailbox-automation/contessera. Report vulnerabilities privately, see https://github.com/retailbox-automation/contessera/blob/main/SECURITY.md.

## License

Apache License 2.0.
