Metadata-Version: 2.5
Name: data-vault-mcp
Version: 0.2.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.

## Save an API key

Sign in with Google on the website. Open **Account & API keys**, choose
**Generate + authorize API key**, then **Download key**. Save it privately:

```sh
mkdir -p "$HOME/.config/confidential-vault-6038be20"
install -m 600 "$HOME/Downloads/private-vault-api.key" \
  "$HOME/.config/confidential-vault-6038be20/api-key"
```

This copies the downloaded key into the server's default credential location.
An existing key at that location is replaced. To keep several keys, keep their
files separate and pass `--api-key-file /absolute/path/to/key` to the server.
Both Ed25519 seed files and Ed25519 private JWK files are accepted. Never put
the key itself in a command, harness config, or chat.

## Register with your harness

Run one of these commands in a terminal. `command -v uvx` records the absolute
launcher path so GUI-launched harnesses do not depend on your shell's PATH.
Before the first connection, download the server and check its launch command:

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

**Atlas:**

```sh
atlas mcp add-json --scope user data-vault \
  "{\"command\":\"$(command -v uvx)\",\"args\":[\"--python\",\"3.12\",\"data-vault-mcp@latest\",\"--allow-dir\",\"~\"],\"timeout\":180000}"
```

If you start Atlas with `uv run atlas`, run the same command from your Atlas
clone with `uv run atlas` in place of the initial `atlas`.
The JSON sets a 180-second request timeout for uploads and indexing operations.

**Codex:**

```sh
codex mcp add data-vault -- "$(command -v uvx)" \
  --python 3.12 data-vault-mcp@latest --allow-dir "$HOME"
```

**Claude Code:**

```sh
claude mcp add --scope user --transport stdio data-vault -- "$(command -v uvx)" \
  --python 3.12 data-vault-mcp@latest --allow-dir "$HOME"
```

Restart/reload the harness. Ask your agent to list your vaults and call
`get_mcp_version` to see the running package version, deployment and log path.
If a harness reports that `data-vault` already exists, remove that registration
with its native command below, then add it again.

If the Codex CLI is unavailable, add this to `~/.codex/config.toml` instead.
Replace the command with the output of `command -v uvx`:

```toml
[mcp_servers.data-vault]
command = "/absolute/path/to/uvx"
args = ["--python", "3.12", "data-vault-mcp@latest", "--allow-dir", "~"]
startup_timeout_sec = 120
tool_timeout_sec = 180
```

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.

## Configure another MCP client

Use this standard `mcpServers` entry. Replace `/absolute/path/to/uvx` with the
output of `command -v uvx`. Clients with a different configuration format need
the same command and arguments in their stdio-server settings.

```json
{
  "mcpServers": {
    "data-vault": {
      "command": "/absolute/path/to/uvx",
      "args": [
        "--python", "3.12", "data-vault-mcp@latest",
        "--allow-dir", "~"
      ]
    }
  }
}
```

The server expands `~` in its own `--api-key-file` and `--allow-dir` arguments.
The commands above allow attachment access under your home directory. Replace
the directory with a narrower one, or repeat `--allow-dir` for several folders.
Without `--allow-dir`, access is restricted to the server's working directory.
The configured key file cannot be uploaded or overwritten through file tools.

## Updates and removal

`@latest` resolves the latest stable PyPI release at each new MCP process start;
an already-running server keeps its current version. Existing registrations
from the former setup helper continue to launch the server normally.

Remove the registration using your harness:

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

For other clients, remove their `data-vault` settings entry. Removing a
registration keeps your credential files, downloads and vault data.

## 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.
