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.3.tar.gz (67.8 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.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kovra_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 67.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for kovra_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 73c4e2384d3dcf602759315d2439db684debad2c8bec2ed8d01280a52840e330
MD5 fcef5790105b6e1090afe4a5364f3fa5
BLAKE2b-256 1536988493da311a2988bf2957ad80136e53e2b77b2969c920efb3c9f7b31bc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kovra_mcp-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for kovra_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 05a7d6bedd3733f6693262be349675422ab74cb9ca97ba1b786aa842bf503d0a
MD5 21d6b999a8b1eee3d479aa7962d3a90d
BLAKE2b-256 b1a5100b8449e9101d688b55269e75673950f334fc1ca508afea524fb46f3946

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