Metadata-Version: 2.5
Name: data-vault-mcp
Version: 0.4.0
Summary: Local MCP tools for Confidential Agentic Data Vault
Project-URL: Repository, https://github.com/aptos-labs/agentic-data-vault
Project-URL: Homepage, https://private-vault-web-6vgsvc5oma-uc.a.run.app/
Requires-Python: <3.14,>=3.12
Requires-Dist: anyio<5,>=4.5
Requires-Dist: aptos-sdk<0.13,>=0.12.2
Requires-Dist: cryptography<51,>=50.0.1
Requires-Dist: httpx<1,>=0.28
Requires-Dist: mcp==2.2.0
Description-Content-Type: text/markdown

# Confidential Agentic Data Vault MCP

Local MCP tools for private vault records, search and file attachments. This
package runs a stdio MCP server. Configure it using your harness's own MCP
commands or settings; it does not install or configure harnesses.

[Website and API keys](https://private-vault-web-6vgsvc5oma-uc.a.run.app/) ·
[Setup guide](https://private-vault-web-6vgsvc5oma-uc.a.run.app/?setup=mcp) ·
[Source](https://github.com/aptos-labs/agentic-data-vault/tree/private-vault)

## Requirements

On macOS/Linux, install [uv](https://docs.astral.sh/uv/getting-started/installation/)
and your harness. `uvx --python 3.12` automatically prepares Python 3.12.
You do not need Node.js, a repository checkout, or separate node/gas credentials.
Internet access is needed for package resolution and the vault service.

## Copy your API key

Sign in with Google on the website. Open **Account & API keys**, choose
**Generate + authorize API key**, then **Copy key**.

In your harness's MCP settings below, replace `PASTE_API_KEY_HERE` with the
copied key in **PV_API_KEY**. You do not need to download or create a key file.
The local MCP uses the private key to sign requests; the worker verifies the
signature and permissions. The private key itself is not sent to the service.
Keep the configuration containing your key private and out of version control.

## Configure your harness

Use your harness's native settings. Merge the `data-vault` entry into existing
settings, preserving other servers. If that entry already exists, update it.

**Atlas** — edit the `.mcp.json` in the directory where you start Atlas:

```json
{
  "mcpServers": {
    "data-vault": {
      "command": "uvx",
      "args": ["--python", "3.12", "data-vault-mcp@latest"],
      "env": {"PV_API_KEY": "PASTE_API_KEY_HERE"},
      "timeout": 180000
    }
  }
}
```

`atlas` and `uv run atlas` use the same configuration format. For a deliberately
user-wide setup, use the `mcpServers` entry in `~/.claude.json` instead. Keep any
custom configuration environment you normally use. The timeout is in milliseconds.

**Codex** — edit your active `config.toml`, normally `~/.codex/config.toml`
(or `$CODEX_HOME/config.toml` if you override `CODEX_HOME`):

```toml
[mcp_servers.data-vault]
command = "uvx"
args = ["--python", "3.12", "data-vault-mcp@latest"]
startup_timeout_sec = 120
tool_timeout_sec = 180

[mcp_servers.data-vault.env]
PV_API_KEY = "PASTE_API_KEY_HERE"
```

**Claude Code** — edit your project's `.mcp.json`:

```json
{
  "mcpServers": {
    "data-vault": {
      "command": "uvx",
      "args": ["--python", "3.12", "data-vault-mcp@latest"],
      "env": {"PV_API_KEY": "PASTE_API_KEY_HERE"}
    }
  }
}
```

Claude Code will ask you to approve the project MCP configuration. If you
explicitly use another scope, edit that active configuration instead.
Other MCP clients can use the same JSON shape. For a configuration form, set
command `uvx`, the arguments shown above, and an environment variable
`PV_API_KEY` with your copied key.

If your harness cannot find `uvx`, replace `command` with the absolute path
printed by `command -v uvx` in your terminal. Restart/reload the harness after
saving. Ask your agent to list your vaults and call `get_mcp_version` to verify
its package version, deployment and log path.

See the [Codex MCP documentation](https://developers.openai.com/codex/mcp/)
and [Claude Code MCP documentation](https://code.claude.com/docs/en/mcp)
for their native configuration controls.

## Optional warm-up

Run once to pre-download Python 3.12 (if needed), the MCP package and its
dependencies. `--help` prints the available options and exits; it does not start
the MCP server and needs no API key:

```sh
uvx --python 3.12 data-vault-mcp@latest --help
```

This can avoid a connection timeout during the first launch. You may skip it;
your harness's first launch will download the same environment.

## Optional key files

If you prefer a file, **Download key** is still available. Keep it private
(`chmod 600 /absolute/path/to/key`) and add `--api-key-file /absolute/path/to/key`
to the server's arguments. An explicit file argument overrides `PV_API_KEY`.
Without either, the server uses `PV_API_KEY_FILE` or the existing default
`~/.config/confidential-vault-6038be20/api-key`. File-based setups keep working.
An invalid or empty `PV_API_KEY` is rejected, without silently selecting a file.
Ed25519 seed strings and Ed25519 private JWK strings are accepted.

Attachment tools use paths supplied by your harness, subject to operating-system
file permissions. No directory allowlist or working-directory restriction is
applied. The configured credential file, when used, cannot be attached or overwritten.

## Updates and removal

`@latest` resolves the latest stable PyPI release at each new MCP process start;
an already-running server keeps its current version. When upgrading from 0.1/0.2,
remove any `--allow-dir` arguments and their following directory values from
the harness registration; that option and its directory restriction are removed.

Remove the registration using your harness:

```sh
atlas mcp remove data-vault
codex mcp remove data-vault
claude mcp remove data-vault
```

For other clients, remove their `data-vault` settings entry. Removing a
registration keeps your credential files, downloads and vault data.
If you explicitly registered a user-scoped server, use the matching
`--scope user` when removing it.

## Tools and privacy

The tools support vault discovery, session intent consent, append/read/search,
attachments, permissions and forget. At session start the agent asks which
vaults may receive automatic records. Intent changes require renewed consent.
Use your harness's tool-confirmation controls when you need independent write
approval. Local files are uploaded only through explicit file operations.

Logs omit credentials and content. On macOS they are under
`~/Library/Logs/confidential-vault-6038be20/`; on Linux under
`$XDG_STATE_HOME/confidential-vault-6038be20/` (default `~/.local/state/`).

The current prototype's on-chain worker attestation verification is mocked;
use synthetic data.
