Kaval

v0.8.2
io.github.usekaval/kaval Checked 5 hours ago Published 2 months ago

Verify the facts an agent's action depends on before it acts — ALLOW, REVIEW, or BLOCK.

Values you need

VariableWhat it is
KAVAL_API_KEYrequired secret Bring-your-own Kaval bearer key (kv_live_…). Create one at https://usekaval.com.
KAVAL_BASE_URLoptional Point at a self-hosted or staging Kaval API instead of the hosted one. Defaults to https://api.usekaval.com.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add kaval -e 'KAVAL_API_KEY=<KAVAL_API_KEY>' -- npx -y --package=@usekaval/mcp@0.8.2 kaval-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "kaval": {
      "args": [
        "-y",
        "--package=@usekaval/mcp@0.8.2",
        "kaval-mcp"
      ],
      "command": "npx",
      "env": {
        "KAVAL_API_KEY": "<KAVAL_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "kaval": {
      "args": [
        "-y",
        "--package=@usekaval/mcp@0.8.2",
        "kaval-mcp"
      ],
      "command": "npx",
      "env": {
        "KAVAL_API_KEY": "<KAVAL_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "KAVAL_API_KEY",
      "id": "kaval-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "kaval": {
      "args": [
        "-y",
        "--package=@usekaval/mcp@0.8.2",
        "kaval-mcp"
      ],
      "command": "npx",
      "env": {
        "KAVAL_API_KEY": "${input:kaval-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.kaval]
command = "npx"
args = ["-y", "--package=@usekaval/mcp@0.8.2", "kaval-mcp"]
env = { "KAVAL_API_KEY" = "<KAVAL_API_KEY>" }

For AI agents

  1. Ask the user for: KAVAL_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: check, get_receipt, prepare_contract_upload, ingest_contract, get_contract, list_contract_claims, list_contract_extraction_issues, review_contract_claim, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json