Skip to main content

Kovra MCP server — let your AI agents use your secrets without ever seeing them.

Project description

kovra-mcp

The agent-facing MCP server for kovra — exposes the scoped secrets surface (spec §9.4) to Claude Code over stdio. It is a thin FastMCP wrapper over the kovra_ffi PyO3 bindings; all policy lives in the Rust core, not here.

Tools

list · status · fingerprint · set · generate · delete · edit_metadata · reveal · inject_run

Reveal returns a value only for a secret explicitly marked revealable that is non-prod and non-high (I11); prod/high/inject-only are never returned to the model (I14). Out-of-scope coordinates are unaddressable (I13). There is no unattended-mode tool — real high/prod delivery routes through the CLI + kovra approve broker, which inject_run drives but the model cannot bypass.

Build & run

The server needs the kovra_ffi native module (built from ../crates/ffi-python by maturin). With uv:

cd mcp
uv sync                 # builds kovra-ffi via maturin + installs mcp
uv run kovra-mcp        # serve over stdio

Configuration

The vault and keyring come from the bindings' own env (KOVRA_VAULT_DIR, KOVRA_PASSPHRASE). The session scope is set at launch:

Variable Default Meaning
KOVRA_MCP_OPERATIONS metadata,reveal,inject Operation axes granted
KOVRA_MCP_ENVIRONMENTS * Addressable environments (* = any)
KOVRA_MCP_PROJECTS * Addressable projects (* = any)

The scope is a containment, not the security boundary — the core denies a prod/high reveal to an agent even when its environment is in scope.

Register with Claude Code

{
  "mcpServers": {
    "kovra": {
      "command": "uv",
      "args": ["run", "--directory", "/abs/path/to/kovra/mcp", "kovra-mcp"],
      "env": { "KOVRA_MCP_ENVIRONMENTS": "dev,test" }
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kovra_mcp-0.1.2.tar.gz (47.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kovra_mcp-0.1.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file kovra_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: kovra_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 47.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kovra_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 37b5f42403df84e199be2214af5c5a030da34e1a182b0f64c9ef2ba3e641c745
MD5 8f1d690d127af8931acf171a5b8b067a
BLAKE2b-256 e246cc61e79601dbf8683b91e1e6a3a9dc98d522ed02b52e696617407d998611

See more details on using hashes here.

File details

Details for the file kovra_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: kovra_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.10 {"installer":{"name":"uv","version":"0.9.10"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for kovra_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b2d64dfa43e492cb61a60693000d8b37a2413744e49d682a8b940c719d5c8af
MD5 a818aeb0d707fae29d1099bdf210080d
BLAKE2b-256 c6f8ec3c5d7fc112fd0a7648ac095fbdd6c19fd44df880d468368366ec81449c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page