🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@usekaval/mcp

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usekaval/mcp

MCP server for kaval — the freshness gate for AI. Pre-action currentness checks (verify/check/scan/monitor) as MCP tools; a thin client over the hosted Kaval API (BYO Kaval API key).

Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
436
279.13%
Maintainers
1
Weekly downloads
 
Created
Source

@usekaval/mcp

The Kaval freshness gate as an MCP server. It gives your agent a pre-action currentness check: hand it a belief the agent already holds — a cached fact, a stored field, a retrieved RAG chunk, a prior answer — and it independently re-derives the truth and returns whether it's still safe to act on.

This package is a thin client over the hosted Kaval API. All classification, grounding, and retrieval run server-side, so you bring just a Kaval API key — no model or search keys, no local engine.

Run it

npx -y @usekaval/mcp

It speaks MCP over stdio. Point any MCP client at it.

Client config

{
  "mcpServers": {
    "kaval": {
      "command": "npx",
      "args": ["-y", "@usekaval/mcp"],
      "env": {
        "KAVAL_API_KEY": "kv_live_…",
      },
    },
  },
}

Tools

ToolWhat it does
currentness_verifyPre-action gate: returns act (boolean) + a typed verdict + proof. Call before acting on a held belief.
currentness_checkThe raw freshness verdict without the act/don't-act decision.
currentness_extract_and_checkPull the checkable beliefs out of a paragraph and re-ground each.
currentness_scan_storeSweep a batch of beliefs for drift (summary + the riskiest).
currentness_monitorSweep + POST the newly-risky beliefs to a webhook (run on a schedule).
report_outcomeReport what actually happened for a prior check so the service can calibrate.

A verdict status is one of: current, stale, contradicted, unsupported, conflicting, insufficient. Treat anything other than current (or act === false) as "re-research before relying on it".

Environment

VarRequiredPurpose
KAVAL_API_KEYyesBearer key for the hosted Kaval API (create one at https://usekaval.com)
KAVAL_BASE_URLnoOverride the API base URL (self-hosted / staging). Defaults to https://api.usekaval.com

Programmatic use

This package is primarily a CLI (kaval-mcp). It also exports the server factory for embedding:

import { createMcpServer, createClientFromEnv } from "@usekaval/mcp";

const server = createMcpServer(createClientFromEnv());
// connect `server` to your own MCP transport

Or pass your own configured client:

import { createMcpServer } from "@usekaval/mcp";
import { Kaval } from "@usekaval/kaval";

const server = createMcpServer(new Kaval({ apiKey: process.env.KAVAL_API_KEY }));

Keywords

kaval

FAQs

Package last updated on 29 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts